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
f0d22061
Commit
f0d22061
authored
Feb 01, 2021
by
stephenwu
Browse files
fixed style from pylint
parent
44e7092c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
official/nlp/data/classifier_data_lib.py
official/nlp/data/classifier_data_lib.py
+4
-3
official/nlp/data/create_finetuning_data.py
official/nlp/data/create_finetuning_data.py
+1
-1
No files found.
official/nlp/data/classifier_data_lib.py
View file @
f0d22061
...
...
@@ -1419,9 +1419,10 @@ def generate_tf_record_from_data_file(processor,
num_training_data
=
0
if
train_data_output_path
:
train_input_data_examples
=
processor
.
get_train_examples
(
data_dir
)
file_based_convert_examples_to_features
(
train_input_data_examples
,
label_list
,
max_seq_length
,
tokenizer
,
train_data_output_path
,
label_type
)
file_based_convert_examples_to_features
(
train_input_data_examples
,
label_list
,
max_seq_length
,
tokenizer
,
train_data_output_path
,
label_type
)
num_training_data
=
len
(
train_input_data_examples
)
if
eval_data_output_path
:
...
...
official/nlp/data/create_finetuning_data.py
View file @
f0d22061
...
...
@@ -240,7 +240,7 @@ def generate_classifier_dataset():
translated_data_dir
=
FLAGS
.
translated_input_data_dir
,
only_use_en_dev
=
FLAGS
.
only_use_en_dev
),
"ax-g"
:
classifier_data_lib
.
AXgProcessor
classifier_data_lib
.
AXgProcessor
}
task_name
=
FLAGS
.
classification_task_name
.
lower
()
...
...
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