Skip to content

Instantly share code, notes, and snippets.

@NesrineSF
Created March 30, 2021 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NesrineSF/0dc40f9c0828221b536534599dd81c04 to your computer and use it in GitHub Desktop.
Save NesrineSF/0dc40f9c0828221b536534599dd81c04 to your computer and use it in GitHub Desktop.
The text to process, the language of the text and the parameters of the API
text = "Sophia is a social humanoid robot developed by Hong Kong-based company Hanson Robotics. Sophia was activated on February 14, 2016."
language= 'en'
output = client.specific_resource_analysis(
body={"document": {"text": text}},
params={'language': language, 'resource': 'disambiguation'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment