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
ModelZoo
ResNet50_tensorflow
Commits
45b7e94f
Commit
45b7e94f
authored
Dec 21, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 21, 2020
Browse files
Internal change
PiperOrigin-RevId: 348486573
parent
10939e58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
official/nlp/tasks/question_answering.py
official/nlp/tasks/question_answering.py
+3
-0
No files found.
official/nlp/tasks/question_answering.py
View file @
45b7e94f
...
@@ -77,6 +77,9 @@ class QuestionAnsweringTask(base_task.Task):
...
@@ -77,6 +77,9 @@ class QuestionAnsweringTask(base_task.Task):
def
__init__
(
self
,
params
:
cfg
.
TaskConfig
,
logging_dir
=
None
,
name
=
None
):
def
__init__
(
self
,
params
:
cfg
.
TaskConfig
,
logging_dir
=
None
,
name
=
None
):
super
().
__init__
(
params
,
logging_dir
,
name
=
name
)
super
().
__init__
(
params
,
logging_dir
,
name
=
name
)
if
params
.
validation_data
is
None
:
return
if
params
.
validation_data
.
tokenization
==
'WordPiece'
:
if
params
.
validation_data
.
tokenization
==
'WordPiece'
:
self
.
squad_lib
=
squad_lib_wp
self
.
squad_lib
=
squad_lib_wp
elif
params
.
validation_data
.
tokenization
==
'SentencePiece'
:
elif
params
.
validation_data
.
tokenization
==
'SentencePiece'
:
...
...
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