Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VectorFist/RNN-NMT
/ functions
Functions
38 in github.com/VectorFist/RNN-NMT
⨍
Functions
38
◇
Types & classes
2
↓ 4 callers
Method
reinitializer_or_load_model
(self, sess, model_dir, load=True)
NMT/nmt_model.py:67
↓ 3 callers
Method
_build_encoder_cell
(self, hparams, num_layers)
NMT/nmt_model.py:159
↓ 3 callers
Method
decode
(self, sess)
NMT/nmt_model.py:107
↓ 2 callers
Method
_build_rnn_cell
(self, hparams, num_layers)
NMT/nmt_model.py:243
↓ 2 callers
Function
_get_ngrams
Extracts all n-grams upto a given maximum order from an input segment. Args: segment: text segment from which n-grams will be extracted. ma
NMT/bleu.py:28
↓ 2 callers
Method
compute_vocab_size
(self, vocab_file)
NMT/nmt.py:48
↓ 2 callers
Function
get_iterator
(src_dataset, tgt_dataset, src_vocab_table, tgt_vocab_table, batch_size, sos, eos, reshuffle_
NMT/iterator.py:10
↓ 2 callers
Function
run_external_eval
(infer_model, infer_sess, model_dir, hparams)
NMT/model_train.py:70
↓ 2 callers
Function
run_sample_decode
(infer_model, infer_sess, hparams, src_data, tgt_data)
NMT/model_train.py:88
↓ 2 callers
Method
train
(self, sess)
NMT/nmt_model.py:93
↓ 1 callers
Function
_bleu
(ref_file, trans_file)
NMT/utils.py:19
↓ 1 callers
Method
_build_decoder
(self, encoder_outputs, encoder_state, hparams)
NMT/nmt_model.py:162
↓ 1 callers
Method
_build_decoder_cell
(self, hparams, encoder_outputs, encoder_state, source_sequence_length)
NMT/nmt_model.py:213
↓ 1 callers
Method
_build_encoder
(self, hparams)
NMT/nmt_model.py:124
↓ 1 callers
Method
_compute_loss
(self, logits)
NMT/nmt_model.py:268
↓ 1 callers
Method
_count_train_variables
(self, train_variables)
NMT/nmt_model.py:292
↓ 1 callers
Method
_learning_rate_decay
(self, num_train_steps)
NMT/nmt_model.py:280
↓ 1 callers
Method
build_graph
(self, hparams)
NMT/nmt_model.py:113
↓ 1 callers
Method
eval
(self, sess)
NMT/nmt_model.py:99
↓ 1 callers
Function
get_infer_iterator
(src_dataset, src_vocab_table, batch_size, eos, src_max_len=None)
NMT/iterator.py:73
↓ 1 callers
Function
get_translation
(nmt_outputs, sent_id, tgt_eos)
NMT/utils.py:8
↓ 1 callers
Method
infer
(self, sess)
NMT/nmt_model.py:103
↓ 1 callers
Method
init_embedding
(self, embed_size)
NMT/nmt_model.py:82
↓ 1 callers
Function
load_data
(inference_input_file)
NMT/model_infer.py:7
↓ 1 callers
Function
main
()
NMT/nmt.py:56
Method
__init__
(self, hparams, mode, iterator, source_vocab_table, target_vocab_table, reverse_target_vocab_
NMT/nmt_model.py:7
Method
__init__
(self)
NMT/nmt.py:8
Method
_single_cell
(unit_type, num_units, forget_bias, dropout, mode, device_id)
NMT/nmt_model.py:244
Function
compute_bleu
Computes BLEU score of translated segments against one or more references. Args: reference_corpus: list of lists of references for each transla
NMT/bleu.py:48
Function
create_eval_model
(hparams)
NMT/create_nmt_model.py:39
Function
create_infer_model
(hparams)
NMT/create_nmt_model.py:59
Function
create_train_model
(hparams)
NMT/create_nmt_model.py:20
Function
decode_and_evaluate_bleu
(model, sess, trans_file, ref_file, beam_width, tgt_eos, num_translations_per_input=1,
NMT/utils.py:45
Function
key_func
(unused_1, unused_2, unused_3, src_len, tgt_len)
NMT/iterator.py:45
Function
reduce_func
(unused_key, windowed_data)
NMT/iterator.py:53
Function
train
(hparams)
NMT/model_train.py:14
Function
translate
(hparams, string)
NMT/model_infer.py:13
Function
translate_file
(hparams, src_infer_file, trans_file)
NMT/model_infer.py:32