MCPcopy Create free account

hub / github.com/audioku/meta-transfer-learning / functions

Functions269 in github.com/audioku/meta-transfer-learning

↓ 1 callersFunctiondecode_hyp
args: hyp: list of hypothesis output: list of hypothesis (string)>
modules/decoding.py:7
↓ 1 callersFunctionevaluate
Evaluation args: model: Model object test_loader: DataLoader object
test.py:112
↓ 1 callersFunctionforward_one_batch
(model, hidden, inputs)
lm/main_joint.py:267
↓ 1 callersFunctionget_attn_key_pad_mask
For masking out the padding part of key sequence.
modules/common_layers.py:56
↓ 1 callersFunctionget_audio_length
(path)
utils/audio.py:17
↓ 1 callersFunctionget_batch
(source, i, evaluation=False)
lm/main_joint.py:188
↓ 1 callersFunctionget_batch
(source, i, evaluation=False)
lm/main_meta_transfer.py:190
↓ 1 callersMethodget_batch
(self, source, i, bptt, seq_len=None, evaluation=False)
utils/lm.py:95
↓ 1 callersFunctionget_word_segments_per_language_with_tokenization
Get word segments and tokenize the sequence for selected language We cannot run two different languages on stanford core nlp, will be very sl
utils/data.py:129
↓ 1 callersMethodinit_hidden
(self, bsz)
utils/lm.py:191
↓ 1 callersMethodinit_weights
(self)
utils/lm.py:175
↓ 1 callersMethodinit_weights
(self)
lm/model/rnn_model.py:49
↓ 1 callersMethodinject_noise
(self, data)
utils/data_loader.py:383
↓ 1 callersMethodinject_noise_sample
(self, data, noise_path, noise_level)
utils/data_loader.py:388
↓ 1 callersFunctionis_chinese_char
Check if the character is Chinese args: cc: char output: boolean
utils/data.py:61
↓ 1 callersFunctionis_chinese_char
(cc)
lm/test.py:94
↓ 1 callersFunctionis_chinese_char
(cc)
lm/main_joint.py:87
↓ 1 callersFunctionis_chinese_char
(cc)
lm/finetune.py:96
↓ 1 callersFunctionis_chinese_char
(cc)
lm/main_meta_transfer.py:89
↓ 1 callersFunctionis_chinese_char
(cc)
lm/main.py:92
↓ 1 callersFunctionis_chinese_char
(cc)
lm/convert.py:94
↓ 1 callersFunctionis_chinese_char
(cc)
lm/util/texthelper.py:147
↓ 1 callersFunctionis_contain_chinese_word
(seq)
lm/main_joint.py:90
↓ 1 callersFunctionis_contain_chinese_word
(seq)
lm/finetune.py:99
↓ 1 callersFunctionis_contain_chinese_word
(seq)
lm/main_meta_transfer.py:92
↓ 1 callersFunctionis_contain_chinese_word
(seq)
lm/main.py:95
↓ 1 callersFunctionload_discriminator
Loading discriminator args: load_path: string
utils/functions.py:267
↓ 1 callersFunctionload_model
Loading model args: load_path: string
utils/functions.py:220
↓ 1 callersFunctionload_randomly_augmented_audio
Picks tempo and gain uniformly, applies it to the utterance by using sox utility. Returns the augmented utterance.
utils/audio.py:50
↓ 1 callersFunctionmerge_abbreviation
(seq)
utils/data.py:216
↓ 1 callersFunctionmodel_save
(fn)
lm/convert.py:433
↓ 1 callersMethodparse_audio
(self, path)
utils/data_loader.py:145
↓ 1 callersMethodparse_transcript
(self, transcript_path)
utils/data_loader.py:157
↓ 1 callersMethodpost_process_hyp
args: hyp: list of hypothesis output: list of hypothesis (string)>
modules/decoder.py:117
↓ 1 callersFunctionprepare_generator_batch
Takes samples (a batch) and returns Inputs: samples, start_letter, cuda - samples: batch_size x seq_len (Tensor with a sample in
lm/util/helpers.py:5
↓ 1 callersMethodrate
Implement `lrate` above
utils/optimizer.py:27
↓ 1 callersFunctionremove_punctuation
Remove english and chinese punctuation except hypen/dash, and full stop. Also fix some typos and encoding issues args: seq: Strin
utils/data.py:243
↓ 1 callersFunctionremove_punctuation
(seq)
lm/util/texthelper.py:77
↓ 1 callersFunctionremove_special_char
Remove special characters from the corpus args: seq: String output: seq: String
utils/data.py:311
↓ 1 callersFunctionremove_special_char
(seq)
lm/util/texthelper.py:98
↓ 1 callersMethodrepackage_hidden
Wraps hidden states in new Tensors, to detach them from their history.
utils/lm.py:125
↓ 1 callersMethodseq_to_tensor
(self, seq)
utils/lm.py:78
↓ 1 callersFunctionsequence_mask
(sequence_length, max_len=None)
lm/util/masked_cross_entropy.py:5
↓ 1 callersFunctiontrain
(tr_data_source, val_data_source, start_it, num_it, log_interval, valid_interval)
lm/main_joint.py:275
↓ 1 callersFunctiontrain
(data_source)
lm/finetune.py:266
↓ 1 callersFunctiontrain
(tr_data_source, val_data_source, start_it, num_it, log_interval, valid_interval)
lm/main_meta_transfer.py:277
↓ 1 callersFunctiontrain
(data_source)
lm/main.py:244
Method__getitem__
(self, index)
utils/data_loader.py:133
Method__getitem__
(self, index)
utils/data_loader.py:323
Method__init__
(self, dim_model, dim_inner, num_heads, dim_key, dim_value, dropout=0.1, is_factorized=False, r=100)
modules/decoder.py:298
Method__init__
(self, feat_dim, num_class)
modules/discriminator.py:9
Method__init__
(self, num_heads, dim_model, dim_inner, dim_key, dim_value, dropout=0.1, is_factorized=False, r=100)
modules/encoder.py:88
Method__init__
(self, dim_model, dim_ff, dropout=0.1)
modules/common_layers.py:115
Method__init__
(self, dim_model, dim_ff, dropout=0.1, r=100)
modules/common_layers.py:139
Method__init__
(self, dim_model, dim_hidden, dropout=0.1)
modules/common_layers.py:164
Method__init__
(self, num_heads, dim_model, dim_key, dim_value, dropout=0.1)
modules/common_layers.py:181
Method__init__
(self, num_heads, dim_model, dim_key, dim_value, dropout=0.1, r=100)
modules/common_layers.py:239
Method__init__
(self, temperature, attn_dropout=0.1)
modules/common_layers.py:311
Method__init__
(self)
modules/common_layers.py:345
Method__init__
(self, model_size, factor, warmup, optimizer, min_lr=1e-5)
utils/optimizer.py:6
Method__init__
(self, lr, lr_anneal, optimizer)
utils/optimizer.py:37
Method__init__
(self, gpt2_en_tokenizer, bert_cn_tokenizer, unk_token="<|endoftext|>", bos_token="<|endofte
utils/tokenizer.py:32
Method__init__
(self, log_name)
utils/logger.py:5
Method__init__
Parses audio file into spectrogram with optional normalization and various augmentations :param audio_conf: Dictionary containing t
utils/data_loader.py:46
Method__init__
Dataset that loads tensors via a csv containing file paths to audio files and transcripts separated by a comma. Each new line is a
utils/data_loader.py:102
Method__init__
Dataset that loads tensors via a csv containing file paths to audio files and transcripts separated by a comma. Each new line is a
utils/data_loader.py:171
Method__init__
(self, pad_token_id, *args, **kwargs)
utils/data_loader.py:402
Method__init__
Samples batches assuming they are in order of size to batch similarly sized samples together.
utils/data_loader.py:481
Method__init__
(self)
utils/data.py:2
Method__init__
(self, rnn_type, ntoken, ninp, nhid, nlayers, dropout=0.5, tie_weights=False)
utils/lm.py:137
Method__init__
(self, rnn_type, ntoken, ninp, nhid, nlayers, dropout=0.5, tie_weights=False)
lm/model/rnn_model.py:15
Method__init__
(self, task_list, args)
lm/util/data.py:13
Method__init__
(self)
lm/util/data.py:70
Method__init__
(self)
trainer/asr/transient_trainer.py:22
Method__init__
(self)
trainer/asr/analyzer.py:20
Method__init__
(self)
trainer/asr/meta_trainer.py:22
Method__init__
(self)
trainer/asr/joint_trainer.py:22
Method__init__
(self)
trainer/asr/multitask_joint_trainer.py:22
Method__init__
(self)
trainer/asr/trainer.py:18
Method__init__
(self, encoder, decoder, vocab, feat_extractor='vgg_cnn', train=True, is_factorized=False, r=100)
models/asr/transformer.py:22
Method__iter__
(self)
utils/data_loader.py:491
Method__len__
(self)
utils/data_loader.py:167
Method__len__
(self)
utils/data_loader.py:363
Method__len__
(self)
utils/data_loader.py:496
Method__len__
(self)
lm/util/data.py:80
Method_collate_fn
(batch)
utils/data_loader.py:406
Method_convert_id_to_token
Converts an index (integer) in a token (string/unicode) using the vocab.
utils/tokenizer.py:151
Method_convert_token_to_id
Converts a token (str/unicode) in an id using the vocab.
utils/tokenizer.py:138
Method_tokenize
(self, text, **kwargs)
utils/tokenizer.py:115
Methodadd_copy_grad
(self)
modules/discriminator.py:41
Methodanalyze
Training args: model: Model object train_loader: DataLoader object of the training set valid
trainer/asr/analyzer.py:23
Functionbatchwise_oracle_nll
(gen, oracle, num_samples, batch_size, max_seq_len, start_letter=0, gpu=False)
lm/util/helpers.py:80
Methodconvert_tokens_to_string
Converts a sequence of tokens (string) in a single string.
utils/tokenizer.py:158
Methodcreate_seq_idx_matrix
(self, path)
lm/util/data.py:109
Methodcreate_seq_word_matrix
(self, path)
lm/util/data.py:131
Functiondecode_beam_search
Beam search, decode nbest utterances args: encoder_padded_outputs: B x T x H beam_size: int nbest: int outp
modules/decoding.py:53
Functiondecode_greedy_search
Greedy search, decode 1-best utterance args: encoder_padded_outputs: B x T x H output: batch_ids_nbest_hyps: list of
modules/decoding.py:16
Methoddecode_hyp
args: hyp: list of hypothesis output: list of hypothesis (string)>
models/asr/transformer.py:153
Methodencode_plus
Returns a dictionary containing the encoded sequence or sequence pair and additional informations: the mask for sequence classifica
utils/tokenizer.py:43
Functionevaluate
(data_source, type_evaluation="val")
lm/convert.py:189
← previousnext →101–200 of 269, ranked by callers