Currently ISPRAS API provides software development kits for 2 languages: Python and Ruby. All are alpha versions.
Applications written in other programming languages should use HTTP REST API directly.
How to install and use it
pip install texterra
pydoc texterraand check the documentation of methods:
pydoc texterra.api
import texterra t = texterra.API('YOURKEY')
tags = t.pos_tagging('Hello World')
tagged_sents = t.pos_tagging(['Flat is better than nested.', 'Now is better than never.'])
How to install and use it
gem install ispras-api
require 'ispras-api'
t = TexterraAPI.new 'APIKEY', 'texterra', 'v3.1'
doc = t.pos_tagging_annotate 'Hello World' # You can also invoke Texterra with custom request: result = t.custom_query path, query # for GET request result = t.custom_query path, query, form # for POST request
doc[:annotations][:'pos-token'].each do |an| puts an[:annotated_text], an[:value] end