fasttext python

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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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')