Output

This function will return a dictionary with 111 key-value pairs. These key-value pairs represent the likelihood that the analyzed text is about each of the 111 possible topics. The keys in the dictionary are strings containing the topic names and the values are the probabilities that the analyzed text is about each topic.

Example

require 'indico'
Indico.api_key = 'YOUR_API_KEY'
# single example
Indico.text_tags("The most common form of arrow consists of a shaft with an arrowhead attached to the front end and with fletchings and a nock attached to the other end.")
# batch example
Indico.text_tags([
"The most common form of arrow consists of a shaft with an arrowhead attached to the front end and with fletchings and a nock attached to the other end.",
"Yoga in Indian traditions, however, is more than physical exercise, it has a meditative and spiritual core."
])