Class NaturalLanguageProcess
Definition
- Namespace:
- Tizen.Nlp
- Assembly:
- Tizen.Nlp.dll
- API Level:
- 5
This class contains the methods in the NLP processing.
public class NaturalLanguageProcess : IDisposable
- Inheritance
-
NaturalLanguageProcess
- Implements
Constructors
View SourceNaturalLanguageProcess()
An construct method to init local env of NLP .
Declaration
public NaturalLanguageProcess()
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 5
Feature: http://tizen.org/feature/nlp
Methods
View SourceClose()
A method to close message connection
Declaration
public void Close()
API Level: 5
View SourceConnect()
An async method to connect remote service.
Declaration
public Task Connect()
Returns
Type | Description |
---|---|
Task | A task representing the asynchronous connect operation. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when the connect is rejected. |
API Level: 5
View SourceDispose()
A method to release resource of library
Declaration
public void Dispose()
API Level: 5
View SourceDispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing |
LanguageDetectAsync(String)
Send language detect request to remote tidl service with one parameters.
Declaration
public Task<LanguageDetectedResult> LanguageDetectAsync(string sentence)
Parameters
Type | Name | Description |
---|---|---|
String | sentence | A sentence need to be processed. |
Returns
Type | Description |
---|---|
Task<LanguageDetectedResult> | LanguageDetectedResult |
API Level: 5
View SourceNamedEntityRecognitionAsync(String)
Send Named Entity recognition request to remote tidl service with one parameters.
Declaration
public Task<NamedEntityRecognitionResult> NamedEntityRecognitionAsync(string sentence)
Parameters
Type | Name | Description |
---|---|---|
String | sentence | A sentence need to be processed. |
Returns
Type | Description |
---|---|
Task<NamedEntityRecognitionResult> | NamedEntityRecognitionResult |
API Level: 5
View SourcePosTagAsync(String)
Send Pos of Tag request to remote tidl service with one parameters.
Declaration
public Task<PosTagResult> PosTagAsync(string sentence)
Parameters
Type | Name | Description |
---|---|---|
String | sentence | A sentence need to be processed. |
Returns
Type | Description |
---|---|
Task<PosTagResult> | PosTagResult |
API Level: 5
View SourceWordTokenizeAsync(String)
Send word tokenize request to remote tidl service with one parameters.
Declaration
public Task<WordTokenizeResult> WordTokenizeAsync(string sentence)
Parameters
Type | Name | Description |
---|---|---|
String | sentence | A sentence need to be processed. |
Returns
Type | Description |
---|---|
Task<WordTokenizeResult> | ProcessResult |
API Level: 5
Events
View SourceDisconnected
A connection status change event
Declaration
public event EventHandler Disconnected
Event Type
Type | Description |
---|---|
EventHandler |