Jens Ohlig
Follow

I wrote a prototype that analyzes natural language in English and German with spacy.io/ and translates it into SPARQL queries to Wikidata. It's incredibly primitive, but looks promising so far.

Examples:

$ python3 nlqa.py --question="Was ist die Hauptstadt von Angola?" --language=de
$ Luanda
$ python3 nlqa.py --question="What is Estonia's national currency?" --language=en
$ Euro

github.com/johl/nlqa

Sign in to participate in the conversation
Mastodon

Generalistic and moderated instance. All opinions are welcome, but hate speeches are prohibited. Users who don't respect rules will be silenced or suspended, depending on the violation severity.