Skip to content

Commit

Permalink
[textanalytics] add :keyword: to docstrings for TextDocumentInput and…
Browse files Browse the repository at this point in the history
… DetectLanguageInput (Azure#16542)

Co-authored-by: NourEldin Yasser <noursalem95@gmail.com>
  • Loading branch information
a-noyass and nsalem95 authored Feb 5, 2021
1 parent ca1303e commit 6bae810
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,12 @@ def __repr__(self):
class DetectLanguageInput(LanguageInput):
"""The input document to be analyzed for detecting language.
:keyword str id: Unique, non-empty document identifier.
:keyword str text: The input text to process.
:keyword str country_hint: A country hint to help better detect
the language of the text. Accepts two letter country codes
specified by ISO 3166-1 alpha-2. Defaults to "US". Pass
in the string "none" to not use a country_hint.
:ivar id: Required. Unique, non-empty document identifier.
:vartype id: str
:ivar text: Required. The input text to process.
Expand Down Expand Up @@ -869,7 +875,12 @@ def __repr__(self):
class TextDocumentInput(DictMixin, MultiLanguageInput):
"""The input document to be analyzed by the service.
:ivar id: Required. A unique, non-empty document identifier.
:keyword str id: Unique, non-empty document identifier.
:keyword str text: The input text to process.
:keyword str language: This is the 2 letter ISO 639-1 representation
of a language. For example, use "en" for English; "es" for Spanish etc. If
not set, uses "en" for English as default.
:ivar id: Required. Unique, non-empty document identifier.
:vartype id: str
:ivar text: Required. The input text to process.
:vartype text: str
Expand Down

0 comments on commit 6bae810

Please sign in to comment.