Class NaturalLanguageProcess

Definition

Namespace:
Tizen.Nlp
Assembly:
Tizen.Nlp.dll
API Level:
5

This class contains the methods in the NLP processing.

C#
Copy
public class NaturalLanguageProcess : IDisposable
Inheritance
System.Object
NaturalLanguageProcess
Implements
System.IDisposable

Constructors

View Source

NaturalLanguageProcess()

An construct method to init local env of NLP .

Declaration
C#
Copy
public NaturalLanguageProcess()
Exceptions
Type Condition
System.NotSupportedException

The required feature is not supported.

API Level: 5
Feature: http://tizen.org/feature/nlp

Methods

View Source

Close()

A method to close message connection

Declaration
C#
Copy
public void Close()
API Level: 5
View Source

Connect()

An async method to connect remote service.

Declaration
C#
Copy
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.

API Level: 5
View Source

Dispose()

A method to release resource of library

Declaration
C#
Copy
public void Dispose()
API Level: 5
View Source

Dispose(Boolean)

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

LanguageDetectAsync(String)

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

Declaration
C#
Copy
public Task<LanguageDetectedResult> LanguageDetectAsync(string sentence)
Parameters
Type Name Description
System.String sentence

A sentence need to be processed.

Returns
Type Description
System.Threading.Tasks.Task<LanguageDetectedResult>

LanguageDetectedResult

API Level: 5
View Source

NamedEntityRecognitionAsync(String)

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

Declaration
C#
Copy
public Task<NamedEntityRecognitionResult> NamedEntityRecognitionAsync(string sentence)
Parameters
Type Name Description
System.String sentence

A sentence need to be processed.

Returns
Type Description
System.Threading.Tasks.Task<NamedEntityRecognitionResult>

NamedEntityRecognitionResult

API Level: 5
View Source

PosTagAsync(String)

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

Declaration
C#
Copy
public Task<PosTagResult> PosTagAsync(string sentence)
Parameters
Type Name Description
System.String sentence

A sentence need to be processed.

Returns
Type Description
System.Threading.Tasks.Task<PosTagResult>

PosTagResult

API Level: 5
View Source

WordTokenizeAsync(String)

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

Declaration
C#
Copy
public Task<WordTokenizeResult> WordTokenizeAsync(string sentence)
Parameters
Type Name Description
System.String sentence

A sentence need to be processed.

Returns
Type Description
System.Threading.Tasks.Task<WordTokenizeResult>

ProcessResult

API Level: 5

Events

View Source

Disconnected

A connection status change event

Declaration
C#
Copy
public event EventHandler Disconnected
Event Type
Type Description
System.EventHandler
API Level: 5

Implements

System.IDisposable