Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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