Help: How to Load pre-trained chinese word embedding ? #630
-
How to load a local and pre-trained Chinese word vector file? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
For Chinese, these fasttext embeddings are available: Note that the embedding files are very large, so the one-time download could take some time. If you are in China and run into connection issue, try |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! However, when I load the Chinese word vector file, I am encountered the following problem, how should I solve it?
|
Beta Was this translation helpful? Give feedback.
-
Hmm looks like the platform may have run out of memory. Could you verify? |
Beta Was this translation helpful? Give feedback.
-
cc @leezu |
Beta Was this translation helpful? Give feedback.
-
If your system has limited memory, please disable out of vocabulary words handling: |
Beta Was this translation helpful? Give feedback.
-
Feel free to reopen if you have further problems. Thanks |
Beta Was this translation helpful? Give feedback.
If your system has limited memory, please disable out of vocabulary words handling:
gluonnlp.embedding.FastText('wiki.zh', load_ngrams=False)
instead ofgluonnlp.embedding.FastText('wiki.zh', load_ngrams=True)