def test_entity_extraction(self): tsa = TwitterSemanticAnalyser() calculated = tsa.extract_entities(tweet5) expected = [('Bob Jones', 'Person'), ('Bob', 'Person'), ('Egypt', 'Country')] self.assertEqual(expected, calculated)
def test_entity_extraction(self): tsa = TwitterSemanticAnalyser() calculated = tsa.extract_entities(tweet5) expected = [('Bob Jones', 'Person'), ('Bob', 'Person'), ('Egypt', 'Country')] self.assertEqual(expected, calculated)