How to use spacy to do Name Entity recognition on CSV file
问题 I have tried so many things to do name entity recognition on a column in my csv file, i tried ne_chunk but i am unable to get the result of my ne_chunk in columns like so ID STORY PERSON NE NP NN VB GE 1 Washington, a police officer James... 1 0 0 0 0 1 Instead after using this code, news=pd.read_csv("news.csv") news['tokenize'] = news.apply(lambda row: nltk.word_tokenize(row['STORY']), axis=1) news['pos_tags'] = news.apply(lambda row: nltk.pos_tag(row['tokenize']), axis=1) news['entityrecog'