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.



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_idObject (readonly)

Returns the value of attribute adapter_id

Returns:

  • (Object)

    the current value of adapter_id



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

def adapter_id
  @adapter_id
end

#adapter_revisionObject (readonly)

Returns the value of attribute adapter_revision

Returns:

  • (Object)

    the current value of adapter_revision



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

def adapter_revision
  @adapter_revision
end

#decode_backendObject (readonly)

Returns the value of attribute decode_backend

Returns:

  • (Object)

    the current value of decode_backend



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

def model_format
  @model_format
end

#model_idObject (readonly)

Returns the value of attribute model_id

Returns:

  • (Object)

    the current value of model_id



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

def model_id
  @model_id
end

#model_revisionObject (readonly)

Returns the value of attribute model_revision

Returns:

  • (Object)

    the current value of model_revision



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

def model_revision
  @model_revision
end

#publishedObject (readonly)

Returns the value of attribute published

Returns:

  • (Object)

    the current value of published



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

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



269
270
271
# File 'lib/cohere/transcribe/types.rb', line 269

def vad_provider
  @vad_provider
end

Class Method Details

.newTranscriptionProvenance

Parameters:

  • (Object)

Returns:



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

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