Class: Cohere::Transcribe::TranscriptionProvenance
- Inherits:
-
Data
- Object
- Data
- Cohere::Transcribe::TranscriptionProvenance
- Defined in:
- lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs
Overview
Per-file decoder, VAD, generation, and alignment provenance.
Instance Attribute Summary collapse
-
#adapter_id ⇒ Object
readonly
Returns the value of attribute adapter_id.
-
#adapter_revision ⇒ Object
readonly
Returns the value of attribute adapter_revision.
-
#decode_backend ⇒ Object
readonly
Returns the value of attribute decode_backend.
-
#decode_fallback_reason ⇒ Object
readonly
Returns the value of attribute decode_fallback_reason.
-
#fallback_alignment_segments ⇒ Object
readonly
Returns the value of attribute fallback_alignment_segments.
-
#generated_tokens_by_segment ⇒ Object
readonly
Returns the value of attribute generated_tokens_by_segment.
-
#model_format ⇒ Object
readonly
Returns the value of attribute model_format.
-
#model_id ⇒ Object
readonly
Returns the value of attribute model_id.
-
#model_revision ⇒ Object
readonly
Returns the value of attribute model_revision.
-
#published ⇒ Object
readonly
Returns the value of attribute published.
-
#repetition_stopped_segments ⇒ Object
readonly
Returns the value of attribute repetition_stopped_segments.
-
#resumed_from_asr_checkpoint ⇒ Object
readonly
Returns the value of attribute resumed_from_asr_checkpoint.
-
#token_limit_segments ⇒ Object
readonly
Returns the value of attribute token_limit_segments.
-
#truncation_retried_segments ⇒ Object
readonly
Returns the value of attribute truncation_retried_segments.
-
#vad_engine_actual ⇒ Object
readonly
Returns the value of attribute vad_engine_actual.
-
#vad_engine_requested ⇒ Object
readonly
Returns the value of attribute vad_engine_requested.
-
#vad_fallback_reason ⇒ Object
readonly
Returns the value of attribute vad_fallback_reason.
-
#vad_provider ⇒ Object
readonly
Returns the value of attribute vad_provider.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(model_id: nil, model_revision: nil, model_format: nil, adapter_id: nil, adapter_revision: nil, decode_backend: nil, decode_fallback_reason: nil, vad_engine_requested: nil, vad_engine_actual: nil, vad_provider: nil, vad_fallback_reason: nil, fallback_alignment_segments: 0, repetition_stopped_segments: [], truncation_retried_segments: [], token_limit_segments: [], generated_tokens_by_segment: [], resumed_from_asr_checkpoint: false, published: false) ⇒ TranscriptionProvenance
constructor
A new instance of TranscriptionProvenance.
Constructor Details
#initialize(model_id: nil, model_revision: nil, model_format: nil, adapter_id: nil, adapter_revision: nil, decode_backend: nil, decode_fallback_reason: nil, vad_engine_requested: nil, vad_engine_actual: nil, vad_provider: nil, vad_fallback_reason: nil, fallback_alignment_segments: 0, repetition_stopped_segments: [], truncation_retried_segments: [], token_limit_segments: [], generated_tokens_by_segment: [], resumed_from_asr_checkpoint: false, published: false) ⇒ TranscriptionProvenance
Returns a new instance of TranscriptionProvenance.
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 |
# File 'lib/cohere/transcribe/types.rb', line 289 def initialize( model_id: nil, model_revision: nil, model_format: nil, adapter_id: nil, adapter_revision: nil, decode_backend: nil, decode_fallback_reason: nil, vad_engine_requested: nil, vad_engine_actual: nil, vad_provider: nil, vad_fallback_reason: nil, fallback_alignment_segments: 0, repetition_stopped_segments: [], truncation_retried_segments: [], token_limit_segments: [], generated_tokens_by_segment: [], resumed_from_asr_checkpoint: false, published: false ) super( model_id: TypesSupport.immutable(model_id), model_revision: TypesSupport.immutable(model_revision), model_format: TypesSupport.immutable(model_format), adapter_id: TypesSupport.immutable(adapter_id), adapter_revision: TypesSupport.immutable(adapter_revision), decode_backend: TypesSupport.immutable(decode_backend), decode_fallback_reason: TypesSupport.immutable(decode_fallback_reason), vad_engine_requested: TypesSupport.immutable(vad_engine_requested), vad_engine_actual: TypesSupport.immutable(vad_engine_actual), vad_provider: TypesSupport.immutable(vad_provider), vad_fallback_reason: TypesSupport.immutable(vad_fallback_reason), fallback_alignment_segments: fallback_alignment_segments, repetition_stopped_segments: TypesSupport.tuple( repetition_stopped_segments, field: "repetition_stopped_segments" ), truncation_retried_segments: TypesSupport.tuple( truncation_retried_segments, field: "truncation_retried_segments" ), token_limit_segments: TypesSupport.tuple(token_limit_segments, field: "token_limit_segments"), generated_tokens_by_segment: TypesSupport.tuple( generated_tokens_by_segment, field: "generated_tokens_by_segment" ), resumed_from_asr_checkpoint: resumed_from_asr_checkpoint, published: published ) end |
Instance Attribute Details
#adapter_id ⇒ Object (readonly)
Returns the value of attribute adapter_id
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def adapter_id @adapter_id end |
#adapter_revision ⇒ Object (readonly)
Returns the value of attribute adapter_revision
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def adapter_revision @adapter_revision end |
#decode_backend ⇒ Object (readonly)
Returns the value of attribute decode_backend
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def decode_backend @decode_backend end |
#decode_fallback_reason ⇒ Object (readonly)
Returns the value of attribute decode_fallback_reason
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def decode_fallback_reason @decode_fallback_reason end |
#fallback_alignment_segments ⇒ Object (readonly)
Returns the value of attribute fallback_alignment_segments
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def fallback_alignment_segments @fallback_alignment_segments end |
#generated_tokens_by_segment ⇒ Object (readonly)
Returns the value of attribute generated_tokens_by_segment
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def generated_tokens_by_segment @generated_tokens_by_segment end |
#model_format ⇒ Object (readonly)
Returns the value of attribute model_format
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def model_format @model_format end |
#model_id ⇒ Object (readonly)
Returns the value of attribute model_id
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def model_id @model_id end |
#model_revision ⇒ Object (readonly)
Returns the value of attribute model_revision
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def model_revision @model_revision end |
#published ⇒ Object (readonly)
Returns the value of attribute published
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def published @published end |
#repetition_stopped_segments ⇒ Object (readonly)
Returns the value of attribute repetition_stopped_segments
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def repetition_stopped_segments @repetition_stopped_segments end |
#resumed_from_asr_checkpoint ⇒ Object (readonly)
Returns the value of attribute resumed_from_asr_checkpoint
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def resumed_from_asr_checkpoint @resumed_from_asr_checkpoint end |
#token_limit_segments ⇒ Object (readonly)
Returns the value of attribute token_limit_segments
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def token_limit_segments @token_limit_segments end |
#truncation_retried_segments ⇒ Object (readonly)
Returns the value of attribute truncation_retried_segments
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def truncation_retried_segments @truncation_retried_segments end |
#vad_engine_actual ⇒ Object (readonly)
Returns the value of attribute vad_engine_actual
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def vad_engine_actual @vad_engine_actual end |
#vad_engine_requested ⇒ Object (readonly)
Returns the value of attribute vad_engine_requested
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def vad_engine_requested @vad_engine_requested end |
#vad_fallback_reason ⇒ Object (readonly)
Returns the value of attribute vad_fallback_reason
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def vad_fallback_reason @vad_fallback_reason end |
#vad_provider ⇒ Object (readonly)
Returns the value of attribute vad_provider
269 270 271 |
# File 'lib/cohere/transcribe/types.rb', line 269 def vad_provider @vad_provider end |
Class Method Details
.new ⇒ TranscriptionProvenance
140 |
# File 'sig/cohere/transcribe.rbs', line 140
def self.new: (**untyped) -> TranscriptionProvenance
|