fasttext python

Solutions on MaxInterview for fasttext python by the best coders in the world

showing results for - "fasttext python"
Braden
27 Jul 2020
1#you can install it just by pip
2#pip install fasttext
3
4#or clone it from github and run the setup.py file
5#git clone https://github.com/facebookresearch/fastText.git
6#then run the setup.py file
7
8import fasttext
9# Skipgram model :
10model = fasttext.train_unsupervised('data.txt', model='skipgram')
11# or, cbow model :
12model = fasttext.train_unsupervised('data.txt', model='cbow')