explosion / spacy-stanza

💥 Use the latest Stanza (StanfordNLP) research models directly in spaCy
MIT License
723 stars 59 forks source link

Stuck for Greek and Hebrew examples #4

Closed hammad26 closed 5 years ago

hammad26 commented 5 years ago

I am using following code to get results on Greek and Hebrew language. It is giving no results, look like that it is stuck on these inputs.

Greek

snlp = stanfordnlp.Pipeline(lang="el")
nlp = StanfordNLPLanguage(snlp)
doc = nlp("συνεπεια στο ραντεβου")

Hebrew

snlp = stanfordnlp.Pipeline(lang="he")
nlp = StanfordNLPLanguage(snlp)
doc = nlp("השירות")

Can you tell why it is happening? How can I avoid from this?

ines commented 5 years ago

Thanks for the report – I'll need to test this! Just to confirm: Are you on the latest version of spacy-stanfordnlp? If not, the problem might be related to #2, which should already be fixed.

hammad26 commented 5 years ago

My bad, on older version. Let me check on latest one.

hammad26 commented 5 years ago

Yes, fixed on latest version. Thanks for the quick reply. And sorry for this I am using 2 environments, 1st one was having latest libs(did initial testing on it) but 2nd one was having old libs(doing rigorous testing on it).

ines commented 5 years ago

@hammad26 Thanks for updating and glad this fixed it! (And no worries, using separate environments is always a good thing, at least in my opinion 👍 )