[go: nahoru, domu]

Skip to content

Commit

Permalink
update default spec to mobilebert_classifier.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 424671844
  • Loading branch information
ziyeqinghan authored and Copybara-Service committed Jan 27, 2022
1 parent 82425db commit 50872d6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
def define_flags():
flags.DEFINE_string('export_dir', None,
'The directory to save exported files.')
flags.DEFINE_string('spec', 'bert_classifier', 'The text classifier to run.')
flags.DEFINE_string('spec', 'mobilebert_classifier',
'The text classifier to run.')
flags.mark_flag_as_required('export_dir')


Expand All @@ -49,7 +50,7 @@ def download_demo_data(**kwargs):
return os.path.join(os.path.dirname(data_path), 'SST-2') # folder name


def run(data_dir, export_dir, spec='bert_classifier', **kwargs):
def run(data_dir, export_dir, spec='mobilebert_classifier', **kwargs):
"""Runs demo."""
# Chooses model specification that represents model.
spec = model_spec.get(spec)
Expand Down

0 comments on commit 50872d6

Please sign in to comment.