Class: Cohere::Transcribe::TranscriptionProvenance

Inherits:
Data
  • Object
show all
Defined in:
lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs

Overview

Per-file decoder, VAD, generation, and alignment provenance.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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



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
339
340
341
342
343
344
345
346
347
348
349
350
351
352
# File 'lib/cohere/transcribe/types.rb', line 303

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



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def adapter_id
  @adapter_id
end

#adapter_revision ⇒ Object (readonly)

Returns the value of attribute adapter_revision



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def adapter_revision
  @adapter_revision
end

#decode_backend ⇒ Object (readonly)

Returns the value of attribute decode_backend



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def decode_backend
  @decode_backend
end

#decode_fallback_reason ⇒ Object (readonly)

Returns the value of attribute decode_fallback_reason



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def decode_fallback_reason
  @decode_fallback_reason
end

#fallback_alignment_segments ⇒ Object (readonly)

Returns the value of attribute fallback_alignment_segments



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def fallback_alignment_segments
  @fallback_alignment_segments
end

#generated_tokens_by_segment ⇒ Object (readonly)

Returns the value of attribute generated_tokens_by_segment



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def generated_tokens_by_segment
  @generated_tokens_by_segment
end

#model_format ⇒ Object (readonly)

Returns the value of attribute model_format



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def model_format
  @model_format
end

#model_id ⇒ Object (readonly)

Returns the value of attribute model_id



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def model_id
  @model_id
end

#model_revision ⇒ Object (readonly)

Returns the value of attribute model_revision



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def model_revision
  @model_revision
end

#published ⇒ Object (readonly)

Returns the value of attribute published



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def published
  @published
end

#repetition_stopped_segments ⇒ Object (readonly)

Returns the value of attribute repetition_stopped_segments



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def repetition_stopped_segments
  @repetition_stopped_segments
end

#resumed_from_asr_checkpoint ⇒ Object (readonly)

Returns the value of attribute resumed_from_asr_checkpoint



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def resumed_from_asr_checkpoint
  @resumed_from_asr_checkpoint
end

#token_limit_segments ⇒ Object (readonly)

Returns the value of attribute token_limit_segments



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def token_limit_segments
  @token_limit_segments
end

#truncation_retried_segments ⇒ Object (readonly)

Returns the value of attribute truncation_retried_segments



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def truncation_retried_segments
  @truncation_retried_segments
end

#vad_engine_actual ⇒ Object (readonly)

Returns the value of attribute vad_engine_actual



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def vad_engine_actual
  @vad_engine_actual
end

#vad_engine_requested ⇒ Object (readonly)

Returns the value of attribute vad_engine_requested



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def vad_engine_requested
  @vad_engine_requested
end

#vad_fallback_reason ⇒ Object (readonly)

Returns the value of attribute vad_fallback_reason



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def vad_fallback_reason
  @vad_fallback_reason
end

#vad_provider ⇒ Object (readonly)

Returns the value of attribute vad_provider



283
284
285
# File 'lib/cohere/transcribe/types.rb', line 283

def vad_provider
  @vad_provider
end

Class Method Details

.new ⇒ TranscriptionProvenance



141
# File 'sig/cohere/transcribe.rbs', line 141

def self.new: (**untyped) -> TranscriptionProvenance