Class: Google::Apis::SpeechV1p1beta1::TranscriptNormalization
- Inherits:
-
Object
- Object
- Google::Apis::SpeechV1p1beta1::TranscriptNormalization
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/speech_v1p1beta1/classes.rb,
lib/google/apis/speech_v1p1beta1/representations.rb,
lib/google/apis/speech_v1p1beta1/representations.rb
Overview
Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.
Instance Attribute Summary collapse
-
#entries ⇒ Array<Google::Apis::SpeechV1p1beta1::Entry>
A list of replacement entries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TranscriptNormalization
constructor
A new instance of TranscriptNormalization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TranscriptNormalization
Returns a new instance of TranscriptNormalization.
1453 1454 1455 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1453 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entries ⇒ Array<Google::Apis::SpeechV1p1beta1::Entry>
A list of replacement entries. We will perform replacement with one entry at a
time. For example, the second entry in ["cat" => "dog", "mountain cat" => "
mountain dog"] will never be applied because we will always process the first
entry before it. At most 100 entries.
Corresponds to the JSON property entries
1451 1452 1453 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1451 def entries @entries end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1458 1459 1460 |
# File 'lib/google/apis/speech_v1p1beta1/classes.rb', line 1458 def update!(**args) @entries = args[:entries] if args.key?(:entries) end |