Jens Ohlig is a user on mastodon.xyz. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Jens Ohlig @johl

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

· Web · 9 · 7