Skip to content

Commit 04fec13

Browse files
committed
Fixed NER error on searching for maxent_ne_chunker_tab with nltk.download('maxent_ne_chunker_tab').
1 parent 5de0c48 commit 04fec13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

duplipy/text_analysis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def named_entity_recognition(text):
4848
nltk.download('punkt', quiet=True)
4949
nltk.download('averaged_perceptron_tagger', quiet=True)
5050
nltk.download('maxent_ne_chunker', quiet=True)
51+
nltk.download('maxent_ne_chunker_tab', quiet=True)
5152
nltk.download('words', quiet=True)
5253
tokens = nltk.word_tokenize(text)
5354
tagged = nltk.pos_tag(tokens)

0 commit comments

Comments
 (0)