| | 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 | | /// </summary> |
| | 10 | | public class TextAnalyticsInput |
| | 11 | | { |
| | 12 | | /// <summary> |
| | 13 | | /// Initializes a new instance of the <see cref="TextAnalyticsInput"/> |
| | 14 | | /// class for the specified service instance. |
| | 15 | | /// </summary> |
| 340 | 16 | | internal TextAnalyticsInput(string id, string text) |
| | 17 | | { |
| 340 | 18 | | Id = id; |
| 340 | 19 | | Text = text; |
| 340 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> |
| | 23 | | /// Gets the unique, non-empty identifier for the document. |
| | 24 | | /// </summary> |
| 584 | 25 | | public string Id { get; } |
| | 26 | |
|
| | 27 | | /// <summary> |
| | 28 | | /// Gets the text of the document. |
| | 29 | | /// </summary> |
| 344 | 30 | | public string Text { get; } |
| | 31 | | } |
| | 32 | | } |