Beispiel #1
0
 def test_relations(self):
     r = Features(relations=RelationsOptions())
     assert r._to_dict() == {'relations': {}}
Beispiel #2
0
 def test_sentiment(self):
     s = Features(sentiment=SentimentOptions())
     assert s._to_dict() == {'sentiment': {}}
Beispiel #3
0
 def test_metadata(self):
     m = Features(metadata=MetadataOptions())
     assert m._to_dict() == {'metadata': {}}
Beispiel #4
0
 def test_semantic_roles(self):
     s = Features(semantic_roles=SemanticRolesOptions())
     assert s._to_dict() == {'semantic_roles': {}}
Beispiel #5
0
 def test_emotion(self):
     e = Features(emotion=EmotionOptions())
     assert e._to_dict() == {'emotion': {}}
Beispiel #6
0
 def test_categories(self):
     c = Features(categories=CategoriesOptions())
     assert c._to_dict() == {'categories': {}}
Beispiel #7
0
 def test_keywords(self):
     k = Features(keywords=KeywordsOptions())
     assert k._to_dict() == {'keywords': {}}
Beispiel #8
0
 def test_entities(self):
     e = Features(entities=EntitiesOptions())
     assert e._to_dict() == {'entities': {}}
Beispiel #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}}