Skip to content

Commit

Permalink
add flags conditions for prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
kamalkraj committed Nov 6, 2019
1 parent 83bb8f8 commit 91db78c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions run_classifer.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@ def metric_fn():
if FLAGS.do_predict:

logging.info("***** Running prediction*****")
flags.mark_flag_as_required("input_data_dir")
flags.mark_flag_as_required("predict_data_path")
tokenizer = tokenization.FullTokenizer(
vocab_file=None,spm_model_file=FLAGS.spm_model_file, do_lower_case=FLAGS.do_lower_case)

Expand Down

0 comments on commit 91db78c

Please sign in to comment.