Created
March 30, 2021 20:07
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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