AtmaHou / FewShotTagging

Code for ACL2020 paper: Few-shot Slot Tagging with Collapsed Dependency Transfer and Label-enhanced Task-adaptive Projection Network
153 stars 29 forks source link

How to inspect prediction results? #24

Closed chijames closed 3 years ago

chijames commented 3 years ago

Hi,

Thanks for releasing the code! May I know how to perform inference on the saved checkpoints? Basically, I want to take a look at the predicted BIO results of all the test sentences.

Thanks!

laiyongkui1997 commented 3 years ago

You can perform following steps:

  1. delete the --do_train parameter, remain the --do_predict parameter
  2. add --saved_mode_path ${the_model_path} to tell program where the checkpoint is
  3. change --output_dir ${the_prediction_result_saved_path} to avoid covering the origin files.
  4. change the log filename to avoid covering the origin log file.
AtmaHou commented 3 years ago

You can perform following steps:

  1. delete the --do_train parameter, remain the --do_predict parameter
  2. add --saved_mode_path ${the_model_path} to tell program where the checkpoint is
  3. change --output_dir ${the_prediction_result_saved_path} to avoid covering the origin files.
  4. change the log filename to avoid covering the origin log file.

Thanks for the prompt answer!