MCPcopy Create free account

hub / github.com/AtmaHou/Seq2SeqDataAugmentationForLU / functions

Functions400 in github.com/AtmaHou/Seq2SeqDataAugmentationForLU

↓ 1 callersMethodtranslate
(self, batch, data)
OpenNMT/onmt/Translator.py:207
↓ 1 callersMethodtranslateBatch
(self, batch, dataset)
OpenNMT/onmt/Translator.py:94
↓ 1 callersFunctiontreebank_tokenizer
(sentence)
source/AuxiliaryTools/nlp_tool.py:29
↓ 1 callersMethodunbottle
(self, v, batch_size)
OpenNMT/onmt/Loss.py:97
↓ 1 callersFunctionunicodeToAscii
(s)
source/Generation/seq2seq_translation_tutorial.py:185
↓ 1 callersMethodunpack_and_cook_raw_data
(self, raw_data, domain_name)
source/Cluster/conll_format_clustering.py:139
↓ 1 callersMethodunpack_and_cook_raw_data
(self, raw_data)
source/Cluster/clustering.py:43
↓ 1 callersMethodupdateGlobalState
Keeps the coverage vector as sum of attens
OpenNMT/onmt/Beam.py:155
↓ 1 callersMethodupdateLearningRate
Decay learning rate if val perf does not improve or we hit the start_decay_at limit.
OpenNMT/onmt/Optim.py:56
↓ 1 callersMethodupdate_dict
(self, domain_name, data_item, data_label, split_rate)
source/Cluster/conll_format_clustering.py:70
↓ 1 callersMethodupdate_dict
(self, task, data_item)
source/Cluster/clustering.py:108
↓ 1 callersMethodupdate_state
(self, rnnstate, input_feed, coverage)
OpenNMT/onmt/Models.py:483
↓ 1 callersMethodupdate_state
Called for every decoder forward pass.
OpenNMT/onmt/modules/Transformer.py:301
↓ 1 callersMethodupdate_state
Called for every decoder forward pass.
OpenNMT/onmt/modules/Conv2Conv.py:226
↓ 1 callersFunctionutterance_filter
remove bad utterance and duplicate :param clustered_items: List, dialogue pairs with same user intents :return:
source/Generation/PrepareData.py:46
↓ 1 callersFunctionutterance_tokenize
tokenize the utterance with nlp_tool.py :param clustered_items: List, dialogue pairs with same user intents :return:
source/Generation/PrepareData.py:34
↓ 1 callersMethodvalidate
Called for each epoch to validate.
OpenNMT/onmt/Trainer.py:142
↓ 1 callersFunctionvariablesFromPair
(pair)
source/Generation/seq2seq_translation_tutorial.py:528
↓ 1 callersFunctionvariables_from_pair
(pair, input_word_table, output_word_table)
source/AuxiliaryTools/nn_tool.py:35
FunctionContextGateFactory
Returns the correct ContextGate class
OpenNMT/onmt/modules/Gate.py:12
Method__call__
(self, parser, namespace, values, option_string=None)
OpenNMT/opts.py:330
Method__call__
(self, parser, namespace, values, flag_name)
OpenNMT/opts.py:341
Method__call__
(self, parser, namespace, values, option_string=None)
OpenNMT/onmt/modules/SRU.py:24
Method__call__
(self, scores, align, target)
OpenNMT/onmt/modules/CopyGenerator.py:58
Function__getstate__
(self)
OpenNMT/onmt/IO.py:17
Method__getstate__
(self)
OpenNMT/onmt/IO.py:380
Method__init__
(self, option_strings, dest=argparse.SUPPRESS, default=argparse.SUPPRESS, **
OpenNMT/opts.py:320
Method__init__
(self, size, n_best=1, cuda=False, vocab=None, global_scorer=None)
OpenNMT/onmt/Beam.py:13
Method__init__
(self, alpha, beta)
OpenNMT/onmt/Beam.py:143
Method__init__
(self, loss=0, n_words=0, n_correct=0)
OpenNMT/onmt/Trainer.py:26
Method__init__
Args: model: the seq2seq model. train_iter: the train data iterator. valid_iter: the validate data iterat
OpenNMT/onmt/Trainer.py:68
Method__init__
(self, opt, dummy_opt={})
OpenNMT/onmt/Translator.py:16
Method__init__
Create a translation dataset given paths and fields. src_path: location of source-side data tgt_path: location of target-sid
OpenNMT/onmt/IO.py:280
Method__init__
(self, method, lr, max_grad_norm, lr_decay=1, start_decay_at=None, beta1=0.9
OpenNMT/onmt/Optim.py:21
Method__init__
(self, generator, tgt_vocab)
OpenNMT/onmt/Loss.py:22
Method__init__
(self, num_layers, embeddings)
OpenNMT/onmt/Models.py:38
Method__init__
(self, rnn_type, bidirectional, num_layers, hidden_size, dropout, embeddings)
OpenNMT/onmt/Models.py:55
Method__init__
(self, rnn_type, bidirectional_encoder, num_layers, hidden_size, attn_type, coverage_attn, co
OpenNMT/onmt/Models.py:108
Method__init__
Args: context (FloatTensor): output from the encoder of size len x batch x rnn_size.
OpenNMT/onmt/Models.py:456
Method__init__
(self, num_layers, input_size, rnn_size, dropout)
OpenNMT/onmt/modules/StackedRNN.py:10
Method__init__
Args: head_count(int): number of parallel heads. model_dim(int): the dimension of keys/values/queries in this
OpenNMT/onmt/modules/MultiHeadedAttn.py:15
Method__init__
Args: size(int): the size of input for the first-layer of the FFN. hidden_size(int): the hidden layer size of the sec
OpenNMT/onmt/modules/Transformer.py:21
Method__init__
Args: size(int): the dimension of keys/values/queries in MultiHeadedAttention, also the input size of
OpenNMT/onmt/modules/Transformer.py:43
Method__init__
Args: size(int): the dimension of keys/values/queries in MultiHeadedAttention, also the input size of
OpenNMT/onmt/modules/Transformer.py:111
Method__init__
(self, num_layers, hidden_size, attn_type, copy_attn, dropout, embeddings)
OpenNMT/onmt/modules/Transformer.py:182
Method__init__
Args: src (FloatTensor): a sequence of source words tensors with optional feature tensors, of size (len x bat
OpenNMT/onmt/modules/Transformer.py:285
Method__init__
(self, dropout, dim, max_len=5000)
OpenNMT/onmt/modules/Embeddings.py:11
Method__init__
(self, merge=None, *args)
OpenNMT/onmt/modules/UtilClass.py:72
Method__init__
(self, option_strings, dest, **kwargs)
OpenNMT/onmt/modules/SRU.py:21
Method__init__
(self, activation_type, d_out, bidirectional=False)
OpenNMT/onmt/modules/SRU.py:377
Method__init__
(self, n_in, n_out, dropout=0, rnn_dropout=0, bidirectional=False, use_tanh=1, use_relu=0)
OpenNMT/onmt/modules/SRU.py:482
Method__init__
(self, embeddings_size, decoder_size, attention_size, output_size)
OpenNMT/onmt/modules/Gate.py:50
Method__init__
(self, embeddings_size, decoder_size, attention_size, output_size)
OpenNMT/onmt/modules/Gate.py:66
Method__init__
(self, embeddings_size, decoder_size, attention_size, output_size)
OpenNMT/onmt/modules/Gate.py:81
Method__init__
(self, vocab_size, force_copy, pad, eps=1e-20)
OpenNMT/onmt/modules/CopyGenerator.py:52
Method__init__
(self, generator, tgt_vocab, dataset, force_copy, eps=1e-20)
OpenNMT/onmt/modules/CopyGenerator.py:83
Method__init__
(self, dim, coverage=False, attn_type="dot")
OpenNMT/onmt/modules/GlobalAttention.py:42
Method__init__
(self, input_size)
OpenNMT/onmt/modules/ConvMultiStepAttention.py:19
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, dilation=1, groups=1, ini
OpenNMT/onmt/modules/WeightNorm.py:95
Method__init__
(self, in_channels, out_channels, kernel_size, stride=1, padding=0, output_padding=0, groups=
OpenNMT/onmt/modules/WeightNorm.py:166
Method__init__
(self, eps=1e-5)
OpenNMT/onmt/modules/StructuredAttention.py:12
Method__init__
Args: num_layers (int): number of encoder layers. bidirectional (bool): bidirectional encoder. rnn_size (
OpenNMT/onmt/modules/ImageEncoder.py:12
Method__init__
(self, num_layers, input_size, cnn_kernel_width=3, dropout=0.2)
OpenNMT/onmt/modules/Conv2Conv.py:43
Method__init__
(self, num_layers, hidden_size, cnn_kernel_width, dropout, embeddings)
OpenNMT/onmt/modules/Conv2Conv.py:64
Method__init__
(self, num_layers, hidden_size, attn_type, copy_attn, cnn_kernel_width, dropout, embeddings)
OpenNMT/onmt/modules/Conv2Conv.py:97
Method__init__
(self, context, enc_hidden)
OpenNMT/onmt/modules/Conv2Conv.py:215
Method__init__
(self, *args, **kwargs)
OpenNMT/test/test_models.py:24
Method__init__
(self, *args, **kwargs)
OpenNMT/test/test_preprocess.py:24
Method__init__
(self, name)
source/Generation/PrepareData.py:13
Method__init__
(self, hidden_size, output_size, use_cuda, n_layers=1)
source/Generation/Seq2SeqModel.py:34
Method__init__
(self, hidden_size, output_size, max_length, use_cuda, n_layers=1, dropout_p=0.1)
source/Generation/Seq2SeqModel.py:62
Method__init__
(self, input_size, hidden_size, n_layers=1)
source/Generation/seq2seq_translation_tutorial.py:339
Method__init__
(self, hidden_size, output_size, n_layers=1)
source/Generation/seq2seq_translation_tutorial.py:390
Method__init__
(self, hidden_size, output_size, n_layers=1, dropout_p=0.1, max_length=MAX_LENGTH)
source/Generation/seq2seq_translation_tutorial.py:454
Method__init__
(self, input_dir, result_dir, all_domain, cluster_mode='all', special_mark='')
source/Cluster/conll_format_clustering.py:22
Method__init__
(self, input_dir, result_dir)
source/Cluster/clustering.py:15
Method__init__
(self, input_dir, output_dir)
source/Cluster/atis_clustering.py:8
Method__reduce_ex__
This is a hack. Something is broken with torch pickle.
OpenNMT/onmt/IO.py:386
Function__setstate__
(self, state)
OpenNMT/onmt/IO.py:21
Method__setstate__
(self, d)
OpenNMT/onmt/IO.py:383
Method_all
(self)
OpenNMT/onmt/Models.py:480
Method_all
Contains attributes that need to be updated in self.beam_update().
OpenNMT/onmt/modules/Transformer.py:295
Method_all
Contains attributes that need to be updated in self.beam_update().
OpenNMT/onmt/modules/Conv2Conv.py:220
Method_build_rnn
(self, rnn_type, input_size, hidden_size, num_layers, dropout)
OpenNMT/onmt/Models.py:368
Method_format_action
(self, action)
OpenNMT/opts.py:305
Method_format_usage
(self, usage, actions, groups, prefix)
OpenNMT/opts.py:293
Method_input_size
Private helper returning the number of expected features.
OpenNMT/onmt/Models.py:296
Method_input_size
Using input feed by concatenating input with attention vectors.
OpenNMT/onmt/Models.py:380
Method_run_forward_pass
See StdRNNDecoder._run_forward_pass() for description of arguments and return values.
OpenNMT/onmt/Models.py:307
Functionadd_md_help_argument
(parser)
OpenNMT/opts.py:272
MethodapplyMask
(self, mask)
OpenNMT/onmt/modules/GlobalAttention.py:67
MethodapplyMask
(self, mask)
OpenNMT/onmt/modules/ConvMultiStepAttention.py:24
Methodbottle
(m)
OpenNMT/onmt/Translator.py:133
Functionbuild_vocab
train: an ONMTDataset
OpenNMT/onmt/IO.py:209
Functionclustering_and_dump_dict
(data_dir, config=None, cluster_mode='all', train_set_split_rate_lst=None, special_mark='labeled')
source/Cluster/conll_format_clustering.py:362
Functioncollect_and_format_slot_filling_result_from_log
()
source/AuxiliaryTools/eval_tool.py:18
Functioncollect_feature_dicts
(fields, side)
OpenNMT/onmt/IO.py:139
Methodcompute_loss
See base class for args description.
OpenNMT/onmt/Loss.py:119
Methodcompute_loss
Compute the loss. The args must match self.make_shard_state(). Args: batch: the current batch. output: the pr
OpenNMT/onmt/modules/CopyGenerator.py:105
Functionconvert_to_word_lst
(sentence, lower=True)
source/AuxiliaryTools/nlp_tool.py:44
← previousnext →201–300 of 400, ranked by callers