Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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')
Source by github.com #
 
PREVIOUS NEXT
Tagged: #fasttext #python
ADD COMMENT
Topic
Name
5+9 =