Esempio n. 1
0
 def test_relations(self):
     r = Features(relations=RelationsOptions())
     assert r._to_dict() == {'relations': {}}
Esempio n. 2
0
 def test_sentiment(self):
     s = Features(sentiment=SentimentOptions())
     assert s._to_dict() == {'sentiment': {}}
Esempio n. 3
0
 def test_metadata(self):
     m = Features(metadata=MetadataOptions())
     assert m._to_dict() == {'metadata': {}}
Esempio n. 4
0
 def test_semantic_roles(self):
     s = Features(semantic_roles=SemanticRolesOptions())
     assert s._to_dict() == {'semantic_roles': {}}
Esempio n. 5
0
 def test_emotion(self):
     e = Features(emotion=EmotionOptions())
     assert e._to_dict() == {'emotion': {}}
Esempio n. 6
0
 def test_categories(self):
     c = Features(categories=CategoriesOptions())
     assert c._to_dict() == {'categories': {}}
Esempio n. 7
0
 def test_keywords(self):
     k = Features(keywords=KeywordsOptions())
     assert k._to_dict() == {'keywords': {}}
Esempio n. 8
0
 def test_entities(self):
     e = Features(entities=EntitiesOptions())
     assert e._to_dict() == {'entities': {}}
Esempio n. 9
0
 def test_concepts(self):
     c = Features(concepts=ConceptsOptions())
     assert c._to_dict() == {'concepts': {}}
     c = Features(concepts=ConceptsOptions(limit=10))
     assert c._to_dict() == {'concepts': {'limit': 10}}