From 892e1c8cfec9fc3ce34c5a6e609d938889d037d3 Mon Sep 17 00:00:00 2001 From: Mathieu B Date: Thu, 29 Jul 2021 14:08:36 +0200 Subject: [PATCH] Added padatious to readme and requirements + re-added handle to intent manager. --- README.md | 4 ++-- jarvis/skills/intent_manager.py | 2 ++ requirements.txt | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 016d377..62afe90 100644 --- a/README.md +++ b/README.md @@ -19,12 +19,12 @@ The server can run on anything that runs Python 3+ *(linux recommended)* ## Installation -If not already installed, you will need Python 3.9, you can install it with these commands. +If not already installed, you will need Python 3.9 and few other parckage for jarvis to work, you can install them with these commands. ```shell $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update -$ sudo apt install python3.9 python3.9-dev python3.9-distutils +$ sudo apt install python3.9 python3.9-dev python3.9-distutils python3-fann2 libfann-dev swig ``` After that, run the command `python -m pip3 install -r requirements.txt` to install the basic requirements for the diff --git a/jarvis/skills/intent_manager.py b/jarvis/skills/intent_manager.py index b434e9a..8084c5c 100644 --- a/jarvis/skills/intent_manager.py +++ b/jarvis/skills/intent_manager.py @@ -45,3 +45,5 @@ def recognise(sentence): best_intent = next(best_intents) print(best_intent) + + handle(best_intent['intent_type']) diff --git a/requirements.txt b/requirements.txt index c61ee7f..c07d934 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,5 +4,6 @@ nltk~=3.6.2 torch~=1.9.0 numpy~=1.21.1 requests~=2.26.0 -adapt-parser +adapt-parser~=0.5.1 +padatious~=0.4.8 spacy~=3.1.1 \ No newline at end of file