Ejemplo n.º 1
0
 def test_entity_salience(self):
     nlp = NLP()
     nlp.analyze_entities(test_content)
     self.assertTrue(nlp.get_salience())
Ejemplo n.º 2
0
 def test_sentiment_score(self):
     nlp = NLP()
     nlp.analyze_entities(test_content)
     self.assertTrue(nlp.get_scores())
Ejemplo n.º 3
0
 def test_entity_list(self):
     nlp = NLP()
     nlp.analyze_entities(test_content)
     self.assertTrue(nlp.get_entities_list())