class Azure::CognitiveServices::TextAnalytics::V2_1::Models::KeyPhraseBatchResultItem
Model object.
Attributes
id[RW]
@return [String] Unique, non-empty document identifier.
key_phrases[RW]
@return [Array<String>] A list of representative words or phrases. The number of key phrases returned is proportional to the number of words in the input document.
statistics[RW]
@return [DocumentStatistics] (Optional) if showStats=true was specified in the request this field will contain information about the document payload.
Public Class Methods
mapper()
click to toggle source
Mapper for KeyPhraseBatchResultItem
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb, line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'KeyPhraseBatchResultItem', type: { name: 'Composite', class_name: 'KeyPhraseBatchResultItem', model_properties: { id: { client_side_validation: true, required: false, serialized_name: 'id', type: { name: 'String' } }, key_phrases: { client_side_validation: true, required: false, read_only: true, serialized_name: 'keyPhrases', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, statistics: { client_side_validation: true, required: false, serialized_name: 'statistics', type: { name: 'Composite', class_name: 'DocumentStatistics' } } } } } end