Megaputer Text Mining API
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0
- Package version: 1.0.1
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/Megaputer/tmapi-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/Megaputer/tmapi-python.git
)
Then import the package:
import tmapi
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import tmapi
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import tmapi
from tmapi.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: BasicAuth
configuration = tmapi.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = tmapi.LimitsApi(tmapi.ApiClient(configuration))
try:
# Limits information
api_response = api_instance.get_limits()
pprint(api_response)
except ApiException as e:
print("Exception when calling LimitsApi->get_limits: %s\n" % e)
All URIs are relative to https://localhost:7008/tmapi/v1
Class | Method | HTTP request | Description |
---|---|---|---|
LimitsApi | get_limits | GET /limits | Limits information |
OperationsApi | extract_documents_entities | POST /operations/entities | Entities extraction |
OperationsApi | extract_documents_facts | POST /operations/facts | Facts extraction |
OperationsApi | extract_documents_keywords | POST /operations/keywords | Keywords extraction |
OperationsApi | extract_documents_sentiments | POST /operations/sentiments | Sentiments analysis |
OperationsApi | extract_documents_tokens | POST /operations/tokens | Text parsing |
OperationsApi | extract_entities | GET /operations/entities | Entities extraction |
OperationsApi | extract_facts | GET /operations/facts | Facts extraction |
OperationsApi | extract_keywords | GET /operations/keywords | Keywords extraction |
OperationsApi | extract_sentiments | GET /operations/sentiments | Sentiments analysis |
OperationsApi | extract_tokens | GET /operations/tokens | Text parsing |
OperationsApi | get_documents_languages | POST /operations/languages | Language detection |
OperationsApi | get_languages | GET /operations/languages | Language detection |
ServerApi | change_password | POST /change-password | Change password |
ServerApi | get_server_info | GET /server | Server information |
TasksApi | create_task | POST /tasks | Create task |
TasksApi | delete_tasks | DELETE /tasks | Delete tasks |
TasksApi | get_task_result | GET /tasks/result | Task result |
TasksApi | get_tasks_info | GET /tasks | Tasks information |
- AsyncTaskResponse
- AuthenticationError
- AuthenticationErrorError
- ChangePasswordError
- ChangePasswordErrorError
- ChangePasswordRequest
- DeleteTasksError
- DeleteTasksSuccess
- Document
- Documents
- EntitiesResponse
- EntitiesResponseDocuments
- EntitiesResponseEntities
- EntitiesResponsePositions
- FactsResponse
- FactsResponseDocuments
- FactsResponseFacts
- FactsResponsePositions
- GetTaskResultError
- GetTaskResultSuccess
- InternalServerError
- InternalServerErrorError
- InvalidRequestParamsError
- InvalidRequestParamsErrorError
- KeywordsResponse
- KeywordsResponseDocuments
- KeywordsResponseKeywords
- KeywordsResponsePositions
- LanguagesResponse
- LanguagesResponseDocuments
- NotEnoughResourcesError
- NotEnoughResourcesErrorError
- PerOperationLimitConstantResponse
- PerOperationLimitPeriodic1Response
- PerOperationLimitPeriodic2Response
- PerOperationLimitResponse
- SentimentsResponse
- SentimentsResponseAttributes
- SentimentsResponseDocuments
- SentimentsResponsePositions
- SentimentsResponseSentiments
- ServerInfo
- SyncTaskResponse
- TaskInfo
- TaskInfoTasks
- TokensResponse
- TokensResponseDocuments
- TokensResponsePosition
- TokensResponseSentences
- TokensResponseTokens
- TotalLimitConstantResponse
- TotalLimitPeriodic1Response
- TotalLimitPeriodic2Response
- TotalLimitResponse
- Type: HTTP basic authentication