Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FrancisGregoire/parSentExtract
/ functions
Functions
40 in github.com/FrancisGregoire/parSentExtract
⨍
Functions
40
◇
Types & classes
5
↓ 3 callers
Method
next_batch
(self, batch_size)
utils.py:108
↓ 2 callers
Method
_generate_epoch_data
(self)
utils.py:45
↓ 2 callers
Method
max_pooling
Use max pooling to obtain final sentence representation.
model.py:317
↓ 2 callers
Method
mean_pooling
Use mean pooling to obtain final sentence representation.
model.py:311
↓ 2 callers
Function
read_pretrained_embeddings
Read pretrained word embeddings.
utils.py:240
↓ 2 callers
Function
sentence_to_token_ids
Convert a string to a list of integers representing token-ids.
utils.py:193
↓ 1 callers
Method
_generate_epoch_data
(self)
utils.py:101
↓ 1 callers
Method
_pad_batch
(self, data)
utils.py:35
↓ 1 callers
Method
_pad_batch
(self, data)
utils.py:91
↓ 1 callers
Method
_pad_batch
(self, data)
utils.py:135
↓ 1 callers
Method
build_graph
(self)
model.py:54
↓ 1 callers
Function
eval_epoch
Evaluate model for one epoch.
train.py:111
↓ 1 callers
Function
evaluate
Evalute BiRNN at decision threshold value maximizing the area under the precison-recall curve.
eval.py:76
↓ 1 callers
Function
extract_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 callers
Function
get_pretrained_embeddings
Wrapper to read source and target pretrained word embeddings.
utils.py:257
↓ 1 callers
Function
inference
Get the predicted class {0, 1} of given sentence pairs.
eval.py:51
↓ 1 callers
Function
inference
Get the predicted class {0, 1} of given sentence pairs.
extract.py:75
↓ 1 callers
Function
l2_normalize
Scale input vectors individually to unit norm.
utils.py:232
↓ 1 callers
Method
next_batch
(self, batch_size)
utils.py:62
↓ 1 callers
Function
read_articles
Read the articles in source and target languages.
extract.py:66
↓ 1 callers
Function
reset_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
Function
create_vocabulary
Create vocabulary file from data file.
utils.py:163
Function
f1_score
Calculate the F1 score.
utils.py:272
Function
initialize_vocabulary
Initialize vocabulary from file.
utils.py:182
Function
main
(_)
eval.py:105
Function
main
(_)
train.py:144
Function
main
(_)
extract.py:133
Method
next_batch
(self, batch_size)
utils.py:145
Function
read_data
Read parallel data and convert to token ids.
utils.py:201
Function
read_data_with_ref
Read sentences and parallel sentence references.
utils.py:213
Function
restore_model
Restore full meta graph of saved TensorFlow model.
utils.py:287
Method
restore_variables
Restore previously saved trainable variable weights from the last checkpoint found in checkpoint_dir.
model.py:321
Function
sequence_length
Returns a np array of the sequence lengths.
utils.py:227
Function
top_k
Get indices of the top k closest target vectors with respect to the source vector.
utils.py:277
Method
update_config
(self, config)
model.py:51