PyText, for a ride

Recently facebook opensourced Pytext, for rapid prototyping and deploying deep-learning based models. I took it for a spin, and documented few examples on it. especially RNN and LSTMs.

Installation: Linux
Environment: Conda
Language: Python3.7
: Jupyter

#STEP 1 - Prepare environment
$ install conda
$ conda -V
$ conda create -n py37-nlp python=3.7 anaconda
$ conda env list
$ conda activate py37-nlp

#STEP 2 - Jupyter installation
(py37-nlp)$ conda install jupyter
#Edit bashrc and add following aliases 
(py37-nlp)$ vi ~/.bashrc
alias jnb='jupyter notebook --no-browser --port=8893'
alias jnl='jupyter notebook list'
(py37-nlp)$ source ~/.bashrc

#STEP3 - Install Pytext
(py37-nlp)$ pip install pytext-nlp
Collecting pytext-nlp
Using cached
Collecting tensorboardX (from pytext-nlp)
Using cached
Collecting future (from pytext-nlp)
Using cached
Requirement already satisfied: requests in ./.conda/envs/py37-nlp/lib/python3.7/site-packages (from pytext-nlp) (2.19.1)
Collecting joblib (from pytext-nlp)
Using cached
Requirement already satisfied: pandas in ./.conda/envs/py37-nlp/lib/python3.7/site-packages (from pytext-nlp) (0.23.4)
Collecting torchtext (from pytext-nlp)
Using cached
Requirement already satisfied: scipy in ./.conda/envs/py37-nlp/lib/python3.7/site-packages (from pytext-nlp) (1.1.0)
Collecting onnx (from pytext-nlp)
Using cached
Complete output from command python egg_info:
fatal: Not a git repository (or any of the parent directories): .git
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-edyvn7gn/onnx/", line 71, in <module>
assert CMAKE, 'Could not find "cmake" executable!'
AssertionError: Could not find "cmake" executable!
Command "python egg_info" failed with error code 1 in /tmp/pip-install-edyvn7gn/onnx/
You are using pip version 10.0.1, however version 18.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Date: 2/6/2019

I had delayed my work on this project till today (2/6/2019). And I just saw a release form FB about latest release with ONNX 1.3.0 freeze; this shows me, that FB is really dedicated to this project, and i will give this project a shot tomorrow. — here