Class NaturalLanguageProcess

Definition

Namespace:
Tizen.Nlp
Assembly:
Tizen.Nlp.dll

This class contains the methods in the NLP processing.

C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] public class NaturalLanguageProcess : IDisposable
Inheritance
object
NaturalLanguageProcess
Implements
System.IDisposable

Constructors

View Source

NaturalLanguageProcess()

An construct method to init local env of NLP .

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] public NaturalLanguageProcess()
Exceptions
Type Condition
System.NotSupportedException

The required feature is not supported.

Methods

View Source

Close()

A method to close message connection

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] public void Close()
View Source

Connect()

An async method to connect remote service.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] 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.

View Source

Dispose()

A method to release resource of library

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] public void Dispose()
View Source

Dispose(bool)

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
View Source

LanguageDetectAsync(string)

Send language detect request to remote tidl service with one parameters.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] 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

View Source

NamedEntityRecognitionAsync(string)

Send Named Entity recognition request to remote tidl service with one parameters.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] 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

View Source

PosTagAsync(string)

Send Pos of Tag request to remote tidl service with one parameters.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] 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

View Source

WordTokenizeAsync(string)

Send word tokenize request to remote tidl service with one parameters.

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] 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 Source

Disconnected

A connection status change event

Declaration
C#
Copy
[Obsolete("Deprecated since API11. Will be removed in API13.")] public event EventHandler Disconnected
Event Type
Type Description
System.EventHandler

Implements

System.IDisposable