| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | namespace Azure.AI.TextAnalytics |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// An input representing an individual text document to |
| | | 8 | | /// be analyzed by the Text Analytics predictive model for a given operation. |
| | | 9 | | /// The document contains the document's id, the full text of the document, |
| | | 10 | | /// and the language that the document is written in. |
| | | 11 | | /// </summary> |
| | | 12 | | public class TextDocumentInput : TextAnalyticsInput |
| | | 13 | | { |
| | | 14 | | /// <summary> |
| | | 15 | | /// </summary> |
| | | 16 | | /// <param name="id">The id of the document represented by this instance. |
| | | 17 | | /// The id must be unique within the batch of documents analyzed in a |
| | | 18 | | /// given operation.</param> |
| | | 19 | | /// <param name="text">The text of the document.</param> |
| | 616 | 20 | | public TextDocumentInput(string id, string text) : base(id, text) { } |
| | | 21 | | |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets or sets the language the input document is written in. This |
| | | 24 | | /// value is the two letter ISO 639-1 representation of the language |
| | | 25 | | /// (for example, "en" for English or "es" for Spanish). |
| | | 26 | | /// </summary> |
| | 600 | 27 | | public string Language { get; set; } |
| | | 28 | | |
| | | 29 | | } |
| | | 30 | | } |