MCPcopy Create free account

hub / github.com/dhwajraj/deep-siamese-text-similarity / functions

Functions23 in github.com/dhwajraj/deep-siamese-text-similarity

↓ 4 callersMethodtransform
Transform documents to word-id matrix. Convert words to ids with vocabulary fitted with fit or the one provided in the constructor.
preprocess.py:37
↓ 3 callersMethodbatch_iter
Generates a batch iterator for a dataset.
input_helpers.py:125
↓ 2 callersMethodBiRNN
(self, x, dropout, scope, embedding_size, sequence_length, hidden_units)
siamese_network.py:10
↓ 2 callersMethodstackedRNN
(self, x, dropout, scope, embedding_size, sequence_length, hidden_units)
siamese_network_semantic.py:10
↓ 1 callersMethodcontrastive_loss
(self, y,d,batch_size)
siamese_network_semantic.py:30
↓ 1 callersMethodcontrastive_loss
(self, y,d,batch_size)
siamese_network.py:39
↓ 1 callersMethoddeletePreEmb
(self)
input_helpers.py:59
↓ 1 callersFunctiondev_step
A single training step
train.py:205
↓ 1 callersMethoddumpValidation
(self,x1_text,x2_text,y,shuffled_index,dev_idx,i)
input_helpers.py:146
↓ 1 callersMethodgetDataSets
(self, training_paths, max_document_length, percent_dev, batch_size, is_char_based)
input_helpers.py:167
↓ 1 callersMethodgetTestDataSet
(self, data_path, vocab_path, max_document_length)
input_helpers.py:205
↓ 1 callersMethodgetTsvData
(self, filepath)
input_helpers.py:63
↓ 1 callersMethodgetTsvDataCharBased
(self, filepath)
input_helpers.py:82
↓ 1 callersMethodgetTsvTestData
(self, filepath)
input_helpers.py:110
↓ 1 callersMethodloadW2V
(self,emb_path, type="bin")
input_helpers.py:35
↓ 1 callersFunctiontrain_step
A single training step
train.py:181
Method__init__
( self, sequence_length, vocab_size, embedding_size, hidden_units, l2_reg_lambda, batch_size, trainabl
siamese_network_semantic.py:36
Method__init__
( self, sequence_length, vocab_size, embedding_size, hidden_units, l2_reg_lambda, batch_size)
siamese_network.py:45
Method__init__
(self, max_document_length, min_frequency=0, vocabulary=None,
preprocess.py:24
MethodcleanText
(self, s)
input_helpers.py:20
MethodgetVocab
(self,vocab_path, max_document_length,filter_h_pad)
input_helpers.py:28
Functiontokenizer_char
(iterator)
preprocess.py:15
Functiontokenizer_word
(iterator)
preprocess.py:19