aboSamoor / polyglot

Multilingual text (NLP) processing toolkit
http://polyglot-nlp.com
Other
2.31k stars 337 forks source link

Can we load load_ner_model onec and then do bach processing on Text ? #98

Open sangatDvikram opened 7 years ago

sangatDvikram commented 7 years ago

Every time we run polyglot


doc = Text(" ... ")
print(doc.entities)

doc1 = Text(" ... ")
print(doc1.entities)

it creates two differnt text objects and load model differently but is there way to Load NER model once and perform task on different texts?

like

text = polygot.load_model('en')

doc = text.Text(" ... ")

doc2 = text.Text(" ... ")

doc3 = text.Text(" ... ")