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