Skip to content

Commit

Permalink
16-april: branch adding _deeplearn_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
GauravBh1010tt committed Apr 16, 2018
1 parent b5454ea commit d88226c
Show file tree
Hide file tree
Showing 165 changed files with 49 additions and 100,845 deletions.
8 changes: 7 additions & 1 deletion Attention_Based_CNN (ABCNN)/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
created by :: GauravBh1010tt
"""

import sys
sys.path.append("..\_deeplearn_utils")

import model_abcnn as model
import wiki_utils as wk
from dl_text.metrics import eval_metric
from dl_text import dl

glove_fname = 'D:/workspace/NLP/data/Glove/glove.6B.50d.txt'

glove_fname = 'K:/workspace/neural network/Trec_QA-master/glove.6B.50d.txt'

################### DEFINING MODEL AND PREDICTION FILE ###################

Expand Down Expand Up @@ -41,6 +45,8 @@
X_train_l,X_test_l,X_dev_l,X_train_r,X_test_r,X_dev_r = wk.prepare_train_test(data_l,data_r,
train_len,test_len)



if model_name == 'abcnn':
lrmodel = lrmodel(embedding_matrix, dimx=dimx, dimy=dimy, nb_filter = nb_filter, embedding_dim = embedding_dim,
filter_length = filter_length, depth = depth, shared = shared,
Expand Down
Binary file added Attention_Based_CNN (ABCNN)/model_abcnn.pyc
Binary file not shown.
Binary file removed Attention_recurrent_models/abcnn.JPG
Binary file not shown.
2,733 changes: 0 additions & 2,733 deletions Attention_recurrent_models/data/WikiQA-dev.txt

This file was deleted.

Loading

0 comments on commit d88226c

Please sign in to comment.