Guest User

Untitled

a guest
Aug 10th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. nlp = spacy.load('xx')
  2. doc = Doc(nlp.vocab, text2)
  3. gold = GoldParse(doc, result1c)
  4. ner = EntityRecognizer(nlp.vocab, entity_types=['PERSON', 'PLACE'])
  5. ner.update([doc], [gold])
  6.  
  7. nlp.entity.move_names
Add Comment
Please, Sign In to add comment