Here you have simple examples of requests to the Topics Extraction API. You can use them to test a sample request and get an example response in a quick and easy way, right in your favorite programming language.

If you work in PHP, you can find our SDK in Packagist. If you prefer Python, the SDK is uploaded to Pypi. You can check both of them out in our Github account.

The next examples make a request to the Topics Extraction API with the text entered by the user. Once the request has been made, the output is processed and all the types of topics detected are extracted.

These examples show the following fields of information:

  • entities: form and sementity > type
  • concepts: form and sementity > type
  • time expressions: form
  • money expressions: form
  • quantity expressions: form
  • other expressions: form
  • quotations: form, who > form, who > lemma, verb > form and verb > lemma
  • relations: form, subject > form, subject > lemma_list, verb > form and verb > lemma_list

PHP logo

sdk-php-topics-2.0.tgz

Java logo

sdk-java-topics-2.0.tgz

Python logo

sdk-python-topics-2.0.tgz

Visual Basic logo

sdk-vb-topics-2.0.tgz

Not enough? You can also check out TailorBrands' Ruby Wrapper. And of course, if you create your own integration in any other language, we'd love to hear about it!