You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 8, 2022. It is now read-only.
Installing NLP Architect within a virtual environment to ensure a self-contained
67
+
environment is recommended.
68
+
To create and activate a new virtual environment:
43
69
70
+
python3 -m venv .nlp_architect_env
71
+
source .nlp_architect_env/bin/activate
44
72
45
-
Fire up your favorite IDE/text editor/terminal and start running models.
73
+
Make sure `pip` and `setuptools`and `venv` are up to date before installing.
46
74
47
-
### Custom installations
75
+
pip3 install -U pip setuptools
48
76
77
+
### Backend
49
78
50
-
***Python 3 `venv`** The default installation instructions create a venv named
51
-
`.nlp_architect_env`. If this is not ideal for your needs, (for example,
52
-
if you want to name it something else or use an already-existing virtual env),
53
-
simply create or enter the local virtual environment you want to use, activate
54
-
it, and install the library in development mode with:
79
+
NLP Architect supports CPU, GPU and Intel Optimized Tensorflow (MKL-DNN).
80
+
Select the desired backend using a dedicated environment variable.
55
81
56
-
$ (py3_venv) make install_no_virt_env
82
+
CPU (default):
57
83
58
-
**Note** that `setuptools` from a recent version of `pip` is needed to get the
59
-
`make` command to build properly.
84
+
export NLP_ARCHITECT_BE=CPU
60
85
86
+
MKL-DNN (Linux OS only):
61
87
62
-
***System-wide install** -- A system install might require `sudo` permissions:
88
+
export NLP_ARCHITECT_BE=MKL
63
89
64
-
$ make sysinstall
90
+
GPU (Linux OS only):
65
91
92
+
export NLP_ARCHITECT_BE=GPU
66
93
67
-
_Note that all installations use CPU-based installations of Tensorflow/Dynet/Neon/nGraph. To install GPU supported binaries please refer to the framework's website for installation instructions._
68
94
69
-
## NLP Architect overview
95
+
### Installation
96
+
NLP Architect is installed using `pip` and it is recommended to install in development mode.
70
97
71
-
The current version of NLP Architect includes these features that we found
72
-
interesting from both research perspectives and practical applications:
98
+
Default:
73
99
74
-
* NLP core models and NLU modules that provide best in class performance: Intent
75
-
Extraction (IE), Name Entity Recognition (NER), Word Chunker, Dependency parser (BIST)
76
-
* Modules that address semantic understanding: co-locations, most
77
-
common word sense, NP embedding representation (NP2Vec)
78
-
* Components instrumental for conversational AI: ChatBot
0 commit comments