Skip to content

Instantly share code, notes, and snippets.

@SamuelAlgheriniAI
Last active March 23, 2021 10:25
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 SamuelAlgheriniAI/ad672e735a78f2b9599dd745fa382d22 to your computer and use it in GitHub Desktop.
Save SamuelAlgheriniAI/ad672e735a78f2b9599dd745fa382d22 to your computer and use it in GitHub Desktop.
Classification Sample
output = client.classification(text)
print("Tab separated list of categories:")
for category in output.categories:
print(category.id_, category.hierarchy, sep="\t")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment