Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
66adb717
Commit
66adb717
authored
Oct 03, 2019
by
thomwolf
Browse files
update to transformers
parent
5ff9cd15
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/run_ner.py
examples/run_ner.py
+2
-2
No files found.
examples/run_ner.py
View file @
66adb717
...
@@ -33,8 +33,8 @@ from torch.utils.data.distributed import DistributedSampler
...
@@ -33,8 +33,8 @@ from torch.utils.data.distributed import DistributedSampler
from
tqdm
import
tqdm
,
trange
from
tqdm
import
tqdm
,
trange
from
utils_ner
import
convert_examples_to_features
,
get_labels
,
read_examples_from_file
from
utils_ner
import
convert_examples_to_features
,
get_labels
,
read_examples_from_file
from
pytorch_
transformers
import
AdamW
,
WarmupLinearSchedule
from
transformers
import
AdamW
,
WarmupLinearSchedule
from
pytorch_
transformers
import
WEIGHTS_NAME
,
BertConfig
,
BertForTokenClassification
,
BertTokenizer
from
transformers
import
WEIGHTS_NAME
,
BertConfig
,
BertForTokenClassification
,
BertTokenizer
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
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