All URIs are relative to https://localhost:7008/tmapi/v1
Method | HTTP request | Description |
---|---|---|
ExtractDocumentsEntities | POST /operations/entities | Entities extraction |
ExtractDocumentsFacts | POST /operations/facts | Facts extraction |
ExtractDocumentsKeywords | POST /operations/keywords | Keywords extraction |
ExtractDocumentsSentiments | POST /operations/sentiments | Sentiments analysis |
ExtractDocumentsTokens | POST /operations/tokens | Text parsing |
ExtractEntities | GET /operations/entities | Entities extraction |
ExtractFacts | GET /operations/facts | Facts extraction |
ExtractKeywords | GET /operations/keywords | Keywords extraction |
ExtractSentiments | GET /operations/sentiments | Sentiments analysis |
ExtractTokens | GET /operations/tokens | Text parsing |
GetDocumentsLanguages | POST /operations/languages | Language detection |
GetLanguages | GET /operations/languages | Language detection |
EntitiesResponse ExtractDocumentsEntities (Documents documents, string positions = null)
Entities extraction
The operation extracts entities from each file.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractDocumentsEntitiesExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var documents = new Documents(); // Documents | Documents to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Entities extraction
EntitiesResponse result = apiInstance.ExtractDocumentsEntities(documents, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractDocumentsEntities: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documents | Documents | Documents to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FactsResponse ExtractDocumentsFacts (Documents documents, string positions = null)
Facts extraction
The operation extracts facts from each file. The term "fact" is used to denote phenomena, events, notions and relations between them which may be of interest to users.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractDocumentsFactsExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var documents = new Documents(); // Documents | Documents to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Facts extraction
FactsResponse result = apiInstance.ExtractDocumentsFacts(documents, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractDocumentsFacts: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documents | Documents | Documents to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeywordsResponse ExtractDocumentsKeywords (Documents documents, string positions = null)
Keywords extraction
The operation explores often mentioned terms in each file. The response returns keywords and other statistics extracted from each file.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractDocumentsKeywordsExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var documents = new Documents(); // Documents | Documents to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Keywords extraction
KeywordsResponse result = apiInstance.ExtractDocumentsKeywords(documents, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractDocumentsKeywords: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documents | Documents | Documents to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SentimentsResponse ExtractDocumentsSentiments (Documents documents, string positions = null)
Sentiments analysis
The operation extracts opinions and emotions related to something, identifies the subject, the object of evaluation and the evaluation itself in each file.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractDocumentsSentimentsExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var documents = new Documents(); // Documents | Documents to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Sentiments analysis
SentimentsResponse result = apiInstance.ExtractDocumentsSentiments(documents, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractDocumentsSentiments: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documents | Documents | Documents to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokensResponse ExtractDocumentsTokens (Documents documents)
Text parsing
Parse text in each file. The response returns the text which is divided into tokens and sentences, conducts morphological analysis, determines parts of speech, lemmas, etc.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractDocumentsTokensExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var documents = new Documents(); // Documents | Documents to process
try
{
// Text parsing
TokensResponse result = apiInstance.ExtractDocumentsTokens(documents);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractDocumentsTokens: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documents | Documents | Documents to process |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EntitiesResponse ExtractEntities (string text, string positions = null)
Entities extraction
The operation extracts entities from the text document. For example, an entity may represent a person’s name, a name of an organization, an e-mail address, a phone number, or a geographical location.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractEntitiesExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var text = "Elvis Presley was born in Tupelo, Mississippi"; // string | Document text to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Entities extraction
EntitiesResponse result = apiInstance.ExtractEntities(text, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractEntities: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Document text to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FactsResponse ExtractFacts (string text, string positions = null)
Facts extraction
The operation extracts facts from the text. The term "fact" is used to denote phenomena, events, notions and relations between them which may be of interest to users.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractFactsExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var text = "Elvis Presley was an American singer"; // string | Document text to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Facts extraction
FactsResponse result = apiInstance.ExtractFacts(text, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractFacts: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Document text to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
KeywordsResponse ExtractKeywords (string text, string positions = null)
Keywords extraction
The operation explores often mentioned terms in the text. The response returns keywords and other statistics extracted from the text.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractKeywordsExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var text = "The Senate Agriculture Committee was expected to consider proposals that would limit adjustments in county loan rate differentials which trigger larger corn and wheat acreage reduction requirements."; // string | Document text to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Keywords extraction
KeywordsResponse result = apiInstance.ExtractKeywords(text, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractKeywords: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Document text to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
SentimentsResponse ExtractSentiments (string text, string positions = null)
Sentiments analysis
Extract sentiments from document
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractSentimentsExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var text = "The burger was great, but the waiter was very rude."; // string | Document text to process
var positions = "none"; // string | Positions format to be returned from server: - `none` - Don't return positions (**default**) - `symbol` - Symbol positions - `token` - Token positions (optional)
try
{
// Sentiments analysis
SentimentsResponse result = apiInstance.ExtractSentiments(text, positions);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractSentiments: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Document text to process | |
positions | string | Positions format to be returned from server: - `none` - Don't return positions (default) - `symbol` - Symbol positions - `token` - Token positions | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
TokensResponse ExtractTokens (string text)
Text parsing
Parse document text. The response returns the text which is divided into tokens and sentences, conducts morphological analysis, determines parts of speech, lemmas, etc.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class ExtractTokensExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var text = "Elvis Presley was born in Tupelo, Mississippi"; // string | Document text to process
try
{
// Text parsing
TokensResponse result = apiInstance.ExtractTokens(text);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.ExtractTokens: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Document text to process |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LanguagesResponse GetDocumentsLanguages (Documents documents)
Language detection
Automatically determine the language of each file. The text encoding format of source files with the .txt extension must be strictly UTF-8. Otherwise, requests will not be executed.
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class GetDocumentsLanguagesExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var documents = new Documents(); // Documents | Documents to process
try
{
// Language detection
LanguagesResponse result = apiInstance.GetDocumentsLanguages(documents);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.GetDocumentsLanguages: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
documents | Documents | Documents to process |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
LanguagesResponse GetLanguages (string text)
Language detection
Detect the language of text documents
using System;
using System.Diagnostics;
using TmApi.Api;
using TmApi.Client;
using TmApi.Model;
namespace Example
{
public class GetLanguagesExample
{
public void main()
{
// Configure HTTP basic authorization: BasicAuth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
var apiInstance = new OperationsApi();
var text = "Elvis Presley was born in Tupelo, Mississippi"; // string | Document text to process
try
{
// Language detection
LanguagesResponse result = apiInstance.GetLanguages(text);
Debug.WriteLine(result.ToJson());
}
catch (Exception e)
{
Debug.Print("Exception when calling OperationsApi.GetLanguages: " + e.Message );
}
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
text | string | Document text to process |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]