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
d3d56f9a
Unverified
Commit
d3d56f9a
authored
Jan 07, 2019
by
Thomas Wolf
Committed by
GitHub
Jan 07, 2019
Browse files
Merge pull request #166 from likejazz/patch-1
Fix error when `bert_model` param is path or url.
parents
766c6b2c
ca4e7aaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/run_squad.py
examples/run_squad.py
+1
-1
No files found.
examples/run_squad.py
View file @
d3d56f9a
...
...
@@ -856,7 +856,7 @@ def main():
global_step
=
0
if
args
.
do_train
:
cached_train_features_file
=
args
.
train_file
+
'_{0}_{1}_{2}_{3}'
.
format
(
args
.
bert_model
,
str
(
args
.
max_seq_length
),
str
(
args
.
doc_stride
),
str
(
args
.
max_query_length
))
list
(
filter
(
None
,
args
.
bert_model
.
split
(
'/'
))).
pop
()
,
str
(
args
.
max_seq_length
),
str
(
args
.
doc_stride
),
str
(
args
.
max_query_length
))
train_features
=
None
try
:
with
open
(
cached_train_features_file
,
"rb"
)
as
reader
:
...
...
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