Skip to content

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!

  1. Download Runtime.tar.gz
    • Extract to your machine
    • Go to Runtime folder, and build docker build -t runtime:1.0 . (replace runtime with any build name)
  2. Git clone NPL Web UI: https://github.com/CODAIT/nlp-editor
    • Install Dependencies
      • Using Node v14, run npm install
    • Add Seer-Core folder, then add aql-processor underneath
      • nlp-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
  3. 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
  4. 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
Clone this wiki locally