Segment a Mandarin sentence into words, and embedding these words into vectors.
Segment Mandarin sentences into words based on jieba library.
Embedding Mandarin words into vectors by gensim library.
Show embedding results by tensorboard library.
- numpy>=1.14.5
- jieba>=0.39
- gensim>=3.5.0
- tensorflow>=1.8.0 or tensorflow-gpu>=1.8.0
You can use the following command to initialize your python environment:
pip install -r requirements.txt