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

Returns a new instance of 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_idObject (readonly)

Returns the value of attribute adapter_id

Returns:

  • (Object)

    the current value of adapter_id



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

def adapter_id
  @adapter_id
end

#adapter_revisionObject (readonly)

Returns the value of attribute adapter_revision

Returns:

  • (Object)

    the current value of adapter_revision



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

def adapter_revision
  @adapter_revision
end

#decode_backendObject (readonly)

Returns the value of attribute decode_backend

Returns:

  • (Object)

    the current value of decode_backend



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

def decode_backend
  @decode_backend
end

#decode_fallback_reasonObject (readonly)

Returns the value of attribute decode_fallback_reason

Returns:

  • (Object)

    the current value of decode_fallback_reason



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

def decode_fallback_reason
  @decode_fallback_reason
end

#fallback_alignment_segmentsObject (readonly)

Returns the value of attribute fallback_alignment_segments

Returns:

  • (Object)

    the current value of 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_segmentObject (readonly)

Returns the value of attribute generated_tokens_by_segment

Returns:

  • (Object)

    the current value of 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_formatObject (readonly)

Returns the value of attribute model_format

Returns:

  • (Object)

    the current value of model_format



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

def model_format
  @model_format
end

#model_idObject (readonly)

Returns the value of attribute model_id

Returns:

  • (Object)

    the current value of model_id



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

def model_id
  @model_id
end

#model_revisionObject (readonly)

Returns the value of attribute model_revision

Returns:

  • (Object)

    the current value of model_revision



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

def model_revision
  @model_revision
end

#publishedObject (readonly)

Returns the value of attribute published

Returns:

  • (Object)

    the current value of published



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

def published
  @published
end

#repetition_stopped_segmentsObject (readonly)

Returns the value of attribute repetition_stopped_segments

Returns:

  • (Object)

    the current value of 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_checkpointObject (readonly)

Returns the value of attribute resumed_from_asr_checkpoint

Returns:

  • (Object)

    the current value of 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_segmentsObject (readonly)

Returns the value of attribute token_limit_segments

Returns:

  • (Object)

    the current value of token_limit_segments



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

def token_limit_segments
  @token_limit_segments
end

#truncation_retried_segmentsObject (readonly)

Returns the value of attribute truncation_retried_segments

Returns:

  • (Object)

    the current value of truncation_retried_segments



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

def truncation_retried_segments
  @truncation_retried_segments
end

#vad_engine_actualObject (readonly)

Returns the value of attribute vad_engine_actual

Returns:

  • (Object)

    the current value of vad_engine_actual



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

def vad_engine_actual
  @vad_engine_actual
end

#vad_engine_requestedObject (readonly)

Returns the value of attribute vad_engine_requested

Returns:

  • (Object)

    the current value of vad_engine_requested



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

def vad_engine_requested
  @vad_engine_requested
end

#vad_fallback_reasonObject (readonly)

Returns the value of attribute vad_fallback_reason

Returns:

  • (Object)

    the current value of vad_fallback_reason



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

def vad_fallback_reason
  @vad_fallback_reason
end

#vad_providerObject (readonly)

Returns the value of attribute vad_provider

Returns:

  • (Object)

    the current value of vad_provider



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

def vad_provider
  @vad_provider
end

Class Method Details

.newTranscriptionProvenance

Parameters:

  • (Object)

Returns:



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

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