virtualenv env -ppython3
source env/bin/activate
pip install -r requirements.txt
python -m spacy download en_core_web_sm
python -m spacy download en_core_web_md
en_core_web_md
model needs to fetch ~95 MB of data
Elmo is a furry red Muppet monster with an orange nose who lives on Sesame Street.
Noun chunks:
Elmo 0 1
a furry red Muppet monster 2 7
an orange nose 8 11
who 11 12
Sesame Street 14 16
Named Entity Recognition:
Elmo ORG 0
Muppet PRODUCT 5
Sesame Street FAC 14
Matcher:
11646861348542573214 -> Elmo is - be = a furry red Muppet monster
11646861348542573214 -> who lives on - live = Sesame Street
Oscar the Grouch is a furry, green Grouch who lives in a trash can on Sesame Street. In fact, he loves trash so much that he's rarely seen outside of his trash can. His trademark song, explaining his passion for refuse, is "I Love Trash."
Noun chunks:
Oscar 0 1
the Grouch 1 3
a furry, green Grouch 4 9
who 9 10
a trash can 12 15
Sesame Street 16 18
fact 20 21
he 22 23
trash 24 25
he 28 29
his trash can 34 37
His trademark song 38 41
his passion 43 45
refuse 46 47
"I 49 51
Trash 52 53
Named Entity Recognition:
Grouch ORG 8
Sesame Street FAC 16
I Love Trash WORK_OF_ART 50
Matcher:
11646861348542573214 -> Grouch is - be = a furry, green Grouch
11646861348542573214 -> who lives in - live = a trash can
11646861348542573214 -> he loves - love = trash
11646861348542573214 -> I Love - love = Trash
Big Bird is an 8'2" yellow bird who lives on Sesame Street. Since Sesame Street premiered in 1969, Big Bird has entertained millions of pre-school children and their parents with his wide-eyed wondering at the world. Big Bird is also a bird who makes friends easily.
Noun chunks:
Big Bird 0 2
an 8'2" yellow bird 3 8
who 8 9
Sesame Street 11 13
Sesame Street 15 17
Big Bird 21 23
millions 25 26
pre-school children 27 31
their parents 32 34
the world 41 43
Big Bird 44 46
a bird 48 50
who 50 51
friends 52 53
Named Entity Recognition:
Big Bird ORG 0
Sesame Street FAC 11
Sesame Street FAC 15
1969 DATE 19
Big Bird ORG 21
millions CARDINAL 25
Big Bird ORG 44
Matcher:
11646861348542573214 -> Bird is - be = an 8'2" yellow bird
11646861348542573214 -> who lives on - live = Sesame Street
11646861348542573214 -> Street premiered in - premiere = None
11646861348542573214 -> Bird has - have = None
11646861348542573214 -> Bird is - be = None
11646861348542573214 -> who makes - make = friends
Elmo is a furry red Muppet monster with an orange nose who lives on Sesame Street.
{"be": "a furry red Muppet monster", "live": "Sesame Street"}
Oscar the Grouch is a furry, green Grouch who lives in a trash can on Sesame Street. In fact, he loves trash so much that he's rarely seen outside of his trash can. His trademark song, explaining his passion for refuse, is "I Love Trash."
{"be": "a furry, green Grouch", "live": "a trash can", "love": "trash"}
Big Bird is an 8'2" yellow bird who lives on Sesame Street. Since Sesame Street premiered in 1969, Big Bird has entertained millions of pre-school children and their parents with his wide-eyed wondering at the world. Big Bird is also a bird who makes friends easily.
{"be": "an 8'2\" yellow bird", "live": "Sesame Street", "make": "friends"}
Matthew Abram "Matt" Groening (born February 15, 1954) is an American cartoonist, who is best known for creating the American animated television series The Simpsons and Futurama, as well as the comic strip, Life in Hell.
{"bear": "February 15, 1954"}
Jake Simmonds was a young member of the resistance group called the Preachers. They opposed John Lumic's Cybermen on a parallel Earth. Jake kidnapped Mickey Smith, who was a parallel version of Ricky Smith, the new "most wanted" person in London, thinking he was Ricky. They found Ricky already at their base and scanned Mickey, unable to determine what he was. Mickey joined the Preachers in following an International Electromatics van in their fight. Cybermen began emptying from the vans and attacked Jackie Tyler's party. (TV: Rise of the Cybermen)
{"be": "a young member", "oppose": "John Lumic's Cybermen", "kidnap": "Mickey Smith", "a parallel version of": ["Ricky Smith"], "find": "Ricky", "join": "the Preachers"}
Bartholomew JoJo "Bart" Simpson (born April 17, 1985) is a main character and the tritagonist of The Simpsons. Bart is the mischievous, rebellious, misunderstood and "potentially dangerous" eldest child of Homer and Marge Simpson, and the older brother of Lisa and Maggie. He also has been nicknamed "Cosmo", after discovering a comet in "Bart's Comet". Bart has also been on the cover on numerous comics, such as "Critical Hit", "Simpsons Treasure Trove #11", and "Winter Wingding". Bart also has a 100-issue comic series entitled the Simpson Comics Presents Bart Simpson. Bart is loosely based on Matt Groening and his older brother, Mark Groening.
{"bear": "April 17, 1985", "be": "the mischievous, rebellious, misunderstood", "child of": ["Homer", "Marge Simpson"], "the older brother of": ["Lisa", "Maggie"]}
When was Homer Simpson born?
[('When', 'when', 'ADV', 'advmod'), ('was', 'be', 'VERB', 'auxpass'), ('Homer Simpson', 'NOUN_CHUNK', 'PROPN', 'nsubj'), ('born', 'bear', 'VERB', 'ROOT'), ('?', '?', 'PUNCT', 'punct')]
Take "bear" property from "Homer Simpson" node
Who is a furry red Muppet monster?
[('Who', 'NOUN_CHUNK', 'PRON', 'nsubj'), ('is', 'be', 'VERB', 'ROOT'), ('a furry red Muppet monster', 'NOUN_CHUNK', 'DET', 'attr'), ('?', '?', 'PUNCT', 'punct')]
Who has "be" property with "a furry red Muppet monster" value?
Who kidnapped Mickey Smith?
[('Who', 'NOUN_CHUNK', 'PRON', 'nsubj'), ('kidnapped', 'kidnap', 'VERB', 'ROOT'), ('Mickey Smith', 'NOUN_CHUNK', 'PROPN', 'dobj'), ('?', '?', 'PUNCT', 'punct')]
Who has "kidnap" property with "Mickey Smith" value?
Who lives on Sesame Street?
[('Who', 'NOUN_CHUNK', 'PRON', 'nsubj'), ('lives', 'live', 'VERB', 'ROOT'), ('on', 'on', 'ADP', 'prep'), ('Sesame Street', 'NOUN_CHUNK', 'PROPN', 'pobj'), ('?', '?', 'PUNCT', 'punct')]
Who has "live" property with "Sesame Street" value?