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
c7f79815
Commit
c7f79815
authored
Jan 21, 2020
by
Lysandre
Browse files
Cleanup unused variables
parent
15579e2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/transformers/tokenization_xlnet.py
src/transformers/tokenization_xlnet.py
+0
-1
No files found.
src/transformers/tokenization_xlnet.py
View file @
c7f79815
...
@@ -236,7 +236,6 @@ class XLNetTokenizer(PreTrainedTokenizer):
...
@@ -236,7 +236,6 @@ class XLNetTokenizer(PreTrainedTokenizer):
if token_ids_1 is None, only returns the first portion of the mask (0's).
if token_ids_1 is None, only returns the first portion of the mask (0's).
"""
"""
sep
=
[
self
.
sep_token_id
]
sep
=
[
self
.
sep_token_id
]
cls
=
[
self
.
cls_token_id
]
cls_segment_id
=
[
2
]
cls_segment_id
=
[
2
]
if
token_ids_1
is
None
:
if
token_ids_1
is
None
:
...
...
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