Skip to content

Commit ccb19b1

Browse files
Update phishing_email_detection_gpt2.py
Fix issue: Max sequence length supported by tokenizer ...
1 parent 87270f8 commit ccb19b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phishing_email_detection_gpt2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def call(self, x):
272272
# GPT2 configurables
273273

274274
# Optimal for accuracy thus far:
275-
max_seq_length = 1024 * 2
275+
max_seq_length = 1024
276276

277277
inp = tf.keras.layers.Input(shape=(), dtype=tf.string)
278278
gp2_tokenizer = TokenizerLayer(max_seq_length=max_seq_length)

0 commit comments

Comments
 (0)