fasttext implementation in python code example
Example: fasttext python
#you can install it just by pip
#pip install fasttext
#or clone it from github and run the setup.py file
#git clone https://github.com/facebookresearch/fastText.git
#then run the setup.py file
import fasttext
# Skipgram model :
model = fasttext.train_unsupervised('data.txt', model='skipgram')
# or, cbow model :
model = fasttext.train_unsupervised('data.txt', model='cbow')