MCPcopy Create free account

hub / github.com/calclavia/tal-asrd / functions

Functions314 in github.com/calclavia/tal-asrd

↓ 149 callersMethodappend
Append new item to the BeamState.
tal/diarization/uisrnn/uisrnn.py:59
↓ 77 callersMethodload
Load the model from a file. Args: filepath: the path of the file.
tal/diarization/uisrnn/uisrnn.py:136
↓ 36 callersFunctionextend_utterance
(utts: dict, ix: int, amount: float)
tal/data_scratch/tal_alignment_operations.py:2
↓ 35 callersFunctionpush_utterance
(utts: dict, ix: int, amount: float)
tal/data_scratch/tal_alignment_operations.py:22
↓ 28 callersFunctiontruncate_utterance
(utts: dict, ix: int, amount: float)
tal/data_scratch/tal_alignment_operations.py:12
↓ 14 callersMethodsave
Save the model to a file. Args: filepath: the path of the file.
tal/diarization/uisrnn/uisrnn.py:122
↓ 12 callersMethoddecode
(self, encoder_out, past=None, causal_mask=True)
tal/asr/models.py:473
↓ 12 callersMethodload_state_dict
(self, state_dict)
tal/optimizers.py:284
↓ 8 callersFunctioncount_parameters
(model)
tal/__init__.py:30
↓ 8 callersFunctiondebug
(m)
tal/diarization/uisrnn/train_large.py:47
↓ 7 callersMethodencode
Encodes a sentence to token IDs Args: sentence (str): Sentence in text form bos_token (bool, op
tal/asr/tokenizers/__init__.py:51
↓ 7 callersMethodfit
Fit UISRNN model. Args: train_sequences: Either a list of training sequences, or a single concatenated training s
tal/diarization/uisrnn/uisrnn.py:305
↓ 6 callersFunctiondebug
(m)
tal/diarization/uisrnn/train.py:41
↓ 6 callersMethodencode
Args: x - Tensor of raw waveform [batch, length]
tal/asr/models.py:465
↓ 6 callersFunctionget_argparser
(is_train=False)
tal/asr/args.py:4
↓ 5 callersMethod__init__
(self, input_size, sizes, depths, kernel_size=21, dropout=0.1)
tal/asr/models.py:354
↓ 5 callersMethodinit
(self, model)
tal/asr/logger.py:23
↓ 4 callersMethoddecode
Decodes a sequence of IDs into a string Args: tokens (Union[list, torch.LongTensor]): Tokens sequence
tal/asr/tokenizers/__init__.py:88
↓ 4 callersMethodget_dataloader
(self, split, return_dataset=False)
tal/baseline/speaker_system.py:146
↓ 4 callersMethodprint
Print a message if level is not higher than verbosity. Args: level: the level of this message, smaller value means more important
tal/diarization/uisrnn/utils.py:21
↓ 4 callersFunctionslice_seq
(seq, indices)
tal/diarization/uisrnn/train.py:234
↓ 4 callersFunctionslice_seq
(seq, indices)
tal/diarization/uisrnn/train_large.py:237
↓ 4 callersMethodupdate
(self, group)
tal/optimizers.py:246
↓ 3 callersMethodgenerate
Generates text from encoder features. Args: audio_x: Input audio (wav). [batch, seq len] generated: The i
tal/asr/system.py:68
↓ 3 callersFunctionget_device
(use_cuda=True)
tal/__init__.py:11
↓ 3 callersFunctionget_word_speakers
(speaker_utterances, embeddings: bool = False, is_ref: bool = Fals
tal/wder_search_emb.py:164
↓ 3 callersFunctionget_word_speakers
(speaker_utterances, embeddings: bool = False, is_ref: bool = Fals
tal/wder_search_emb_new_format.py:160
↓ 3 callersFunctionget_word_speakers
(speaker_utterances, embeddings: bool = False, is_ref: bool = Fa
tal/wder_search.py:157
↓ 3 callersFunctionis_valid_utterance
Checks if a single utterance is valid
tal/asr/data/util.py:55
↓ 3 callersFunctionload_audio_segment
Loads an audio segment and uses local cache
tal/asr/data/util.py:18
↓ 3 callersMethodpredict_single
Predict labels for a single test sequence using UISRNN model. Args: test_sequence: the test observation sequence, which is 2-dim
tal/diarization/uisrnn/uisrnn.py:470
↓ 2 callersMethod__init__
(self, params, lr=1e-3, betas=(0.9, 0.999), eps=1e-6, weight_decay=0, adam=False)
tal/optimizers.py:322
↓ 2 callersMethod_rms
(self, tensor)
tal/optimizers.py:140
↓ 2 callersMethod_update_beam_state
Update a beam state given a look ahead sequence and known cluster assignments. Args: beam_state: A BeamState object.
tal/diarization/uisrnn/uisrnn.py:378
↓ 2 callersFunctioncompute_sequence_match
Compute the accuracy between two sequences by finding optimal matching. Args: sequence1: A list of integers or strings. sequenc
tal/wder_search.py:53
↓ 2 callersFunctionconvert_audio
Converts an audio file to consistent specifications Args: in_file (str): Input file location (raw) out_file (str): Output fi
tal/utils/audio.py:38
↓ 2 callersFunctionconvert_time
(t_s)
tal/data_scratch/librispeech_fix.py:16
↓ 2 callersFunctionconvert_to_wder_format
Input - list of tuples: (utterance string, speaker ID) OR (utterance string, speaker vectors) Return - list of t
tal/wder.py:83
↓ 2 callersFunctioncorpus_wder
(paired_results, wer_only: bool = False, workers: int = 1,
tal/wder.py:259
↓ 2 callersFunctiondebug_log
12/4/2019 - Shuyang Li Debug logging of an object. Usage: from functools import partial debug_fxn = partial(debug_log, debug=True)
tal/__init__.py:53
↓ 2 callersMethoddecode_list
Decode a list of IDs Args: tokens (list): List of token IDs Returns: str: Ou
tal/asr/tokenizers/__init__.py:76
↓ 2 callersMethoddecode_spk
Args: y_prev: [batch, seq_len]
tal/asr/models.py:249
↓ 2 callersMethodforward
(self, x, y_prev, audio_lens)
tal/asr/system.py:526
↓ 2 callersMethodforward
(self, x, audio_lens)
tal/baseline/speaker_system.py:62
↓ 2 callersFunctionframe_generator
Generates audio frames from PCM audio data. Takes the desired frame duration in milliseconds, the PCM data, and the sample rate. Yields
tal/asr/speech_detect.py:84
↓ 2 callersFunctionfreq_mask
(spec, F=27, num_masks=2)
tal/asr/models.py:531
↓ 2 callersFunctionget_audio_info
Get audio information for an audio file Args: audio_loc (str): Target audio file path audio_fmt (str): If 'wav', process dif
tal/utils/audio.py:89
↓ 2 callersFunctionget_list_inverse_index
Get value to position index from a list of unique ids. Args: unique_ids: A list of unique integers of strings. Returns: result
tal/wder_search_emb.py:43
↓ 2 callersFunctionget_list_inverse_index
Get value to position index from a list of unique ids. Args: unique_ids: A list of unique integers of strings. Returns: result
tal/wder_search_emb_new_format.py:43
↓ 2 callersFunctionget_list_inverse_index
Get value to position index from a list of unique ids. Args: unique_ids: A list of unique integers of strings. Returns: re
tal/wder_search.py:36
↓ 2 callersFunctionget_list_inverse_index
Get value to position index from a list of unique ids. Args: unique_ids: A list of unique integers of strings. Returns: re
tal/wder.py:24
↓ 2 callersFunctionget_list_inverse_index
Get value to position index from a list of unique ids. Args: unique_ids: A list of unique integers of strings. Returns: result: a dict f
tal/diarization/uisrnn/evals.py:11
↓ 2 callersFunctionget_relative_ids
(speakers)
tal/baseline/reconcile.py:132
↓ 2 callersFunctionget_trained_wav2vec
Retrieve a trained Wav2Vec model from local cache Args: cache_path (str): Cache directory Returns: Wav2VecModel: Traine
tal/diarization/features/wav2vec/__init__.py:41
↓ 2 callersFunctionget_wder
Given edits, speakers, and roles, compute WDER (and attribute WDER to roles!)
tal/wder_search_emb.py:267
↓ 2 callersFunctionget_wder
Given edits, speakers, and roles, compute WDER (and attribute WDER to roles!)
tal/wder_search_emb_new_format.py:256
↓ 2 callersFunctionget_wder
Given edits, speakers, and roles, compute WDER (and attribute WDER to roles!)
tal/wder_search.py:242
↓ 2 callersMethodlog_generation
(self, audio, ref_text, hyp_text)
tal/asr/logger.py:51
↓ 2 callersMethodpredict
Predict labels for a single or many test sequences using UISRNN model. Args: test_sequences: Either a list of test sequences, or
tal/diarization/uisrnn/uisrnn.py:556
↓ 2 callersFunctionrun_experiment
Run a single experiment Args: train_sequence (np.array): Sequence of T x H arrays (audio features) train_cluster_id (np.arra
tal/diarization/uisrnn/train.py:16
↓ 2 callersFunctionset_seed
(seed, gpu=True)
tal/__init__.py:34
↓ 2 callersFunctionsplice_ix
(a: str, b: str, word_overlap: int = 5)
tal/asr/transcribe.py:35
↓ 2 callersFunctionsplice_strings
(strs: list, word_overlap: int = 20)
tal/asr/transcribe.py:54
↓ 2 callersMethodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
tal/optimizers.py:337
↓ 2 callersFunctiontime_mask
(spec, T=100, num_masks=2)
tal/asr/models.py:550
↓ 2 callersFunctiontokenize_utterances
Args: tokenize_speaker: Function to tokenize speaker
tal/asr/data/util.py:72
↓ 2 callersFunctionvad_collector
Filters out non-voiced audio frames. Given a webrtcvad.Vad and a source of audio frames, yields only the voiced audio. Uses a padded, s
tal/asr/speech_detect.py:100
↓ 2 callersFunctionweight_init
()
tal/modules.py:6
↓ 2 callersFunctionwrite_wave
Writes a .wav file. Takes path, PCM audio data, and sample rate.
tal/vad/webrtcvad.py:38
↓ 1 callersMethod__init__
Construct the UISRNN object. Args: args: Model configurations. See `arguments.py` for details.
tal/diarization/uisrnn/uisrnn.py:70
↓ 1 callersMethod_approx_sq_grad
(self, exp_avg_sq_row, exp_avg_sq_col, output)
tal/optimizers.py:143
↓ 1 callersMethod_calculate_score
Calculate negative log likelihoods for all possible state allocations of a look ahead sequence, according to the current beam state.
tal/diarization/uisrnn/uisrnn.py:445
↓ 1 callersMethod_encode
Encodes a sentence to token IDs Args: sentence (str): Sentence in text form Returns:
tal/asr/tokenizers/__init__.py:39
↓ 1 callersMethod_get_lr
(self, param_group, param_state)
tal/optimizers.py:125
↓ 1 callersMethod_get_optimizer
Get optimizer for UISRNN. Args: optimizer: string - name of the optimizer. learning_rate: - learning rate for the ent
tal/diarization/uisrnn/uisrnn.py:96
↓ 1 callersMethod_get_options
(self, param_group, param_shape)
tal/optimizers.py:135
↓ 1 callersMethod_get_speaker_id
(self, speaker_name: str)
tal/asr/data/segment.py:161
↓ 1 callersMethod_get_speaker_id
(self, speaker_name: str)
tal/asr/data/baseline_speaker.py:178
↓ 1 callersMethodaggregate
Feature aggregation network RF: 141 frames (1.41s) or 61 extracted features.
tal/asr/models.py:383
↓ 1 callersFunctioncalculate_wder
https://arxiv.org/pdf/1907.05337.pdf WDER = ( (# ASR substitutions, corect speakers) + (# correct ASR, correct speakers) ) ----
tal/wder.py:165
↓ 1 callersFunctioncluster
(embeddings: list, params: tuple, get_engine: bool = False)
tal/wder_search_emb.py:95
↓ 1 callersFunctioncluster
(embeddings: list, params: tuple, get_engine: bool = False)
tal/wder_search_emb_new_format.py:95
↓ 1 callersFunctioncluster
(embeddings: list, params: tuple)
tal/wder_search.py:88
↓ 1 callersFunctioncluster_speakers
(speaker_representations: list, **kwargs)
tal/wder.py:76
↓ 1 callersFunctioncompute_sequence_match
Compute the accuracy between two sequences by finding optimal matching. Args: sequence1: A list of integers or strings. sequence2:
tal/wder_search_emb.py:60
↓ 1 callersFunctioncompute_sequence_match
Compute the accuracy between two sequences by finding optimal matching. Args: sequence1: A list of integers or strings. sequence2:
tal/wder_search_emb_new_format.py:60
↓ 1 callersFunctioncompute_sequence_match
Compute the accuracy between two sequences by finding optimal matching. Args: sequence1: A list of integers or strings. sequenc
tal/wder.py:41
↓ 1 callersFunctionconvert_audio
Converts an audio file to consistent specifications Args: in_file (str): Input file location (raw) out_file (str): Outp
tal/data_scratch/convert_wav.py:22
↓ 1 callersFunctionconvert_sphere
Converts a .sph file into a normal output format Args: sph2pipe_bin (str): Name with which to invoke sph2pipe utility in_fil
tal/utils/audio.py:15
↓ 1 callersFunctioncorpus_wder_map
(paired_results, cluster_params, tokenizer, worker
tal/wder_search_emb.py:448
↓ 1 callersFunctioncorpus_wder_map
(paired_results, cluster_params, tokenizer, worker
tal/wder_search_emb_new_format.py:421
↓ 1 callersFunctioncorpus_wder_map
(paired_results, cluster_params, tokenizer, wor
tal/wder_search.py:376
↓ 1 callersFunctioncosine_similarity
(x, y, **kwargs)
tal/wder_search_emb.py:513
↓ 1 callersFunctioncosine_similarity
(x, y, **kwargs)
tal/wder_search_emb_new_format.py:486
↓ 1 callersFunctioncosine_similarity
(x, y, **kwargs)
tal/wder_search.py:439
↓ 1 callersFunctioncosine_similarity
(x, y, **kwargs)
tal/wder.py:291
↓ 1 callersMethoddecode
Args: y_prev: [batch, seq_len]
tal/asr/models.py:203
↓ 1 callersMethoddecode_speakers
Decodes a sequence of tokens. Tokens outside of the tokenizer range are treated as speaker IDs. Returns: [(s
tal/asr/tokenizers/__init__.py:103
↓ 1 callersFunctiondiarization_experiment
Experiment pipeline. Load data --> train model --> test model --> output result Args: model_args: model configurations training_args
tal/diarization/uisrnn/train.py:122
↓ 1 callersFunctiondiarization_experiment
Experiment pipeline. Load data --> train model --> test model --> output result Args: model_args: model configurations training_args
tal/diarization/uisrnn/train_large.py:165
next →1–100 of 314, ranked by callers