Aracılığıyla paylaş


SpellingFlaggedToken Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.spellcheck.models.SpellingFlaggedToken

public class SpellingFlaggedToken

The SpellingFlaggedToken model.

Method Summary

Modifier and Type Method and Description
int offset()

Get the offset value.

String pingUrlSuffix()

Get the pingUrlSuffix value.

List<SpellingTokenSuggestion> suggestions()

Get the suggestions value.

String token()

Get the token value.

ErrorType type()

Get the type value.

SpellingFlaggedToken withOffset(int offset)

Set the offset value.

SpellingFlaggedToken withToken(String token)

Set the token value.

SpellingFlaggedToken withType(ErrorType type)

Set the type value.

Method Details

offset

public int offset()

Get the offset value.

Returns:

the offset value

pingUrlSuffix

public String pingUrlSuffix()

Get the pingUrlSuffix value.

Returns:

the pingUrlSuffix value

suggestions

public List suggestions()

Get the suggestions value.

Returns:

the suggestions value

token

public String token()

Get the token value.

Returns:

the token value

type

public ErrorType type()

Get the type value.

Returns:

the type value

withOffset

public SpellingFlaggedToken withOffset(int offset)

Set the offset value.

Parameters:

offset - the offset value to set

Returns:

the SpellingFlaggedToken object itself.

withToken

public SpellingFlaggedToken withToken(String token)

Set the token value.

Parameters:

token - the token value to set

Returns:

the SpellingFlaggedToken object itself.

withType

public SpellingFlaggedToken withType(ErrorType type)

Set the type value.

Parameters:

type - the type value to set

Returns:

the SpellingFlaggedToken object itself.

Applies to