@@ -56,6 +56,14 @@ def entities(self, html=None, text=None, url=None, disambiguate=True, linked_dat
5656 'maxRetrieve' : max_items }
5757 return self ._alchemy_html_request ('GetRankedNamedEntities' , html = html , text = text , url = url , params = params )
5858
59+ def emotion (self , html = None , text = None , url = None , show_source_text = False , source_text_type = None ,
60+ constraint_query = None , xpath_query = None ):
61+ params = {'showSourceText' : show_source_text ,
62+ 'sourceText' : source_text_type ,
63+ 'cquery' : constraint_query ,
64+ 'xpath' : xpath_query }
65+ return self ._alchemy_html_request ('GetEmotion' , html = html , text = text , url = url , params = params )
66+
5967 def relations (self , html = None , text = None , url = None , sentiment = False , keywords = False , entities = False ,
6068 require_entities = False , sentiment_excludes_entities = True , disambiguate = True , linked_data = True ,
6169 coreference = True , show_source_text = False , max_items = 50 ):
@@ -135,7 +143,7 @@ def combined(self, html=None, text=None, url=None, extract=None, disambiguate=Tr
135143 coreference = True , quotations = False , sentiment = False , show_source_text = False , max_items = 50 ,
136144 base_url = None ):
137145 """
138- Combined call for page-image, entity, keyword, title, author, taxonomy, concept.
146+ Combined call for page-image, entity, keyword, title, author, taxonomy, concept, doc-emotion .
139147 INPUT:
140148 extract ->
141149 List or comma separated string
0 commit comments