Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
2f80dbbc
Unverified
Commit
2f80dbbc
authored
Apr 02, 2019
by
Thomas Wolf
Committed by
GitHub
Apr 02, 2019
Browse files
Merge pull request #430 from MottoX/master
Fix typo in example code
parents
94adad6b
d07db28f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/run_classifier.py
examples/run_classifier.py
+1
-1
No files found.
examples/run_classifier.py
View file @
2f80dbbc
...
@@ -442,7 +442,7 @@ def convert_examples_to_features(examples, label_list, max_seq_length,
...
@@ -442,7 +442,7 @@ def convert_examples_to_features(examples, label_list, max_seq_length,
# sequence or the second sequence. The embedding vectors for `type=0` and
# sequence or the second sequence. The embedding vectors for `type=0` and
# `type=1` were learned during pre-training and are added to the wordpiece
# `type=1` were learned during pre-training and are added to the wordpiece
# embedding vector (and position vector). This is not *strictly* necessary
# embedding vector (and position vector). This is not *strictly* necessary
# since the [SEP] token unambig
i
ously separates the sequences, but it makes
# since the [SEP] token unambig
u
ously separates the sequences, but it makes
# it easier for the model to learn the concept of sequences.
# it easier for the model to learn the concept of sequences.
#
#
# For classification tasks, the first vector (corresponding to [CLS]) is
# For classification tasks, the first vector (corresponding to [CLS]) is
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment