text2data
ballerinax/text2data Ballerina library
Overview
This is a generated connector for Text Analytics & Sentiment Analysis API v3.4 OpenAPI specification.
This API provides Text Analytics Platform that uses NLP (Natural Language Processing) and Machine Learning to your work environment. Extract essential information from your text documents and let Artificial Intelligence save your time. Get detailed and agile reports on your unstructured data.
Prerequisites
Before using this connector in your Ballerina application, complete the following:
- Create Text2data Account
- Obtaining tokens by following this link and obtain the api key.
Clients
text2data: Client
This is a generated connector for Text Analytics & Sentiment Analysis API v3.4 OpenAPI specification. The current api version is v3.4
The api methods listed below can be called directly from this page to test the output. You might set the api_key to pre-authenticate all requests on this page (this will work if your secret is blank).
API endpoint URL: http://{apiName}.text2data.com/v3/ {method}
The api can be consumed directly or using our SDK. Our Excel Add-In and Google Sheets Add-on are also using this api to process the data.'
Constructor
Gets invoked to initialize the connector
.
The connector initialization requires setting the API credentials.
Create an Interzoid Account and obtain tokens by log into Interzoid Account.
init (ApiKeysConfig apiKeyConfig, ClientConfiguration clientConfig, string serviceUrl)
- apiKeyConfig ApiKeysConfig - API keys for authorization
- clientConfig ClientConfiguration {} - The configurations to be used when initializing the
connector
- serviceUrl string "http://api.text2data.org/" - URL of the target service
analyzeGet
function analyzeGet() returns DocumentResult|error
Test api response without api key
Return Type
- DocumentResult|error - OK
analyzePost
function analyzePost(Document payload) returns DocumentResult|error
Sentiment analysis service
Parameters
- payload Document - Document payload in form of text, json or xml.
Return Type
- DocumentResult|error - OK
categorizeGet
function categorizeGet() returns DocumentResult|error
Test api response without api key
Return Type
- DocumentResult|error - OK
categorizePost
function categorizePost(Document payload) returns DocumentResult|error
Document categorization service
Parameters
- payload Document - Document payload in form of text, json or xml.
Return Type
- DocumentResult|error - OK
extractGet
function extractGet() returns DocumentResult|error
Test api response without api key
Return Type
- DocumentResult|error - OK
extractPost
function extractPost(Document payload) returns DocumentResult|error
Document extraction service
Parameters
- payload Document - Document payload in form of text, json or xml.
Return Type
- DocumentResult|error - OK
Records
text2data: ApiConfig
Fields
- APIPrivateKey string? -
- APISecret string? -
- BlacklistedWords string[]? -
- ErrorMessage string? -
- IsRequestStatusOK boolean? -
text2data: ApiKeysConfig
Provides API key configurations needed when communicating with a remote HTTP endpoint.
Fields
- privateKey string - All requests on this API needs to include an API key.
The API key can be provided as part of the query string or as a request header. The name of the API key needs to be
PrivateKey
.
text2data: Category
Fields
- CategoryName string? -
- Score float? -
text2data: Document
Fields
- DocumentLanguage string? -
- DocumentText string -
- IsTwitterContent boolean? -
- PrivateKey string -
- RequestIdentifier string? -
- Secret string? -
- SerializeFormat int? -
- UserCategoryModelName string? -
text2data: DocumentResult
Fields
- AutoCategories Category[]? -
- Citations SentencePart[]? -
- CloudTagHTML string? -
- CoreSentences Sentence[]? -
- DetectedLanguage string? -
- DocSentimentPolarity string? -
- DocSentimentResultString string? -
- DocSentimentValue float? -
- Entities SentencePart[]? -
- ErrorMessage string? -
- Keywords SentencePart[]? -
- Magnitude float? -
- PartsOfSpeech PartOfSpeech[]? -
- ResultTextHtml string? -
- SlangWords SlangWord[]? -
- Status int? -
- StorageInfo StorageInfo? -
- Subjectivity string? -
- SwearWords SlangWord[]? -
- Themes SentencePart[]? -
- Timestamp int? -
- TransactionCurrentDay int? -
- TransactionDailyLimit int? -
- TransactionTotalCreditsLeft int? -
- TransactionUseByDate string? -
- UserCategories Category[]? -
text2data: PartOfSpeech
Fields
- Action string? -
- Object string? -
- ObjectSentimentPolarity string? -
- ObjectSentimentResultString string? -
- ObjectSentimentValue float? -
- Subject string? -
- Text string? -
text2data: Sentence
Fields
- Magnitude float? -
- SentenceNumber int? -
- SentimentPolarity string? -
- SentimentResultString string? -
- SentimentValue float? -
- Text string? -
text2data: SentencePart
Fields
- KeywordType string? -
- Magnitude float? -
- Mentions int? -
- SentencePartType string? -
- SentenceText string? -
- SentimentPolarity string? -
- SentimentResult string? -
- SentimentValue float? -
- Text string? -
text2data: SlangWord
Fields
- SlangWordText string? -
- SlangWordTranslation string? -
text2data: StorageInfo
Fields
- CreateDate string? -
- DocumentText string? -
- IP string? -
- IsExcel boolean? -
- IsGSExcel boolean? -
- IsTwitterMode boolean? -
- PrivateKey string? -
- RequestIdentifier string? -
- UserCategoryModelName string? -
Import
import ballerinax/text2data;
Metadata
Released date: over 2 years ago
Version: 1.2.0
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.0.0
GraalVM compatible: Yes
Pull count
Total: 0
Current verison: 0
Weekly downloads
Keywords
Business Intelligence/Analytics
Cost/Freemium
Contributors
Dependencies