Share via


TextTranslationClient.FindSentenceBoundariesAsync Method

Definition

Overloads

FindSentenceBoundariesAsync(String, String, String, String, CancellationToken)

Break Sentence.

FindSentenceBoundariesAsync(String, Guid, String, String, CancellationToken)

Break Sentence.

FindSentenceBoundariesAsync(IEnumerable<String>, Guid, String, String, CancellationToken)

Break Sentence.

FindSentenceBoundariesAsync(IEnumerable<String>, String, String, String, CancellationToken)

Break Sentence.

FindSentenceBoundariesAsync(String, String, String, String, CancellationToken)

Source:
TextTranslationClient.cs

Break Sentence.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>> FindSentenceBoundariesAsync (string text, string clientTraceId = default, string language = default, string script = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FindSentenceBoundariesAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
override this.FindSentenceBoundariesAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
Public Overridable Function FindSentenceBoundariesAsync (text As String, Optional clientTraceId As String = Nothing, Optional language As String = Nothing, Optional script As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of BreakSentenceItem)))

Parameters

text
String

Array of the text for which values the sentence boundaries will be calculated.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

language
String

Language tag identifying the language of the input text. If a code isn't specified, automatic language detection will be applied.

script
String

Script tag identifying the script used by the input text. If a script isn't specified, the default script of the language will be assumed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

text is null.

Applies to

FindSentenceBoundariesAsync(String, Guid, String, String, CancellationToken)

Source:
TextTranslationClient.cs

Break Sentence.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>> FindSentenceBoundariesAsync (string text, Guid clientTraceId = default, string language = default, string script = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FindSentenceBoundariesAsync : string * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
override this.FindSentenceBoundariesAsync : string * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
Public Overridable Function FindSentenceBoundariesAsync (text As String, Optional clientTraceId As Guid = Nothing, Optional language As String = Nothing, Optional script As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of BreakSentenceItem)))

Parameters

text
String

Array of the text for which values the sentence boundaries will be calculated.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

language
String

Language tag identifying the language of the input text. If a code isn't specified, automatic language detection will be applied.

script
String

Script tag identifying the script used by the input text. If a script isn't specified, the default script of the language will be assumed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

text is null.

Applies to

FindSentenceBoundariesAsync(IEnumerable<String>, Guid, String, String, CancellationToken)

Source:
TextTranslationClient.cs

Break Sentence.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>> FindSentenceBoundariesAsync (System.Collections.Generic.IEnumerable<string> content, Guid clientTraceId = default, string language = default, string script = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FindSentenceBoundariesAsync : seq<string> * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
override this.FindSentenceBoundariesAsync : seq<string> * Guid * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
Public Overridable Function FindSentenceBoundariesAsync (content As IEnumerable(Of String), Optional clientTraceId As Guid = Nothing, Optional language As String = Nothing, Optional script As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of BreakSentenceItem)))

Parameters

content
IEnumerable<String>

Array of the text for which values the sentence boundaries will be calculated.

clientTraceId
Guid

A client-generated GUID to uniquely identify the request.

language
String

Language tag identifying the language of the input text. If a code isn't specified, automatic language detection will be applied.

script
String

Script tag identifying the script used by the input text. If a script isn't specified, the default script of the language will be assumed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to

FindSentenceBoundariesAsync(IEnumerable<String>, String, String, String, CancellationToken)

Source:
TextTranslationClient.cs

Break Sentence.

public virtual System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>> FindSentenceBoundariesAsync (System.Collections.Generic.IEnumerable<string> content, string clientTraceId = default, string language = default, string script = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FindSentenceBoundariesAsync : seq<string> * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
override this.FindSentenceBoundariesAsync : seq<string> * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<System.Collections.Generic.IReadOnlyList<Azure.AI.Translation.Text.BreakSentenceItem>>>
Public Overridable Function FindSentenceBoundariesAsync (content As IEnumerable(Of String), Optional clientTraceId As String = Nothing, Optional language As String = Nothing, Optional script As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of IReadOnlyList(Of BreakSentenceItem)))

Parameters

content
IEnumerable<String>

Array of the text for which values the sentence boundaries will be calculated.

clientTraceId
String

A client-generated GUID to uniquely identify the request.

language
String

Language tag identifying the language of the input text. If a code isn't specified, automatic language detection will be applied.

script
String

Script tag identifying the script used by the input text. If a script isn't specified, the default script of the language will be assumed.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

content is null.

Applies to