Installation
With pip
It is recommanded to use a virtual environment.
$ python -m venv env $ source env/bin/activate $ pip install lexicons-builder
From source
To install the module from source:
$ pip install git+git://github.com/GuillaumeLNB/lexicons_builder
Download NLP models (optionnal)
Here’s a non exhaustive list of websites where you can download NLP models manually. The models should be in word2vec or fasttext format.
Link |
Language(s) |
|---|---|
French |
|
Multilingual |
|
Multilingual |
|
Multilingual |
|
English / Multilingual |
|
English |
Download wordnet
>>> import nltk >>> nltk.download()
Download WOLF (French WordNet) (optionnal)
$ # download WOLF (French wordnet if needed) $ wget https://gforge.inria.fr/frs/download.php/file/33496/wolf-1.0b4.xml.bz2 $ # (and extract it) $ bzip2 -d wolf-1.0b4.xml.bz2