Skip to content

Commit 5c0c41d

Browse files
authored
Update CNN.py
1 parent 25f1b66 commit 5c0c41d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

code/CNN.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def loadData_Tokenizer(X_train, X_test,MAX_NB_WORDS=75000,MAX_SEQUENCE_LENGTH=50
2626
X_train = text[0:len(X_train), ]
2727
X_test = text[len(X_train):, ]
2828
embeddings_index = {}
29-
f = open("C:\\Users\\kamran\\Documents\\GitHub\\RMDL\\Examples\\Glove\\glove.6B.100d.txt", encoding="utf8")
29+
f = open(".\glove.6B.100d.txt", encoding="utf8") ## GloVe file which could be download https://nlp.stanford.edu/projects/glove/
3030
for line in f:
3131
values = line.split()
3232
word = values[0]
@@ -144,4 +144,4 @@ def buildModel_CNN(word_index, embeddings_index, nclasses, MAX_SEQUENCE_LENGTH=5
144144
predicted = np.argmax(predicted, axis=1)
145145

146146

147-
print(metrics.classification_report(y_test, predicted))
147+
print(metrics.classification_report(y_test, predicted))

0 commit comments

Comments
 (0)