/// <summary>
 /// Initializes a new instance of the EntitiesBatchResultItem class.
 /// </summary>
 /// <param name="id">Unique, non-empty document identifier.</param>
 /// <param name="entities">Recognized entities in the document.</param>
 /// <param name="statistics">(Optional) if showStats=true was specified
 /// in the request this field will contain information about the
 /// document payload.</param>
 public EntitiesBatchResultItem(string id = default(string), IList <EntityRecord> entities = default(IList <EntityRecord>), DocumentStatistics statistics = default(DocumentStatistics))
 {
     Id         = id;
     Entities   = entities;
     Statistics = statistics;
     CustomInit();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the LanguageBatchResultItem class.
 /// </summary>
 /// <param name="id">Unique, non-empty document identifier.</param>
 /// <param name="detectedLanguages">A list of extracted
 /// languages.</param>
 /// <param name="statistics">(Optional) if showStats=true was specified
 /// in the request this field will contain information about the
 /// document payload.</param>
 public LanguageBatchResultItem(string id = default(string), IList <DetectedLanguage> detectedLanguages = default(IList <DetectedLanguage>), DocumentStatistics statistics = default(DocumentStatistics))
 {
     Id = id;
     DetectedLanguages = detectedLanguages;
     Statistics        = statistics;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the KeyPhraseBatchResultItem class.
 /// </summary>
 /// <param name="id">Unique, non-empty document identifier.</param>
 /// <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="statistics">(Optional) if showStats=true was specified
 /// in the request this field will contain information about the
 /// document payload.</param>
 public KeyPhraseBatchResultItem(string id = default(string), IList <string> keyPhrases = default(IList <string>), DocumentStatistics statistics = default(DocumentStatistics))
 {
     Id         = id;
     KeyPhrases = keyPhrases;
     Statistics = statistics;
     CustomInit();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the SentimentBatchResultItem class.
 /// </summary>
 /// <param name="id">Unique, non-empty document identifier.</param>
 /// <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="statistics">(Optional) if showStats=true was specified
 /// in the request this field will contain information about the
 /// document payload.</param>
 public SentimentBatchResultItem(string id = default(string), double?score = default(double?), DocumentStatistics statistics = default(DocumentStatistics))
 {
     Id         = id;
     Score      = score;
     Statistics = statistics;
     CustomInit();
 }