如何用python打印特定位置的单词 啊?
txt文档是这样的格式
Food was okay , nothing great .#[([0], [2], 'NEU'), ([0], [4, 5], 'NEU')]
Saul is the best restaurant on Smith Street and in Brooklyn .#[([0], [3], 'POS')]
我需要的输出格式是
(Food,okay,'NEU')
(Saul,beat,'POS')
如何用python打印特定位置的单词 啊?
txt文档是这样的格式
Food was okay , nothing great .#[([0], [2], 'NEU'), ([0], [4, 5], 'NEU')]
Saul is the best restaurant on Smith Street and in Brooklyn .#[([0], [3], 'POS')]
我需要的输出格式是
(Food,okay,'NEU')
(Saul,beat,'POS')