/// <summary> /// Initializes a new instance of the LanguageBatchResult class. /// </summary> /// <param name="documents">Response by document</param> /// <param name="errors">Errors and Warnings by document</param> /// <param name="statistics">(Optional) if showStats=true was specified /// in the request this field will contain information about the /// request payload.</param> public LanguageBatchResult(IList <LanguageBatchResultItem> documents = default(IList <LanguageBatchResultItem>), IList <ErrorRecord> errors = default(IList <ErrorRecord>), RequestStatistics statistics = default(RequestStatistics)) { Documents = documents; Errors = errors; Statistics = statistics; CustomInit(); }
/// <summary> /// Initializes a new instance of the KeyPhraseResult class. /// </summary> /// <param name="keyPhrases">A list of representative words or phrases. /// The number of key phrases returned is proportional to the number of /// words in the input document.</param> /// <param name="errorMessage">Error or Warning related to the document.</param> /// <param name="statistics">(Optional) if showStats=true was specified /// in the request this field will contain information about the /// request payload.</param> public KeyPhraseResult(IList <string> keyPhrases = default(IList <string>), string errorMessage = default(string), RequestStatistics statistics = default(RequestStatistics)) { KeyPhrases = keyPhrases; ErrorMessage = errorMessage; Statistics = statistics; CustomInit(); }
/// <summary> /// Initializes a new instance of the SentimentResult class. /// </summary> /// <param name="score">A decimal number between 0 and 1 denoting the /// sentiment of the document. A score above 0.7 usually refers to a /// positive document while a score below 0.3 normally has a negative /// connotation. Mid values refer to neutral text.</param> /// <param name="errorMessage">Error or Warning related to the document.</param> /// <param name="statistics">(Optional) if showStats=true was specified /// in the request this field will contain information about the /// request payload.</param> public SentimentResult(double?score = default(double?), string errorMessage = default(string), RequestStatistics statistics = default(RequestStatistics)) { Score = score; ErrorMessage = errorMessage; Statistics = statistics; CustomInit(); }
/// <summary> /// Initializes a new instance of the LanguageResult class. /// </summary> /// <param name="detectedLanguages">A list of extracted languages.</param> /// <param name="errorMessage">Error or Warning related to the document.</param> /// <param name="statistics">(Optional) if showStats=true was specified /// in the request this field will contain information about the /// request payload.</param> public LanguageResult(IList <DetectedLanguage> detectedLanguages = default(IList <DetectedLanguage>), string errorMessage = default(string), RequestStatistics statistics = default(RequestStatistics)) { DetectedLanguages = detectedLanguages; ErrorMessage = errorMessage; Statistics = statistics; CustomInit(); }
/// <summary> /// Initializes a new instance of the EntitiesResult class. /// </summary> /// <param name="entities">Recognized entities in the document.</param> /// <param name="errorMessage">Error or Warning related to the document.</param> /// <param name="statistics">(Optional) if showStats=true was specified /// in the request this field will contain information about the /// request payload.</param> public EntitiesResult(IList <EntityRecord> entities = default(IList <EntityRecord>), string errorMessage = default(string), RequestStatistics statistics = default(RequestStatistics)) { Entities = entities; ErrorMessage = errorMessage; Statistics = statistics; CustomInit(); }