Do you have any questions? Write us an email or ask us through the feedback section.

Examples

Here are some examples of text categorization using MeaningCloud API:

Classify an Spanish online article into reputation dimensions (BusinessRep_es)

Classify an online document (URL) into reputation dimensions, for instance this news article.

  • Use the txt parameter to submit the texts.
  • Select value BusinessRep_es as the value for the model parameter to use the Business reputation model in Spanish.
  • Include your MeaningCloud license key as value for key parameter.
  • Choose an output format, for instance json as value for of.

Example using curl

curl 'https://api.meaningcloud.com/reputation-1.0?' \
  --form 'key=YOUR API KEY' \
  --form 'of=json' \
  --form 'url=http://cincodias.com/cincodias/2014/09/19/empresas/1411104892_973086.html' \
  --form 'model=BusinessRep_es'
MeaningCloud API output
{
"status":{
"code":
"0"
"msg":
"OK"
"credits":
"129"
}
"category_list":[
0:{
"code":
"62"
"label":
"Responsabilidad social - Apoyo de causas sociales"
"abs_relevance":
"0.59809214"
"relevance":
"100"
}
]
}