Skip to content

Commit

Permalink
style: fix __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ryokan0123 committed Apr 1, 2024
1 parent 23c8d09 commit 59fcb65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/jmteb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@ def main(
score_recorder.record_summary()


if __name__ == '__main__':
if __name__ == "__main__":
parser = ArgumentParser(parser_mode="jsonnet")

parser.add_subclass_arguments(TextEmbedder, nested_key="embedder", required=True)
parser.add_argument(
"--evaluators", type=dict[str, EmbeddingEvaluator], enable_path=True, default=str(Path(__file__).parent / "configs" / "jmteb.jsonnet")
"--evaluators",
type=dict[str, EmbeddingEvaluator],
enable_path=True,
default=str(Path(__file__).parent / "configs" / "jmteb.jsonnet"),
)
parser.add_argument("--config", action=ActionConfigFile, help="Path to the config file.")
parser.add_argument("--save_dir", type=str, default=None, help="Directory to save the outputs")
Expand Down

0 comments on commit 59fcb65

Please sign in to comment.