Source code for azure.cognitiveservices.language.textanalytics.models.key_phrase_batch_result_item

# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


[docs]class KeyPhraseBatchResultItem(Model): """KeyPhraseBatchResultItem. Variables are only populated by the server, and will be ignored when sending a request. :ivar key_phrases: A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document. :vartype key_phrases: list[str] :ivar id: Unique document identifier. :vartype id: str """ _validation = { 'key_phrases': {'readonly': True}, 'id': {'readonly': True}, } _attribute_map = { 'key_phrases': {'key': 'keyPhrases', 'type': '[str]'}, 'id': {'key': 'id', 'type': 'str'}, } def __init__(self): super(KeyPhraseBatchResultItem, self).__init__() self.key_phrases = None self.id = None