Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down