polyglot icon indicating copy to clipboard operation
polyglot copied to clipboard

ValueError: Package 'embeddings2.zh_Hant' not found in index

Open chikiuso opened this issue 9 years ago • 6 comments

Hello, I download the embeddings2.zh model and trying to get the entities of Chinese but failed, got this error message :

ValueError: Package 'embeddings2.zh_Hant' not found in index

How could I solve it? thanks.

chikiuso avatar Jul 15 '16 10:07 chikiuso

Oh I got it solved, it is because of the difference between traditional and simplified chinese, thanks.

chikiuso avatar Jul 15 '16 10:07 chikiuso

Could you share your method for solving this issue?

I'm getting a similar error message: ValueError: Package 'sentiment2.zh_Hant' not found in index

I have downloaded all chinese related libraries I could find via the polyglot downloader, all sentiment models, and tried to update all out-of-date packages availabe through the downloader's update function.

So, far no luck. Polyglot downloader still lists chinese packages as out-of-date or corrupted.

greygepps avatar Oct 26 '17 15:10 greygepps

I was trying to get the Chinese word vector, got this problem

ValueError: Package 'sgns2.zh_Hant' not found in index

is there anyone who know what the problem is ?

Dellen avatar Aug 16 '18 06:08 Dellen

ValueError: Package 'sentiment2.un' not found in index is there anyone who know what the problem is ?

hilalMubarrak avatar Dec 16 '19 08:12 hilalMubarrak

I wrote this code to test

text = Text("很高兴认识你")
print(text.language)  #  code = zh
text = Text("你好啊朋友") 
print(text.language)  # code = zh_Hant
print(text.words,text.polarity)  # raise error here

And polyglot does not support for zh_Hant. so..

Matt-V50 avatar Oct 10 '20 06:10 Matt-V50

Oh I got it solved, it is because of the difference between traditional and simplified chinese, thanks.

Have the same problem. What was your solution?

tatashbar avatar Jan 31 '21 21:01 tatashbar