-
Notifications
You must be signed in to change notification settings - Fork 9
Developer Setup: NLP Rules Prototype (Runtime & Web UI) Setup
Jesus Guerrero edited this page Apr 13, 2023
·
3 revisions
Welcome to the nlp-editor wiki!
- Download Runtime.tar.gz
- Extract to your machine
- Go to Runtime folder, and build
docker build -t runtime:1.0 .
(replaceruntime
with any build name)
- Git clone NPL Web UI: https://github.com/CODAIT/nlp-editor
- Install Dependencies
- Using Node v14, run
npm install
- Using Node v14, run
- Add
Seer-Core
folder, then addaql-processor
underneathnlp-editor/Seer-Core/aql-processor/
- Run NodeJs Server
node server.js
- Start React UI
npm start
- Go to 127.0.0.1:3000 on browser
- Install Dependencies
- Run
runtime:1.0
with volumes mapped-
docker run -d -v /<somewhere-on-disk>/nlp-editor/Seer-Core/aql-processor/user-data-in:/app/Seer-Core/aql-processor/user-data-in -v /<somewhere-on-disk>/nlp-editor/Seer-Core/aql-processor/run-aql-result:/app/Seer-Core/aql-processor/run-aql-result --name runtime runtime:1.0
- (optional) if you used a different build name from Step 1, be sure to map it correctly in run by changing
runtime:1.0
to the new name
- (optional) if you used a different build name from Step 1, be sure to map it correctly in run by changing
-
- Go to NLP Web UI (127.0.0.1:3000) and click Open on top toolbar, left-hand side
- Locate NLP-Editor folder, and open
sample-flows/test-sequence-nlp.json
- Double-click the Input_Documents_1 node (far left, start of flow)
- On the right pane, upload one of the input sources (.txt) found under
sample-flows
- Select the RevenueOfDivision node, then click Run
- Lower panel should open with results
- Locate NLP-Editor folder, and open