File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
# Download the data:
21
21
# https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge
22
+ # https://lazyprogrammer.me/course_files/toxic_comment_train.csv
22
23
# Download the word vectors:
23
24
# http://nlp.stanford.edu/data/glove.6B.zip
24
25
Original file line number Diff line number Diff line change 27
27
28
28
# Download the data:
29
29
# https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge
30
+ # https://lazyprogrammer.me/course_files/toxic_comment_train.csv
30
31
# Download the word vectors:
31
32
# http://nlp.stanford.edu/data/glove.6B.zip
32
33
115
116
# create an LSTM network with a single LSTM
116
117
input_ = Input (shape = (MAX_SEQUENCE_LENGTH ,))
117
118
x = embedding_layer (input_ )
118
- # x = LSTM(15, return_sequences=True)(x)
119
- x = Bidirectional (LSTM (15 , return_sequences = True ))(x )
119
+ x = LSTM (15 , return_sequences = True )(x )
120
+ # x = Bidirectional(LSTM(15, return_sequences=True))(x)
120
121
x = GlobalMaxPool1D ()(x )
121
122
output = Dense (len (possible_labels ), activation = "sigmoid" )(x )
122
123
You can’t perform that action at this time.
0 commit comments