This package is aimed at facilitating Natural Language Processing pipelines and includes functionalities often used in
NLP ranging from processing to visualisation. By installing eNLP
you will have access to a nlp-focussed environment
that contains some of the most popular NLP libraries and facilitates their combined usage in a unique and easy way.
Install with pip:
$ pip install enlp
To install the package directly from github:
$ pip install git+https://github.com/equinor/eNLP.git
If you wish to download the files directly and install, we recommend one of the 3 options as outlined below. Note that the first two options use a Makefile.
Download or clone the repo and run
$ make install_conda
which will create a conda environment with the package installed and all the necessary requirements. Prior to using the package remember to change into your new environment.
$ source activate enlp
Download or clone the repo and run
$ make install
Download or clone the repo and run
$ pip install -r requirements.txt
$ pip install .
We actively encourage others to contribute to the development of the package.
To install the extra requirements for development, the following options can be followed:
Download or clone the repo and run
$ make dev-install_conda
$ source activate enlp
Download or clone the repo and run
$ make dev-install
Download or clone the repo and run
$ pip install -r requirements-dev.txt
$ pip install -e .
Prior to contributing back to the package, please make the documentation and read the section on contributing. In particular, prior to contributing please ensure all tests run and all new code is adequately documented and any required new tests have been wrote.
The documentation includes reference documentation for all functions as well as an example gallery.
To make the documentation,
$ make doc
And then open the documentation,
$ cd /docs/build/html
$ open index.html
.
All new features should have clear doc strings and have their paths included in the relevant file under
docs/source/api/
.
Examples of usage are also very welcome to be added to the example gallery.
All new features should have tests written for them and should not break any of the old tests. To check tests run
$ make tests