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
4fa1cd99
"examples/vscode:/vscode.git/clone" did not exist on "818997788584b9fc043d8b58e078f63aadb6b60e"
Unverified
Commit
4fa1cd99
authored
Aug 26, 2021
by
Nicolas Patry
Committed by
GitHub
Aug 26, 2021
Browse files
Fixing the test (warnings was incorrect.) (#13278)
parent
6b586ed1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/pipelines/token_classification.py
src/transformers/pipelines/token_classification.py
+1
-1
No files found.
src/transformers/pipelines/token_classification.py
View file @
4fa1cd99
...
...
@@ -281,7 +281,7 @@ class TokenClassificationPipeline(Pipeline):
AggregationStrategy
.
AVERAGE
,
AggregationStrategy
.
MAX
,
}:
warnings
.
warn
(
UserWarning
,
"Tokenizer does not support real words, using fallback heuristic"
)
warnings
.
warn
(
"Tokenizer does not support real words, using fallback heuristic"
,
UserWarning
)
is_subword
=
sentence
[
start_ind
-
1
:
start_ind
]
!=
" "
if
start_ind
>
0
else
False
if
int
(
input_ids
[
idx
])
==
self
.
tokenizer
.
unk_token_id
:
...
...
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