MCPcopy Create free account

hub / github.com/cmusphinx/g2p-seq2seq / functions

Functions71 in github.com/cmusphinx/g2p-seq2seq

↓ 11 callersMethoddecode
Run decoding mode.
g2p_seq2seq/g2p.py:285
↓ 7 callersMethodencode
(self, symbols_line)
g2p_seq2seq/g2p_encoder.py:67
↓ 4 callersMethodgenerator
Generator for the training and evaluation data. Generate source and target data from a single file. Args: data_path: The path to data f
g2p_seq2seq/g2p_problem.py:77
↓ 3 callersMethod__prepare_model
Prepare utilities for decoding.
g2p_seq2seq/g2p.py:92
↓ 3 callersMethod__run_op
Run tensorflow operation for decoding.
g2p_seq2seq/g2p.py:249
↓ 3 callersFunctioncollect_pronunciations
Create dictionary mapping word to its different pronounciations. Args: source_path: path to the data file; cleanup: flag indicating whether
g2p_seq2seq/g2p_problem.py:457
↓ 3 callersFunctionsave_dic
(dic, save_path)
g2p_seq2seq/g2p_problem.py:516
↓ 2 callersMethod__decode_from_file
Compute predictions on entries in filename and write them out.
g2p_seq2seq/g2p.py:415
↓ 2 callersMethod_init_vocab
Initialize vocabulary with sym from sym_generator.
g2p_seq2seq/g2p_encoder.py:122
↓ 2 callersMethodcalc_errors
Calculate a number of prediction errors.
g2p_seq2seq/g2p.py:481
↓ 2 callersMethodevaluate
Run evaluation mode.
g2p_seq2seq/g2p.py:302
↓ 2 callersFunctiongen_file
Generate cases from generator and save as TFRecord file. Args: generator: a generator yielding (string -> int/float/str list) data. output_
g2p_seq2seq/g2p_problem.py:366
↓ 2 callersFunctionget_word
Get next word in the interactive mode.
g2p_seq2seq/g2p.py:506
↓ 2 callersFunctionsplit_graphemes_phonemes
Split line into graphemes and phonemes. Args: input_line: raw input line; cleanup: flag indicating whether to cleanup datasets from stress
g2p_seq2seq/g2p_problem.py:487
↓ 2 callersMethodtrain
Run training.
g2p_seq2seq/g2p.py:255
↓ 1 callersMethod__init__
Initialize generator.
g2p_seq2seq/g2p_problem.py:319
↓ 1 callersMethod__interactive_input_fn
(self)
g2p_seq2seq/g2p.py:228
↓ 1 callersMethod__load_graph
Load freezed graph.
g2p_seq2seq/g2p.py:401
↓ 1 callersMethod__prepare_interactive_model
Create monitored session and generator that reads from the terminal and yields "interactive inputs". Due to temporary limitations in tf.learn
g2p_seq2seq/g2p.py:118
↓ 1 callersFunction_decode_batch_input_fn
Decode batch
g2p_seq2seq/g2p.py:557
↓ 1 callersFunction_get_inputs
Returning inputs. Args: filename: path to file with inputs, 1 per line. delimiters: str, delimits records in the file. Returns: a li
g2p_seq2seq/g2p.py:531
↓ 1 callersMethod_init_vocab_from_file
Load vocab from a file. Args: filename: The file to load vocabulary from.
g2p_seq2seq/g2p_encoder.py:90
↓ 1 callersMethod_init_vocab_from_list
Initialize symbols from a list of symbols. It is ok if reserved symbols appear in the vocab list. They will be removed. The set of symbols in
g2p_seq2seq/g2p_encoder.py:105
↓ 1 callersFunctionadd_problem_hparams
Add problem hparams for the problems.
g2p_seq2seq/g2p_trainer_utils.py:43
↓ 1 callersFunctionbuild_vocab_list
Reads a file to build a vocabulary with letters and phonemes. Args: data_path: data file to read list of words from. Returns: vo
g2p_seq2seq/g2p_encoder.py:152
↓ 1 callersFunctioncreate_data_files
Create train, development and test data files from initial data files in case when not provided development or test data files or active cleanup f
g2p_seq2seq/g2p_problem.py:380
↓ 1 callersFunctioncreate_experiment
Create Experiment.
g2p_seq2seq/g2p_trainer_utils.py:84
↓ 1 callersFunctioncreate_experiment_func
Wrapper for canonical experiment_fn. See create_experiment.
g2p_seq2seq/g2p_trainer_utils.py:75
↓ 1 callersFunctioncreate_g2p_gt_map
Create grapheme-to-phoneme ground true mapping.
g2p_seq2seq/g2p.py:520
↓ 1 callersMethoddecode_list
(self, ids)
g2p_seq2seq/g2p_encoder.py:83
↓ 1 callersMethoddecode_word
Decode word. Args: word: word for decoding. Returns: pronunciation: a decoded phonemes sequence for input word.
g2p_seq2seq/g2p.py:186
↓ 1 callersFunctionexecute_schedule
(exp, params)
g2p_seq2seq/g2p.py:585
↓ 1 callersMethodfeature_encoders
(self)
g2p_seq2seq/g2p_problem.py:156
↓ 1 callersMethodfilepattern
(self, data_dir, dataset_split, shard=None)
g2p_seq2seq/g2p_problem.py:94
↓ 1 callersMethodfreeze
Freeze pre-trained model.
g2p_seq2seq/g2p.py:331
↓ 1 callersMethodgenerate_preprocess_data
Generate and save preprocessed data as TFRecord files. Args: train_path: the path to the train data file. eval_path: the path to the
g2p_seq2seq/g2p_problem.py:127
↓ 1 callersFunctiongenerate_preprocess_files
Generate cases from a generators and save as TFRecord files. Generated cases are transformed to tf.Example protos and saved as TFRecords in shard
g2p_seq2seq/g2p_problem.py:331
↓ 1 callersMethodinteractive
Interactive decoding.
g2p_seq2seq/g2p.py:260
↓ 1 callersFunctionprofile_context
(params)
g2p_seq2seq/g2p.py:594
↓ 1 callersMethodstore_to_file
Write vocab file to disk. Vocab files have one symbol per line. The file ends in a newline. Reserved symbols are written to the vocab file as
g2p_seq2seq/g2p_encoder.py:138
↓ 1 callersMethodtabbed_generator
r"""Generator for sequence-to-sequence tasks using tabbed files. Tokens are derived from text files where each line contains both a source an
g2p_seq2seq/g2p_problem.py:163
Method__call__
(self)
g2p_seq2seq/g2p_problem.py:323
Method__init__
Create a Problem. Args: was_reversed: bool, whether to reverse inputs and targets. was_copy: bool, whether to copy inputs to targets.
g2p_seq2seq/g2p_problem.py:43
Method__init__
(self, model_dir, data_path, flags=None)
g2p_seq2seq/params.py:25
Method__init__
Initialize from a file or list, one token per line. Handling of reserved tokens works as follows: - When initializing from a list, we add res
g2p_seq2seq/g2p_encoder.py:38
Method__init__
(self, params, train_path="", dev_path="", test_path="", cleanup=False, p2g_mode=False)
g2p_seq2seq/g2p.py:55
Method_preprocess
Whether preprocess data into required format.
g2p_seq2seq/g2p_problem.py:295
Functioncreate_experiment_fn
(params, problem_instance)
g2p_seq2seq/g2p_trainer_utils.py:50
Functioncreate_run_config
Create RunConfig
g2p_seq2seq/g2p_trainer_utils.py:203
Methoddataset
Build a Dataset for this problem. Args: mode: tf.estimator.ModeKeys; determines which files to read from. data_dir: directory that co
g2p_seq2seq/g2p_problem.py:198
Methoddecode
(self, ids)
g2p_seq2seq/g2p_encoder.py:80
Methoddecode_record
Serialized Example to dict of <feature name, Tensor>.
g2p_seq2seq/g2p_problem.py:286
Functionexperiment_fn
(run_config, hparams)
g2p_seq2seq/g2p_trainer_utils.py:78
Methodget_feature_encoders
(self, data_dir=None)
g2p_seq2seq/g2p_problem.py:151
Methodinput_fn
Input function returning features which is a dictionary of string feature name to `Tensor` or `SparseTensor`. If it returns a tuple, f
g2p_seq2seq/g2p.py:134
Methodinput_space_id
(self)
g2p_seq2seq/g2p_problem.py:100
Methodis_character_level
(self)
g2p_seq2seq/g2p_problem.py:116
Functionload_create_vocabs
Load/create vocabularies.
g2p_seq2seq/g2p_encoder.py:176
Functionload_params
Load customizable parameters from 'model.params' file.
g2p_seq2seq/g2p_trainer_utils.py:248
Functionmain
Main function.
g2p_seq2seq/app.py:90
Methodnum_shards
(self)
g2p_seq2seq/g2p_problem.py:108
Functionsave_params
Save customizable model parameters in 'model.params' file.
g2p_seq2seq/g2p_trainer_utils.py:232
Methodsym_gen
Symbols generator for vocab initializer from file.
g2p_seq2seq/g2p_encoder.py:96
Methodtarget_space_id
(self)
g2p_seq2seq/g2p_problem.py:104
Methodtargeted_vocab_size
(self)
g2p_seq2seq/g2p_problem.py:120
Methodtest_decode
(self)
tests/g2p_unittest.py:28
Methodtest_evaluate
(self)
tests/g2p_unittest.py:42
Methodtest_train
(self)
tests/g2p_unittest.py:14
Methoduse_subword_tokenizer
(self)
g2p_seq2seq/g2p_problem.py:112
Methodvocab_name
(self)
g2p_seq2seq/g2p_problem.py:124
Methodvocab_size
(self)
g2p_seq2seq/g2p_encoder.py:87