Skip to content

Commit 3c44151

Browse files
authored
Update RCNN.py
1 parent 9e5a732 commit 3c44151

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

code/RCNN.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def loadData_Tokenizer(X_train, X_test,MAX_NB_WORDS=75000,MAX_SEQUENCE_LENGTH=50
2828
X_train = text[0:len(X_train), ]
2929
X_test = text[len(X_train):, ]
3030
embeddings_index = {}
31-
f = open("C:\\Users\\kamran\\Documents\\GitHub\\RMDL\\Examples\\Glove\\glove.6B.50d.txt", encoding="utf8")
31+
f = open(".\glove.6B.100d.txt", encoding="utf8")
3232
for line in f:
3333
values = line.split()
3434
word = values[0]
@@ -42,7 +42,7 @@ def loadData_Tokenizer(X_train, X_test,MAX_NB_WORDS=75000,MAX_SEQUENCE_LENGTH=50
4242
return (X_train, X_test, word_index,embeddings_index)
4343

4444

45-
def Build_Model_RCNN_Text(word_index, embeddings_index, nclasses, MAX_SEQUENCE_LENGTH=500, EMBEDDING_DIM=50):
45+
def Build_Model_RCNN_Text(word_index, embeddings_index, nclasses, MAX_SEQUENCE_LENGTH=500, EMBEDDING_DIM=100):
4646

4747
kernel_size = 2
4848
filters = 256
@@ -117,4 +117,4 @@ def Build_Model_RCNN_Text(word_index, embeddings_index, nclasses, MAX_SEQUENCE_L
117117
predicted = model_RCNN.predict(X_test_Glove)
118118

119119
predicted = np.argmax(predicted, axis=1)
120-
print(metrics.classification_report(y_test, predicted))
120+
print(metrics.classification_report(y_test, predicted))

0 commit comments

Comments
 (0)