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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)