a guest Feb 20th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- import nltk
- from nltk.tag.stanford import StanfordNERTagger
- yourText = this_is_your_text
- words = nltk.word_tokenize(yourText)
- jar = './stanford-ner.jar'
- model = './ner-model-english.ser.gz'
- tagger = StanfordNERTagger(model, jar, encoding='utf8')
RAW Paste Data