Your semantic data-based assistant aka Tell me FANDOM, ...
- When was
someone
born? - Who directed the
episode
? - Who played in
episode
? - Did
foo
played inbar
episode?
Examples for https://tardis.fandom.com/wiki/Doctor_Who_Wiki
- Which is the first episode with Jana Carpenter?
- Which species is Jana Carpenter?
- Who is the main actor in 456 ambassador?
- Was Jake Simmonds in the Doctor Who cast?
- Was 456 ambassador engaged in drug dealing?
- List me the Doctor Who guest actors
- Who had me first apperance in The End of the World (TV story)?
- Who starred as Vincent van Gogh?
- What's species is De Maggio?
- Who starred as Adam's mum?
- Which character was portrayed by Terence Brown?
- List all characters that belong to Gond species
- In which episode Abzorbaloff first appeared?
- List me all episodes in 6th season
- Who starred as a second doctor?
- List all articles needing citation
- Who starred in Bad Wolf?
Examples for https://wowwiki.fandom.com
- How many achievement points are achievable from "Classy" Guild Achievements? https://wowwiki.fandom.com/wiki/Special:Browse/%22Classy%22-20Guild-20Achievements
- List me all proffesion achievements https://wowwiki.fandom.com/wiki/Category:Professions_achievements
- How many achievements points I can get from 250 Fish? https://wowwiki.fandom.com/wiki/Special:Browse/250-20Fish
- List me all Factions https://wowwiki.fandom.com/wiki/Property:Faction
- What's the durability for "Flying" Worgen Robes? https://wowwiki.fandom.com/wiki/Special:Browse/%22Flying%22-20Worgen-20Robes
- Which faction does the Alterac belong to? https://wowwiki.fandom.com/wiki/Special:Browse/Alterac
- List all articles with modification date 6 November 2018 https://wowwiki.fandom.com/wiki/Special:SearchByProperty/Modification-20date/23:38:07,-206-20November-202018
- What is the population of Grizzly Hills? https://wowwiki.fandom.com/wiki/Special:Browse/Grizzly-20Hills
- What is the level range for Grizzly Hills? https://wowwiki.fandom.com/wiki/Special:Browse/Grizzly-20Hills
- What is the Quest:A Hunter's Challenge quest id? https://wowwiki.fandom.com/wiki/Special:Browse/Quest:A-20Hunter%27s-20Challenge
- List item slots list in a Quest:A Hunter's Challenge https://wowwiki.fandom.com/wiki/Special:Browse/Quest:A-20Hunter%27s-20Challenge
- Which faction does Wyrmskull Village belogns to? https://wowwiki.fandom.com/wiki/Special:Browse/Wyrmskull-20Village
- Tell me something about
foo
- List me the
Season 2
stories
>>> rrp.simple_parse("Was Jake Simmonds in the Doctor Who cast?")
'(S1 (SQ (VBD Was) (NP (NP (NNP Jake) (NNPS Simmonds)) (PP (IN in) (NP (DT the) (NN Doctor)))) (NP (WP Who) (NN cast)) (. ?)))'
>>> rrp.simple_parse("Tell me something about foo")
'(S1 (S (VP (VB Tell) (NP (PRP me)) (NP (NP (NN something)) (PP (IN about) (NP (NN foo)))))))'
$ python ask.py "Who played Lionel Carson?"
Model directory: /home/macbre/.local/share/bllipparser/WSJ-PTB3
Model directory already exists, not reinstalling
INFO:get_oracle:Parsing question: Who played Lionel Carson?
INFO:get_oracle:Parsed question: [('WP', 'Who'), ('VBD', 'played'), ('NP', 'Lionel Carson')]
INFO:PersonFactOracle:You've asked: 'Who played Lionel Carson?' ({'name': 'Lionel Carson', 'property': 'played'})
INFO:PersonFactOracle:Asking SMW for 'Lionel Carson' page Actor property
INFO:PersonFactOracle:Got the value for Actor: ['Peter Bowles']
---
Who played Lionel Carson?
Lionel Carson is played by Peter Bowles.
Run make server
to start it. Flask server will listen on 0.0.0.0:5050
.
$ curl -s 'http://127.0.0.1:5050/ask?q=Who%20directed%20The%20Big%20Bang%20episode?' | jq
{
"_intent": "EpisodeFactIntent",
"_meta": {
"answer": "Toby Haynes",
"name": "The Big Bang episode",
"property": "directed"
},
"_reference": null,
"_words": {
"NN": "episode",
"NP": "The Big Bang episode",
"VBD": "directed",
"WP": "Who"
},
"answer": "\"The Big Bang episode\" episode has been directed by Toby Haynes."
}
$ curl -s 'http://127.0.0.1:5050/examples' | jq
{
"questions": [
"Where does Lionel Messi play?",
"Which club Cristiano Ronaldo plays for?",
"Which faction does the Alterac belong to?",
"Who directed The Big Bang episode?",
"Who played Jake Simmonds?"
]
}
- Tell me something about
person name
- https://poznan.fandom.com/api.php?action=browsebysubject&subject=Karol_Libelt - Give me a list of people born in
year
- https://poznan.fandom.com/api.php?action=ask&query=[[Born::1800]]|%3FBorn_in|sort%3DModification%20date|order%3Ddesc - "Doctor Who" episodes - https://tardis.fandom.com/wiki/Property:Editor
- MIT's START and Omnibase described
- Indexing and Retrieving Natural Language Using Ternary Expressions
- Annotating the World Wide Web using Natural Language
- Extracting Answers from the Web Using Knowledge Annotation and Knowledge Mining Techniques
- DBpedia – A Large-scale, Multilingual Knowledge Base Extracted from Wikipedia
virtualenv env -ppython3
. env/bin/activate
pip install -r requirements.txt
make server