Skip to content

the-vision/jarvis-core

Repository files navigation

jarvis-core

The core of Just A Rather Very Intelligent System!

Build Status

Python PEP8 License first-timers-only

Setup

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Run

python -m rasa_nlu.train -c config.yml --data data/nlu.md --verbose
python -m rasa_nlu.server -c config.yml --path models/nlu --response_log models --verbose
curl 'http://localhost:5000/status'
curl 'http://localhost:5000/version'
curl 'http://localhost:5000/parse?q=roll+a+die'
curl 'http://localhost:5000/parse?q=songs+by+linkin+park'

Development / Testing

  1. Make changes in data/nlu.md.
  2. Run python -m rasa_nlu.train -c config.yml --data data/nlu.md to train a new model, which will appear under the models/nlu/default/ folder.
  3. Change line 6 of test.py to the new folder created above, e.g. interpreter = Interpreter.load('./models/nlu/default/model_20200526-231423')
  4. Run python test.py

You can also hit the blue Open in Gitpod button below to launch a ready-to-code environment (a VS Code-like interface in the browser with the dependencies pre-installed and the web server running).

Open in Gitpod

Before contributing to this project do check CONTRIBUTING.md file