C# Class Microsoft.ProjectOxford.Text.SpellCheck.SpellCheckClient

The SpellCheck Client.
Inheritance: ISpellCheckClient
Mostra file Open project: evgri243/pubic-demos

Public Methods

Method Description
ConstructCorrectedTextFromResponse ( SpellCheckResult response, string text ) : string

Reconstruct the corrected text from the spell check response and the original text

GetSuggestionsAsync ( string text, string preContextText = null, string postContextText = null, CheckMode checkMode = CheckMode.Proof ) : Task

Get suggestions asynchronous.

SpellCheckClient ( string subscriptionKey ) : Newtonsoft.Json

Initializes a new instance of the SpellCheckClient class.

Method Details

ConstructCorrectedTextFromResponse() public static method

Reconstruct the corrected text from the spell check response and the original text
public static ConstructCorrectedTextFromResponse ( SpellCheckResult response, string text ) : string
response SpellCheckResult spell check response
text string original text
return string

GetSuggestionsAsync() public method

Get suggestions asynchronous.
public GetSuggestionsAsync ( string text, string preContextText = null, string postContextText = null, CheckMode checkMode = CheckMode.Proof ) : Task
text string The text.
preContextText string The pre context text.
postContextText string The post context text.
checkMode CheckMode
return Task

SpellCheckClient() public method

Initializes a new instance of the SpellCheckClient class.
public SpellCheckClient ( string subscriptionKey ) : Newtonsoft.Json
subscriptionKey string The subscription Key.
return Newtonsoft.Json