diff --git a/README.md b/README.md index 07456d1..b9810b9 100755 --- a/README.md +++ b/README.md @@ -59,19 +59,24 @@ This command will create a model checkpoints in `data/art_30` and some pickle fi ### The Interpreter module -Predict the SPARQL query for a given question it will store the detailed output in output_query. +Predict the SPARQL query for a given question. It will store the detailed output in `output_query.txt`. ```bash -python nspm/interpreter.py --input data/art_30 --output data/art_30 --query "yuncken freeman has architected in how many cities?" +python nspm/interpreter.py --input data/art_30 --query "yuncken freeman has architected in how many cities?" ``` -or, if you want to use NSpM with [airml](https://github.com/sahandilshan/airML) to install pre-trained models, follow these steps, + +or, if you want to use NSpM with [airml](https://github.com/sahandilshan/airML) to install pre-trained models, follow these steps: + 1. Install airML latest version from [here](https://pypi.org/project/airML/) 2. Navigate to the table.kns [here](https://github.com/sahandilshan/KBox/blob/dev/kns/2.0/table.kns) and check if your model is listed in that file. -3. Then copy the name of that model and use it with the `interpreter.py` as follows +3. Then copy the name of that model and use it with the `interpreter.py` as follows: + ```bash -python interpreter.py --airml http://nspm.org/art --output data/art_30 --inputstr "yuncken freeman has architected in how many cities?" +python interpreter.py --airml http://nspm.org/art --query "yuncken freeman has architected in how many cities?" ``` +> Note: The arguments `--output` and `--inputstr` are not supported in the current implementation and have been removed from the examples. + ## Use cases & integrations * Components of the [Adam Medical platform](https://www.graphen.ai/products/mi_feature.html) partly developed by [Jose A. Alvarado](https://www.linkedin.com/in/josealvaradoguzman/) at Graphen (including a humanoid robot called Dr Adam), rely on NSpM technology.