Class NaturalLanguageProcess
Definition
- Assembly:
- Tizen.Nlp.dll
This class contains the methods in the NLP processing.
public class NaturalLanguageProcess : IDisposable
- Inheritance
-
objectNaturalLanguageProcess
- Implements
-
System.IDisposable
Constructors
View SourceNaturalLanguageProcess()
An construct method to init local env of NLP .
Declaration
public NaturalLanguageProcess()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
Methods
View SourceClose()
A method to close message connection
Declaration
public void Close()
Connect()
An async method to connect remote service.
Declaration
public Task Connect()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A task representing the asynchronous connect operation. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when the connect is rejected. |
Dispose()
A method to release resource of library
Declaration
public void Dispose()
Dispose(bool)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | 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 |
---|---|
System.Threading.Tasks.Task<TResult><LanguageDetectedResult> | LanguageDetectedResult |
NamedEntityRecognitionAsync(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 |
---|---|
System.Threading.Tasks.Task<TResult><NamedEntityRecognitionResult> | NamedEntityRecognitionResult |
PosTagAsync(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 |
---|---|
System.Threading.Tasks.Task<TResult><PosTagResult> | PosTagResult |
WordTokenizeAsync(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 |
---|---|
System.Threading.Tasks.Task<TResult><WordTokenizeResult> | ProcessResult |
Events
View SourceDisconnected
A connection status change event
Declaration
public event EventHandler Disconnected
Event Type
Type | Description |
---|---|
System.EventHandler |