MCPcopy Create free account

hub / github.com/AtmaHou/Seq2SeqDataAugmentationForLU / functions

Functions400 in github.com/AtmaHou/Seq2SeqDataAugmentationForLU

Methodcreate_batches
(self)
OpenNMT/onmt/IO.py:253
Functiondata_stat
(all_data)
source/Generation/PrepareData.py:65
Methoddataset_build
(self, opt)
OpenNMT/test/test_preprocess.py:28
Functiondebug_all_data_print
(d)
source/Cluster/conll_format_clustering.py:15
Functiondress_param_with_config
(param_config, replace_table)
run_slot_filling_evaluation.py:39
Methodemb_luts
(self)
OpenNMT/onmt/modules/Embeddings.py:117
Methodembeddings_forward
Tests if the embeddings works as expected args: opt: set of options sourceL: Length of generated input sente
OpenNMT/test/test_models.py:42
Methodencoder_forward
Tests if the encoder works as expected args: opt: set of options sourceL: Length of generated input sentence
OpenNMT/test/test_models.py:66
Functionevaluate_and_show_attention
(input_sentence, encoder, attn_decoder, input_word_table, output_word_table)
source/Generation/Evaluation.py:111
Functionevaluate_randomly
(all_pairs, encoder, decoder, input_word_table, output_word_table, max_length, use_cuda, n=10)
source/Generation/Evaluation.py:71
Methodfilter_pred
(example)
OpenNMT/onmt/IO.py:354
Methodformat_help
(self)
OpenNMT/opts.py:298
Methodforward
Args: input (LongTensor): len x batch x nfeat. lengths (LongTensor): batch hidden: Initial hidden state.
OpenNMT/onmt/Models.py:22
Methodforward
See EncoderBase.forward() for description of args and returns.
OpenNMT/onmt/Models.py:43
Methodforward
See EncoderBase.forward() for description of args and returns.
OpenNMT/onmt/Models.py:83
Methodforward
Forward through the decoder. Args: input (LongTensor): a sequence of input tokens tensors
OpenNMT/onmt/Models.py:148
Methodforward
(self, input, hidden)
OpenNMT/onmt/modules/StackedRNN.py:20
Methodforward
(self, input, hidden)
OpenNMT/onmt/modules/StackedRNN.py:49
Methodforward
(self, key, value, query, mask=None)
OpenNMT/onmt/modules/MultiHeadedAttn.py:44
Methodforward
(self, x)
OpenNMT/onmt/modules/Transformer.py:36
Methodforward
(self, input, mask)
OpenNMT/onmt/modules/Transformer.py:62
Methodforward
See EncoderBase.forward() for description of args and returns.
OpenNMT/onmt/modules/Transformer.py:82
Methodforward
(self, input, context, src_pad_mask, tgt_pad_mask)
OpenNMT/onmt/modules/Transformer.py:136
Methodforward
Forward through the TransformerDecoder. Args: input (LongTensor): a sequence of input tokens tensors
OpenNMT/onmt/modules/Transformer.py:204
Methodforward
(self, emb)
OpenNMT/onmt/modules/Embeddings.py:22
Methodforward
Return the embeddings for words, and features if there are any. Args: input (LongTensor): len x batch x nfeat Ret
OpenNMT/onmt/modules/Embeddings.py:127
Methodforward
(self, input)
OpenNMT/onmt/modules/UtilClass.py:15
Methodforward
(self, z)
OpenNMT/onmt/modules/UtilClass.py:34
Methodforward
(self, input)
OpenNMT/onmt/modules/UtilClass.py:77
Methodforward
(self, u, x, bias, init=None, mask_h=None)
OpenNMT/onmt/modules/SRU.py:383
Methodforward
(self, input, c0=None)
OpenNMT/onmt/modules/SRU.py:516
Methodforward
(self, input, c0=None, return_hidden=True)
OpenNMT/onmt/modules/SRU.py:587
Methodforward
(self, prev_emb, dec_state, attn_state)
OpenNMT/onmt/modules/Gate.py:38
Methodforward
(self, prev_emb, dec_state, attn_state)
OpenNMT/onmt/modules/Gate.py:57
Methodforward
(self, prev_emb, dec_state, attn_state)
OpenNMT/onmt/modules/Gate.py:73
Methodforward
(self, prev_emb, dec_state, attn_state)
OpenNMT/onmt/modules/Gate.py:88
Methodforward
Computes p(w) = p(z=1) p_{copy}(w|z=0) + p(z=0) * p_{softmax}(w|z=0)
OpenNMT/onmt/modules/CopyGenerator.py:22
Methodforward
input (FloatTensor): batch x tgt_len x dim: decoder's rnn's output. context (FloatTensor): batch x src_len x dim: src hidden states
OpenNMT/onmt/modules/GlobalAttention.py:108
Methodforward
It's like Luong Attetion. Conv attention takes a key matrix, a value matrix and a query vector. Attention weight is calculate
OpenNMT/onmt/modules/ConvMultiStepAttention.py:27
Methodforward
(self, x, init=False)
OpenNMT/onmt/modules/WeightNorm.py:58
Methodforward
(self, x, init=False)
OpenNMT/onmt/modules/WeightNorm.py:117
Methodforward
(self, x, init=False)
OpenNMT/onmt/modules/WeightNorm.py:190
Methodforward
(self, input, lengths=None)
OpenNMT/onmt/modules/ImageEncoder.py:53
Methodforward
(self, x_var, hidden=None)
OpenNMT/onmt/modules/Conv2Conv.py:34
Methodforward
(self, x, hidden=None)
OpenNMT/onmt/modules/Conv2Conv.py:53
Methodforward
See EncoderBase.forward() for description of args and returns.
OpenNMT/onmt/modules/Conv2Conv.py:74
Methodforward
Forward through the CNNDecoder. Args: input (LongTensor): a sequence of input tokens tensors
OpenNMT/onmt/modules/Conv2Conv.py:131
Methodforward
(self, input, hidden)
source/Generation/Seq2SeqModel.py:18
Methodforward
(self, input, hidden)
source/Generation/Seq2SeqModel.py:45
Methodforward
(self, input, hidden, encoder_output, encoder_outputs)
source/Generation/Seq2SeqModel.py:78
Methodforward
(self, input, hidden)
source/Generation/seq2seq_translation_tutorial.py:347
Methodforward
(self, input, hidden)
source/Generation/seq2seq_translation_tutorial.py:400
Methodforward
(self, input, hidden, encoder_output, encoder_outputs)
source/Generation/seq2seq_translation_tutorial.py:469
Functiongen_evaluation_thread
(task_queue, done_queue)
run_gen_evaluation.py:73
Functionget_average_from_all_result
()
source/AuxiliaryTools/eval_tool.py:108
MethodinitHidden
(self)
source/Generation/Seq2SeqModel.py:53
MethodinitHidden
(self)
source/Generation/Seq2SeqModel.py:96
MethodinitHidden
(self)
source/Generation/seq2seq_translation_tutorial.py:408
MethodinitHidden
(self)
source/Generation/seq2seq_translation_tutorial.py:488
Methodinit_decoder_state
(self, src, context, enc_hidden)
OpenNMT/onmt/modules/Transformer.py:280
Methodinit_decoder_state
(self, src, context, enc_hidden)
OpenNMT/onmt/modules/Conv2Conv.py:210
Functionload_fields
(vocab)
OpenNMT/onmt/IO.py:30
Functionload_image_libs
Conditional import of torch image libs.
OpenNMT/onmt/IO.py:409
Methodload_pretrained_vectors
(self, opt)
OpenNMT/onmt/modules/ImageEncoder.py:49
Functionmake_base_model
Args: model_opt: the option loaded from checkpoint. fields: `Field` objects for the model. gpu(bool): whether to use gpu.
OpenNMT/onmt/ModelConstructor.py:109
Functionmake_features
Args: batch (Variable): a batch of source or target data. side (str): for source or for target. Returns: A sequence o
OpenNMT/onmt/IO.py:109
Methodmake_shard_state
See base class for args description.
OpenNMT/onmt/Loss.py:112
Methodmake_shard_state
See base class for args description.
OpenNMT/onmt/modules/CopyGenerator.py:92
Functionmake_src
(data, _)
OpenNMT/onmt/IO.py:178
Functionmake_tgt
(data, _)
OpenNMT/onmt/IO.py:191
Functionmodel_opts
These options are passed to the construction of the model. Be careful with these as they will be used during translation.
OpenNMT/opts.py:5
Methodntmmodel_forward
Creates a ntmmodel with a custom opt function. Forwards a testbatch anc checks output size. Args: opt: Namespace
OpenNMT/test/test_models.py:97
Functionold_re_fill_sentences
Step1: exact match context(temp) in temp_query_dict, if matched, refilling randomly and go to step3 Step2: Find the most similar context(temp
source/ReFilling/re_filling.py:27
Functionprepare_data
This prepare the data with following steps Step1: Tokenizing Step2: Filter the meaningless data Step3: Remove duplicate Step4: Bu
source/Generation/PrepareData.py:83
Functionpreprocess_opts
(parser)
OpenNMT/opts.py:101
Functionre_filling_thread
(task_queue, done_queue)
source/ReFilling/re_filling.py:212
Methodrepeat_beam_size_times
Repeat beam_size times along batch dimension.
OpenNMT/onmt/modules/Transformer.py:305
Methodrepeat_beam_size_times
Repeat beam_size times along batch dimension.
OpenNMT/onmt/modules/Conv2Conv.py:230
Functionrun_slot_filling
(task_name, param)
run_slot_filling_evaluation.py:51
Methodrvar
(a)
OpenNMT/onmt/Translator.py:116
Functionsave_vocab
(fields)
OpenNMT/onmt/IO.py:130
Methodset_bias
(self, bias_val=0)
OpenNMT/onmt/modules/SRU.py:509
Methodset_bias
(self, bias_val=0)
OpenNMT/onmt/modules/SRU.py:583
Methodshape_projection
(x)
OpenNMT/onmt/modules/MultiHeadedAttn.py:62
Functionshow_plot
(points)
source/AuxiliaryTools/nn_tool.py:15
Functionslot_clustering_and_dump_dict
(config=None, train_set_split_rate_lst=None)
source/Cluster/clustering.py:162
Methodsort_key
Sort in reverse size order
OpenNMT/onmt/IO.py:276
Methodstart_section
(self, heading)
OpenNMT/opts.py:302
Functiontest_load
()
OpenNMT/test/test_simple.py:4
Methodtest_merge_vocab
(self)
OpenNMT/test/test_preprocess.py:47
Functiontest_method
(self)
OpenNMT/test/test_models.py:140
Functiontest_method
(self)
OpenNMT/test/test_preprocess.py:68
Functiontrain_iters
(encoder, decoder, n_iters, pairs, input_word_table, output_word_table, max_length, use_cuda,
source/Generation/Training.py:88
Functiontrain_opts
(parser)
OpenNMT/opts.py:133
Functiontranslate_opts
(parser)
OpenNMT/opts.py:227
Functiontreebank_detokenizer
(tokens)
source/AuxiliaryTools/nlp_tool.py:39
Methodunbottle
(m)
OpenNMT/onmt/Translator.py:136
Methodunpack_and_cook_raw_data
(self, raw_data)
source/Cluster/atis_clustering.py:11
Methodunshape_projection
(x, q)
OpenNMT/onmt/modules/MultiHeadedAttn.py:68
Methodword_lut
(self)
OpenNMT/onmt/modules/Embeddings.py:113
← previous301–400 of 400, ranked by callers