MCPcopy Create free account

hub / github.com/FrancisGregoire/parSentExtract / functions

Functions40 in github.com/FrancisGregoire/parSentExtract

↓ 3 callersMethodnext_batch
(self, batch_size)
utils.py:108
↓ 2 callersMethod_generate_epoch_data
(self)
utils.py:45
↓ 2 callersMethodmax_pooling
Use max pooling to obtain final sentence representation.
model.py:317
↓ 2 callersMethodmean_pooling
Use mean pooling to obtain final sentence representation.
model.py:311
↓ 2 callersFunctionread_pretrained_embeddings
Read pretrained word embeddings.
utils.py:240
↓ 2 callersFunctionsentence_to_token_ids
Convert a string to a list of integers representing token-ids.
utils.py:193
↓ 1 callersMethod_generate_epoch_data
(self)
utils.py:101
↓ 1 callersMethod_pad_batch
(self, data)
utils.py:35
↓ 1 callersMethod_pad_batch
(self, data)
utils.py:91
↓ 1 callersMethod_pad_batch
(self, data)
utils.py:135
↓ 1 callersMethodbuild_graph
(self)
model.py:54
↓ 1 callersFunctioneval_epoch
Evaluate model for one epoch.
train.py:111
↓ 1 callersFunctionevaluate
Evalute BiRNN at decision threshold value maximizing the area under the precison-recall curve.
eval.py:76
↓ 1 callersFunctionextract_pairs
Extract sentence pairs from a pair of articles in source and target languages. Returns a list of (source sentence, target sentence, probability
extract.py:100
↓ 1 callersFunctionget_pretrained_embeddings
Wrapper to read source and target pretrained word embeddings.
utils.py:257
↓ 1 callersFunctioninference
Get the predicted class {0, 1} of given sentence pairs.
eval.py:51
↓ 1 callersFunctioninference
Get the predicted class {0, 1} of given sentence pairs.
extract.py:75
↓ 1 callersFunctionl2_normalize
Scale input vectors individually to unit norm.
utils.py:232
↓ 1 callersMethodnext_batch
(self, batch_size)
utils.py:62
↓ 1 callersFunctionread_articles
Read the articles in source and target languages.
extract.py:66
↓ 1 callersFunctionreset_graph
Close unclosed sessions and reset graph.
utils.py:299
Method__init__
(self, data, n_negative=1)
utils.py:25
Method__init__
(self, data)
utils.py:83
Method__init__
(self, data)
utils.py:128
Method__init__
(self, source_vocab_size, target_vocab_size, embedding_size
model.py:12
Method__init__
(self, config)
model.py:48
Functioncreate_vocabulary
Create vocabulary file from data file.
utils.py:163
Functionf1_score
Calculate the F1 score.
utils.py:272
Functioninitialize_vocabulary
Initialize vocabulary from file.
utils.py:182
Functionmain
(_)
eval.py:105
Functionmain
(_)
train.py:144
Functionmain
(_)
extract.py:133
Methodnext_batch
(self, batch_size)
utils.py:145
Functionread_data
Read parallel data and convert to token ids.
utils.py:201
Functionread_data_with_ref
Read sentences and parallel sentence references.
utils.py:213
Functionrestore_model
Restore full meta graph of saved TensorFlow model.
utils.py:287
Methodrestore_variables
Restore previously saved trainable variable weights from the last checkpoint found in checkpoint_dir.
model.py:321
Functionsequence_length
Returns a np array of the sequence lengths.
utils.py:227
Functiontop_k
Get indices of the top k closest target vectors with respect to the source vector.
utils.py:277
Methodupdate_config
(self, config)
model.py:51