MCPcopy Create free account

hub / github.com/AtmaHou/Seq2SeqDataAugmentationForLU / functions

Functions400 in github.com/AtmaHou/Seq2SeqDataAugmentationForLU

↓ 1 callersFunctioncheck_save_model_path
()
OpenNMT/train.py:195
↓ 1 callersMethodcluster_by_intent
(self, domain_name, data_item_set, data_label, split_rate)
source/Cluster/conll_format_clustering.py:235
↓ 1 callersMethodcluster_by_intent_and_slot
(self, domain_name, data_item_set, data_label, split_rate)
source/Cluster/conll_format_clustering.py:261
↓ 1 callersMethodcluster_by_slot
(self, domain_name, data_item_set, data_label, split_rate)
source/Cluster/conll_format_clustering.py:248
↓ 1 callersMethodcluster_by_slot
(self, target_file, split_rate_lst)
source/Cluster/clustering.py:81
↓ 1 callersFunctioncluster_to_pairs
Construct source, target pairs from cluster :param cluster_item: List, dialogue pairs with same user intents :return:
source/Generation/PrepareData.py:69
↓ 1 callersMethodclustering
(self, target_file, split_rate_lst, cluster_mode=None)
source/Cluster/conll_format_clustering.py:195
↓ 1 callersFunctioncollect_and_format_slot_filling_result_from_prf
()
source/AuxiliaryTools/eval_tool.py:48
↓ 1 callersFunctioncollect_features
(train, fields)
OpenNMT/train.py:234
↓ 1 callersFunctionconvert_to_conll
(origin_file, input_file_path, output_file_path)
run_gen_with_label.py:76
↓ 1 callersFunctioncreate_dir
(p_list)
source/AuxiliaryTools/ConfigTool.py:7
↓ 1 callersMethoddetach
Detaches all Variables from the graph that created it, making it a leaf.
OpenNMT/onmt/Models.py:437
↓ 1 callersFunctiondiverse_score
calculate pairing score :param s: target str :param t: candidate str :return: score, edit distance, length penalty
run_onmt_generation.py:71
↓ 1 callersMethoddone
(self)
OpenNMT/onmt/Beam.py:108
↓ 1 callersFunctiondress_param_with_config
(param_config, replace_table)
run_gen_with_label.py:106
↓ 1 callersFunctiondress_param_with_config
(param_config, replace_table)
run_onmt_generation.py:203
↓ 1 callersMethoddump_dict
(self, split_rate_lst)
source/Cluster/conll_format_clustering.py:286
↓ 1 callersMethoddump_dict
(self)
source/Cluster/clustering.py:132
↓ 1 callersMethoddynamic_dict
(self, examples)
OpenNMT/onmt/IO.py:364
↓ 1 callersMethodentity_replace
Replace slot value with slot name in the template. Notice: Element lists, including slot_name, slot_value and context_lst
source/Cluster/conll_format_clustering.py:318
↓ 1 callersMethodentity_replace
(data_item)
source/Cluster/clustering.py:146
↓ 1 callersMethodepoch_step
Called for each epoch to update learning rate.
OpenNMT/onmt/Trainer.py:169
↓ 1 callersFunctionevaluateRandomly
(encoder, decoder, n=10)
source/Generation/seq2seq_translation_tutorial.py:768
↓ 1 callersFunctionexpand_tmp_res_and_get_label_lst
(tmp_res, slot_lst)
source/ReFilling/re_filling.py:100
↓ 1 callersFunctionextract_features
tokens: A list of tokens, where each token consists of a word, optionally followed by u"│"-delimited features. returns: A sequenc
OpenNMT/onmt/IO.py:53
↓ 1 callersFunctionextract_slot_context
retuen a slot list, :param word_lst: :return:
source/ReFilling/re_filling.py:81
↓ 1 callersFunctionfilterPair
(p)
source/Generation/seq2seq_translation_tutorial.py:251
↓ 1 callersFunctionfilterPairs
(pairs)
source/Generation/seq2seq_translation_tutorial.py:257
↓ 1 callersFunctionfilter_shard_state
(state)
OpenNMT/onmt/Loss.py:133
↓ 1 callersFunctionfind_closest_sent
(tgt_s, sent_set)
source/AuxiliaryTools/data_tool.py:43
↓ 1 callersFunctionformat_output
(result_table, output_file='./log/gen_eval_table.log')
run_gen_evaluation.py:86
↓ 1 callersMethodforward
(self, input)
OpenNMT/onmt/modules/StructuredAttention.py:16
↓ 1 callersFunctiongen_evaluation
(task_name_lst, cluster_method_lst, split_rate_lst, pairing_mode_lst, index_choice_lst)
run_gen_evaluation.py:107
↓ 1 callersFunctiongenerate_data
(task_name, pair_mode='diverse_connect', append_index=True, no_clustering=False, filter_rate=0.5)
run_onmt_generation.py:127
↓ 1 callersMethodgetCurrentOrigin
Get the backpointers for the current timestep.
OpenNMT/onmt/Beam.py:51
↓ 1 callersMethodgetCurrentState
Get the outputs for the current timestep.
OpenNMT/onmt/Beam.py:47
↓ 1 callersMethodgetHyp
Walk back to construct the full hypothesis.
OpenNMT/onmt/Beam.py:127
↓ 1 callersFunctionget_1_2_gram_set
(line)
source/Evaluate/gen_eval.py:39
↓ 1 callersFunctionget_domain
(ind)
source/AuxiliaryTools/eval_tool.py:91
↓ 1 callersFunctionget_fields
n_src_features: the number of source features to create Field objects for. n_tgt_features: the number of target features to create Field obje
OpenNMT/onmt/IO.py:150
↓ 1 callersFunctionget_file_tail
(task_name, cluster_method, split_rate, pairing_mod, index_choice)
run_gen_evaluation.py:68
↓ 1 callersFunctionget_model
(ind)
source/AuxiliaryTools/eval_tool.py:99
↓ 1 callersFunctionget_pairs_within_cluster
pair utterance within a cluster :param all_user_temp: a list of utterance of same cluster :param mode: different mechanism for pairing: "
run_onmt_generation.py:87
↓ 1 callersFunctionget_src_words
(src_indices, index2str)
OpenNMT/translate.py:39
↓ 1 callersFunctionget_var_maybe_avg
(namespace, var_name, training, polyak_decay)
OpenNMT/onmt/modules/WeightNorm.py:14
↓ 1 callersFunctionindexesFromSentence
(lang, sentence)
source/Generation/seq2seq_translation_tutorial.py:514
↓ 1 callersFunctionindexes_from_sentence
(word_table, sentence)
source/AuxiliaryTools/nn_tool.py:24
↓ 1 callersMethodinitBeamAccum
(self)
OpenNMT/onmt/Translator.py:40
↓ 1 callersMethodinit_weight
(self)
OpenNMT/onmt/modules/SRU.py:504
↓ 1 callersFunctionjoin_dicts
args: dictionaries with disjoint keys returns: a single dictionary that has the union of these keys
OpenNMT/onmt/IO.py:233
↓ 1 callersMethodload_data
(target_path)
source/Cluster/conll_format_clustering.py:313
↓ 1 callersMethodload_data
(target_path)
source/Cluster/clustering.py:140
↓ 1 callersFunctionload_fields
(train, valid, checkpoint)
OpenNMT/train.py:216
↓ 1 callersFunctionmain
()
run_gen_with_label.py:134
↓ 1 callersFunctionmain
()
run_onmt_generation.py:228
↓ 1 callersFunctionmain
()
OpenNMT/train.py:275
↓ 1 callersFunctionmain
()
OpenNMT/translate.py:46
↓ 1 callersFunctionmain
()
OpenNMT/preprocess.py:55
↓ 1 callersFunctionmain
()
OpenNMT/tools/extract_embeddings.py:28
↓ 1 callersFunctionmake_train_data_iter
This returns user-defined train data iterator for the trainer to iterate over during each train epoch. We implement simple ordered iterat
OpenNMT/train.py:94
↓ 1 callersFunctionmake_valid_data_iter
This returns user-defined validate data iterator for the trainer to iterate over during each validate epoch. We implement simple ordered
OpenNMT/train.py:107
↓ 1 callersFunctionmerge_vocabs
Merge individual vocabularies (assumed to be generated from disjoint documents) into a larger vocabulary. Args: vocabs: `torchte
OpenNMT/onmt/IO.py:92
↓ 1 callersMethodmonolithic_compute_loss
Compute the loss monolithically, not dividing into shards.
OpenNMT/onmt/Loss.py:53
↓ 1 callersMethodno_clustering
(self, domain_name, data_item_set, data_label, split_rate)
source/Cluster/conll_format_clustering.py:273
↓ 1 callersFunctionnormalizeString
(s)
source/Generation/seq2seq_translation_tutorial.py:194
↓ 1 callersFunctionnum_there
(s)
source/AuxiliaryTools/nlp_tool.py:17
↓ 1 callersMethodoutput
(self, epoch, batch, n_batches, start)
OpenNMT/onmt/Trainer.py:47
↓ 1 callersFunctionprepareData
(lang1, lang2, reverse=False)
source/Generation/seq2seq_translation_tutorial.py:269
↓ 1 callersFunctionprepare_data_to_dukehan
(config, task_name='navigate_labeled', split_rate=1, use_topx=10)
source/Evaluate/slot_filling.py:162
↓ 1 callersFunctionre_fill_sentences
Step1: exact match context(temp) in temp_query_dict, if matched, refilling randomly and go to step3 Step2: For each slot name find the most s
source/ReFilling/re_filling.py:118
↓ 1 callersFunctionreadLangs
(lang1, lang2, reverse=False)
source/Generation/seq2seq_translation_tutorial.py:208
↓ 1 callersFunctionrefill_source_template
(task, target_file, slot_value_table, split_rate)
run_thesaurus.py:33
↓ 1 callersFunctionrefill_template
(task, target_file, split_rate, slot_value_table)
run_onmt_generation.py:199
↓ 1 callersFunctionremove_appeared
(test_what_file, in_what_file, source_file_path, result_file)
source/AuxiliaryTools/data_tool.py:100
↓ 1 callersFunctionremove_dup_pair
(all_pairs)
run_onmt_generation.py:57
↓ 1 callersFunctionremove_result_duplication
(results)
source/Evaluate/slot_filling.py:241
↓ 1 callersMethodrepeat_beam_size_times
Repeat beam_size times along batch dimension.
OpenNMT/onmt/Models.py:491
↓ 1 callersFunctionreport_func
This is the user-defined batch-level traing progress report function. Args: epoch(int): current epoch count. batch(int):
OpenNMT/train.py:69
↓ 1 callersMethodreset_parameters
(self)
OpenNMT/onmt/modules/WeightNorm.py:55
↓ 1 callersMethodreset_parameters
(self)
OpenNMT/onmt/modules/WeightNorm.py:114
↓ 1 callersMethodreset_parameters
(self)
OpenNMT/onmt/modules/WeightNorm.py:187
↓ 1 callersFunctionrun_clustering
()
run_clustering.py:25
↓ 1 callersMethodscore
h_t (FloatTensor): batch x tgt_len x dim h_s (FloatTensor): batch x src_len x dim returns scores (FloatTensor): batch x tgt_l
OpenNMT/onmt/modules/GlobalAttention.py:70
↓ 1 callersFunctionseq_linear
(linear, x)
OpenNMT/onmt/modules/ConvMultiStepAttention.py:10
↓ 1 callersMethodset_parameters
(self, params)
OpenNMT/onmt/Optim.py:7
↓ 1 callersMethodsharded_compute_loss
Compute the loss in shards for efficiency.
OpenNMT/onmt/Loss.py:63
↓ 1 callersFunctionshards
Args: state: A dictionary which corresponds to the output of *LossCompute.make_shard_state(). The values for
OpenNMT/onmt/Loss.py:141
↓ 1 callersFunctionshowAttention
(input_sentence, output_words, attentions)
source/Generation/seq2seq_translation_tutorial.py:839
↓ 1 callersFunctionshowPlot
(points)
source/Generation/seq2seq_translation_tutorial.py:704
↓ 1 callersFunctionshow_attention
(input_sentence, output_words, attentions)
source/Generation/Evaluation.py:92
↓ 1 callersFunctionshow_cluster_result
(result_file)
source/AuxiliaryTools/data_tool.py:15
↓ 1 callersMethodsortFinished
(self, minimum=None)
OpenNMT/onmt/Beam.py:111
↓ 1 callersFunctionsplit
()
source/AuxiliaryTools/data_split.py:11
↓ 1 callersFunctiontally_parameters
(model)
OpenNMT/train.py:202
↓ 1 callersFunctiontimeSince
(since, percent)
source/Generation/seq2seq_translation_tutorial.py:635
↓ 1 callersFunctiontime_since
(since, percent)
source/Generation/Training.py:80
↓ 1 callersFunctiontrain
(input_variable, target_variable, encoder, decoder, encoder_optimizer, decoder_optimizer, criterion,
source/Generation/Training.py:16
↓ 1 callersFunctiontrain
(input_variable, target_variable, encoder, decoder, encoder_optimizer, decoder_optimizer, criterion, max_lengt
source/Generation/seq2seq_translation_tutorial.py:564
↓ 1 callersFunctiontrainIters
(encoder, decoder, n_iters, print_every=1000, plot_every=100, learning_rate=0.01)
source/Generation/seq2seq_translation_tutorial.py:655
↓ 1 callersFunctiontrain_model
(model, train_data, valid_data, fields, optim)
OpenNMT/train.py:138
← previousnext →101–200 of 400, ranked by callers