Skip to content

Commit

Permalink
fix console_script and add meeteval-der
Browse files Browse the repository at this point in the history
  • Loading branch information
boeddeker committed Dec 5, 2023
1 parent fbf754d commit c564419
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 5 additions & 2 deletions meeteval/der/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@


if __name__ == '__main__':
def cli():
from meeteval.wer.__main__ import CLI
from meeteval.der.md_eval import md_eval_22

Expand All @@ -9,3 +8,7 @@
cli.add_command(md_eval_22)

cli.run()


if __name__ == '__main__':
cli()
7 changes: 6 additions & 1 deletion meeteval/wer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,8 @@ def run(self):
self.parser.print_help()


if __name__ == '__main__':
def cli():

cli = CLI()

cli.add_command(wer)
Expand All @@ -552,3 +553,7 @@ def run(self):
cli.add_command(average)

cli.run()


if __name__ == '__main__':
cli()
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@
package_data={'meeteval': ['**/*.pyx', '**/*.h']}, # https://stackoverflow.com/a/60751886
entry_points={
'console_scripts': [
'meeteval-wer=meeteval.wer.__main__:cli'
'meeteval-wer=meeteval.wer.__main__:cli',
'meeteval-der=meeteval.der.__main__:cli',
]
}
)

0 comments on commit c564419

Please sign in to comment.