MCPcopy Create free account

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

Functions314 in github.com/calclavia/tal-asrd

Method_encode
Encodes a sentence to token IDs Args: sentence (str): Sentence in text form Returns:
tal/asr/tokenizers/transformers.py:36
Method_get_speaker_id
(self, speaker_name: str)
tal/asr/data/aligned.py:189
Methodadd_param_group
(self, param_group)
tal/optimizers.py:297
Functionalign_episode
(ep_turns_tuple: tuple, data_dir: str, align_dir: str, log: bool = False)
tal/alignment/aeneas.py:72
Methodbos_token_id
(self)
tal/asr/tokenizers/__init__.py:27
Functionbuild_index
Builds an index for a single audio file's utterances.
tal/asr/data/segment.py:23
Functionbuild_index
Builds an index for a single audio file's utterances.
tal/asr/data/aligned.py:21
Functionbuild_index
Builds an index for a single audio file's utterances.
tal/asr/data/baseline_speaker.py:21
Methodbuild_index
Construct a chunk index for sampling.
tal/asr/data/segment.py:168
Functionbuild_segment_cache_single
(fname, data_dir, max_duration)
tal/asr/data/audio.py:17
Functioncalculate_wer
(ref, hyp)
tal/wder.py:150
Functioncompute_sequence_match_accuracy
Compute the accuracy between two sequences by finding optimal matching. Args: sequence1: A list of integers or strings. sequence2: A list o
tal/diarization/uisrnn/evals.py:31
Functionconcatenate_training_data
Concatenate training data. Args: train_sequences: a list of 2-dim numpy arrays to be concatenated train_cluster_ids: a list of 1-
tal/diarization/uisrnn/utils.py:76
Methodconfigure_optimizers
(self)
tal/asr/train_embed.py:97
Methodconfigure_optimizers
(self)
tal/asr/system.py:764
Methodconfigure_optimizers
(self)
tal/baseline/speaker_system.py:127
Functionconvert_to_wav
(in_file)
tal/data_scratch/convert_wav.py:77
Functionconvert_wav
(in_file)
tal/data_scratch/convert_wav.py:11
Functioncosine_distance
(x, y, **kwargs)
tal/wder_search_emb.py:519
Functioncosine_distance
(x, y, **kwargs)
tal/wder_search_emb_new_format.py:492
Functioncosine_distance
(x, y, **kwargs)
tal/wder_search.py:445
Functioncosine_distance
(x, y, **kwargs)
tal/wder.py:297
Methoddebug
(self, x: object, msg: str = '')
tal/asr/system.py:61
Methoddebug
(self, x: object, msg: str = '')
tal/baseline/speaker_system.py:55
Methoddecode_list
Decode a list of IDs Args: tokens (list): List of token IDs Returns: str: Output strings
tal/asr/tokenizers/sentencepiece.py:59
Methoddecode_list
Decode a list of IDs Args: tokens (list): List of token IDs Returns: str: Ou
tal/asr/tokenizers/transformers.py:48
Methodeos_token_id
(self)
tal/asr/tokenizers/__init__.py:31
Methodeot_token_id
(self)
tal/asr/tokenizers/__init__.py:35
Functionestimate_transition_bias
Estimate the transition bias. Args: cluster_id: Either a list of cluster indicator sequences, or a single concatenated sequen
tal/diarization/uisrnn/utils.py:304
Methodexperiment
r""" Actual wandb object. To use wandb features do the following. Example:: self.logger.experiment.some_wandb_fun
tal/asr/logger.py:36
Functionf
(e)
tal/schedules.py:4
Functionf
Initialize the weights.
tal/modules.py:7
Methodforward
r"""Inputs of forward function Args: x: the sequence fed to the positional encoder model (required). Shape:
tal/modules.py:53
Methodforward
Args: Audio: Tensor of [batch, audio_len]
tal/asr/models.py:36
Methodforward
(self, x, y_prev, audio_lens)
tal/asr/models.py:291
Methodforward
Args: x: Melspec features [batch, features, time]
tal/asr/models.py:323
Methodforward
Args: x: Melspec features [batch, features, time]
tal/asr/models.py:392
Methodforward
(self, x, audio_lens)
tal/asr/models.py:483
Methodforward
(self, tgt, memory, tgt_mask=None, memory_mask=None, tgt_key_padding_mask=None, memory_key_pa
tal/asr/models.py:512
Methodforward
(self, input, target)
tal/asr/util.py:23
Methodforward
(self, input_seq, hidden=None)
tal/diarization/uisrnn/uisrnn.py:33
Functionfull_force_align
(ep_turns_tuple: tuple, data_dir: str, out_dir: str)
tal/alignment/aeneas.py:30
Methodget_encoder_params
(self)
tal/asr/models.py:151
Methodget_encoder_params
(self)
tal/asr/models.py:427
Functionget_hyp_dict_wder
(i: int, hyp_dict: dict, role_map: dict,
tal/utils/aligned_to_wder_format.py:65
Functionget_lm_argparser
()
tal/asr/args.py:65
Functionhyperopt_obj
(**params)
tal/wder.py:432
Functioninv_sqrt_schedule
(warmup=1e4)
tal/schedules.py:10
Functioninverse_dot_product
(x, y, **kwargs)
tal/wder_search_emb.py:523
Functioninverse_dot_product
(x, y, **kwargs)
tal/wder_search_emb_new_format.py:496
Functioninverse_dot_product
(x, y, **kwargs)
tal/wder_search.py:449
Functioninverse_dot_product
(x, y, **kwargs)
tal/wder.py:301
Functionis_valid_segment
Check if this list of utterances contain valid audio timestamps.
tal/asr/data/segment.py:36
Methodlog_lm_generation
(self, ref_text, hyp_text)
tal/asr/logger.py:59
Methodname
(self)
tal/asr/logger.py:65
Functionneg_dot_product
(x, y, **kwargs)
tal/wder_search_emb.py:527
Functionneg_dot_product
(x, y, **kwargs)
tal/wder_search_emb_new_format.py:500
Functionneg_dot_product
(x, y, **kwargs)
tal/wder_search.py:453
Functionneg_dot_product
(x, y, **kwargs)
tal/wder.py:305
Methodon_epoch_start
(self)
tal/asr/system.py:64
Methodon_epoch_start
(self)
tal/baseline/speaker_system.py:58
Functionoutput_result
Produce a string to summarize the experiment.
tal/diarization/uisrnn/utils.py:269
Functionpack_sequence
Pack sequences for training. Args: sub_sequences: A list of numpy array, with obsevation vector from the same cluster in the
tal/diarization/uisrnn/utils.py:217
Methodpad_token_id
(self)
tal/asr/tokenizers/__init__.py:23
Functionpairwise_idp
(X, **kwargs)
tal/wder_search_emb.py:35
Functionpairwise_idp
(X, **kwargs)
tal/wder_search_emb_new_format.py:35
Functionpairwise_idp
(X, **kwargs)
tal/wder_search.py:28
Functionpairwise_ndp
(X, **kwargs)
tal/wder_search_emb.py:39
Functionpairwise_ndp
(X, **kwargs)
tal/wder_search_emb_new_format.py:39
Functionpairwise_ndp
(X, **kwargs)
tal/wder_search.py:32
Functionparse_arguments
Parse arguments. Returns: A tuple of: - `model_args`: model arguments - `training_args`: training arguments - `infer
tal/diarization/uisrnn/arguments.py:21
Functionreconstruct_filename
(episode: str, segment_n: int)
tal/vad/webrtcvad.py:204
Functionregularization_loss
Compute regularization loss. Args: params: iterable of all parameters weight: weight for the regularization term Returns: the regula
tal/diarization/uisrnn/loss_func.py:54
Functionresize_sequence
Resize sequences for packing and batching. Args: sequence: (real numpy matrix, size: seq_len*obs_size) - observed sequence cluste
tal/diarization/uisrnn/utils.py:185
Methodselect_from_beam
(x, best_beams)
tal/asr/system.py:173
Functionsigma2_prior_loss
Compute sigma2 prior loss. Args: num_non_zero: since rnn_truth is a collection of different length sequences padded with zeros to fit t
tal/diarization/uisrnn/loss_func.py:35
Methodslice_encoder_out
(encoder_out, start, end)
tal/asr/system.py:325
Methodslice_tensor
(x, start: torch.LongTensor, end: torch.LongTensor = None)
tal/asr/system.py:311
Functionsplit_file
(path, dest, filename, max_secs, ext)
tal/data_scratch/chunk_audio.py:8
Methodstep
(self, closure=None)
tal/optimizers.py:19
Methodstep
Performs a single optimization step. Arguments: closure (callable, optional): A closure that reevaluates the model
tal/optimizers.py:148
Methodstep
(self, closure=None)
tal/optimizers.py:260
Functionstr2bool
A function to convert string to bool value.
tal/diarization/uisrnn/arguments.py:12
Methodsupports_memory_efficient_fp16
(self)
tal/optimizers.py:122
Methodtest_dataloader
(self)
tal/asr/system.py:846
Methodtest_dataloader
(self)
tal/baseline/speaker_system.py:188
Methodtest_end
(self, outputs)
tal/asr/train_embed.py:90
Methodtest_end
Called at the end of test to aggregate outputs :param outputs: list of individual outputs of each test step :return:
tal/asr/system.py:744
Methodtest_step
(self, batch, batch_idx)
tal/asr/train_embed.py:86
Methodtest_step
(self, batch, batch_nb)
tal/asr/system.py:625
Methodtrain_dataloader
(self)
tal/asr/train_embed.py:113
Methodtrain_dataloader
(self)
tal/asr/system.py:784
Methodtrain_dataloader
(self)
tal/baseline/speaker_system.py:180
Functiontriangle_schedule
(warmup, total_iterations)
tal/schedules.py:3
Functiontweet_tokenize
(stuff)
tal/wder_search_emb.py:31
Functiontweet_tokenize
(stuff)
tal/wder_search_emb_new_format.py:31
Functiontweet_tokenize
(stuff)
tal/wder_search.py:24
Functiontweet_tokenize
(stuff)
tal/wder.py:20
Methodupdate_config
Updates config with data
tal/asr/logger.py:31
Methodupdate_lookahead
(self)
tal/optimizers.py:256
← previousnext →201–300 of 314, ranked by callers