Sha256: 1a3976b62f25feed2715f483c5ca18e710c5a5c3d2bd17af660a36e1fd408a61

Contents?: true

Size: 1.36 KB

Versions: 5

Compression:

Stored size: 1.36 KB

Contents

# frozen_string_literal: true

module AzureSTT
  module Models
    #
    # Model to describe a sentence. A sentence is inside a nBest of a recognizedPhrase
    #
    class Sentence < Base
      #
      # The confidence score of the transcripted sentence.
      #
      # @!attribute [r] confidence
      #   @return [Types::Coercible::Float]
      attribute :confidence, Types::Coercible::Float

      #
      # The lexical field
      #
      # @!attribute [r] lexical
      #   @return [Types::Coercible::String]
      attribute :lexical, Types::Coercible::String

      #
      # The itn field
      #
      # @!attribute [r] itn
      #   @return [Types::Coercible::String]
      attribute :itn, Types::Coercible::String

      #
      # The maskedITN field
      #
      # @!attribute [r] masked_itn
      #   @return [Types::Coercible::String]
      attribute :masked_itn, Types::Coercible::String

      #
      # The display field. Displays the text with the format you specified in
      # the paramters of the transcription.
      #
      # @!attribute [r] transcript
      #   @return [Types::Coercible::String]
      attribute :transcript, Types::Coercible::String

      #
      # The words recognized in the sentence.
      #
      # @!attribute [r] words
      #   @return [Types::Array.of(Word)]
      attribute? :words, Types::Array.of(Word).default([].freeze)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
azure_stt-0.4.0 lib/azure_stt/models/sentence.rb
azure_stt-0.3.0 lib/azure_stt/models/sentence.rb
azure_stt-0.2.0 lib/azure_stt/models/sentence.rb
azure_stt-0.1.1 lib/azure_stt/models/sentence.rb
azure_stt-0.1.0 lib/azure_stt/models/sentence.rb