Ejemplo n.º 1
0
 def test3_match_label_and_property(self):
     string = "WHAT ARE THE NAMES OF ALL THE PEOPLE?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_1)
Ejemplo n.º 2
0
 def test25_match_label_and_property(self):
     string = "Give me a list of the names, bounties, and sizes for every outlaw."
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_5)
Ejemplo n.º 3
0
 def test2_match_label_and_property(self):
     string = "what are the names of all the people?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_1)
Ejemplo n.º 4
0
 def test23_match_label_and_property(self):
     string = "What are the names, bounties, and sizes of each outlaw?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_5)
Ejemplo n.º 5
0
 def test24_match_label_and_property(self):
     string = "What’s the bounty and size for each outlaw?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_5)
Ejemplo n.º 6
0
 def test7_match_label_and_property(self):
     string = "Which animals are also outlaws? "
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), -1)
Ejemplo n.º 7
0
 def test22_match_label_and_property(self):
     string = "List the outlaws and their bounties."
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_4)
Ejemplo n.º 8
0
 def test14_match_label_and_property(self):
     string = "Return a list of the outlaw’s names"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_2)
Ejemplo n.º 9
0
 def test19_match_label_and_property(self):
     string = "What's the bounty on every outlaw?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_4)
Ejemplo n.º 10
0
 def test12_match_label_and_property(self):
     string = "Give me a list of every outlaw"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_2)
Ejemplo n.º 11
0
 def test13_match_label_and_property(self):
     string = "List the names of the outlaws"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_2)
Ejemplo n.º 12
0
 def test11_match_label_and_property(self):
     string = "List each outlaw"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_2)
Ejemplo n.º 13
0
 def test10_match_label_and_property(self):
     string = "What’s the name of each outlaw?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_2)
Ejemplo n.º 14
0
 def test8_match_label_and_property(self):
     string = "Who are all the outlaws?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_2)
Ejemplo n.º 15
0
 def test4_match_label_and_property(self):
     string = "How many names start with J?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), -1)
Ejemplo n.º 16
0
 def test21_match_label_and_property(self):
     string = "What are the bounties on all the outlaws?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), self.query1_4)
Ejemplo n.º 17
0
 def test5_match_label_and_property(self):
     string = "Who are the people that are outlaws?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), -1)
Ejemplo n.º 18
0
 def test6_match_label_and_property(self):
     string = "What are the names of the outlaws and their animals?"
     t = Tokenize(string)
     self.assertEqual(t.match_label_and_property(t.wordsTagged), -1)