我是一名Python新手,想在從本地計算機導入csv文件後進行POS標記。我從網上查找了一些資源,發現下面的代碼有效。 text = 'Senator Elizabeth Warren from Massachusetts announced her support of
Social Security in Washington, D.C. on Tuesday. Warren joined
我想爲每行中的每個單詞做標記(每行包含幾個句子)。 我有這樣的代碼: import nltk import pos_tag
import nltk.tokenize import word_tokenize
f = open('C:\Users\test_data.txt')
data = f.readlines()
#Parse the text file for NER with
每個記錄詞性標註我有這樣 Task Response
1 NA
2 NA
3 EFFICACY
4 I was sent to external vendor for solution (PDA parts), but at PDA parts they identified within few minites that new battery would not solve the