Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Yishun99/KB-QA
/ functions
Functions
14 in github.com/Yishun99/KB-QA
⨍
Functions
14
◇
Types & classes
1
↓ 5 callers
Method
biLSTMCell
(self, x, hidden_size)
biLSTM.py:50
↓ 5 callers
Method
max_pooling
(lstm_out)
biLSTM.py:73
↓ 4 callers
Function
tokenizer
(filename, stop_words)
data_util.py:7
↓ 3 callers
Method
get_cosine_similarity
(q, a)
biLSTM.py:65
↓ 3 callers
Function
words_list2index
word list to indexes in embeddings.
data_util.py:36
↓ 2 callers
Function
evaluate
()
train.py:137
↓ 1 callers
Function
generate_dic_and_corpus
(knowledge_file, file_name, stop_words)
similarity.py:9
↓ 1 callers
Method
get_loss
(trueCosSim, falseCosSim, margin)
biLSTM.py:82
↓ 1 callers
Function
topk_sim_ix
(file_name, stop_words, k)
similarity.py:20
Method
__init__
(self, batch_size, max_sentence_len, embeddings, embedding_size, rnn_size, margin)
biLSTM.py:5
Function
load_data
(knowledge_file, filename, word2idx, stop_words, sim_ixs, max_len)
data_util.py:58
Function
load_embedding
(filename)
data_util.py:23
Function
testing_batch_iter
(questions, answers, question_num, batch_size)
data_util.py:109
Function
training_batch_iter
:return q + -
data_util.py:89