Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add der md_eval_22 #43

Merged
merged 10 commits into from
Dec 7, 2023
Merged

add der md_eval_22 #43

merged 10 commits into from
Dec 7, 2023

Conversation

boeddeker
Copy link
Member

No description provided.

meeteval/der/md_eval.py Outdated Show resolved Hide resolved
meeteval/der/md_eval.py Show resolved Hide resolved
)


def md_eval_22(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you split this into a Python function that takes RTTM objects and the cli function that takes file paths?

For WERs, the cli functions are defined in __main__.py.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conclusion after offline discussion:
It is possible to split the md_eval_22 function, but the code either gets ugly or differs from the WER code.
So we made this function private and for now, md_eval_22 has only a CLI interface in meeteval and no python interface.

meeteval/der/md_eval.py Outdated Show resolved Hide resolved
meeteval/der/md_eval.py Outdated Show resolved Hide resolved
meeteval/der/md_eval.py Outdated Show resolved Hide resolved
meeteval/wer/__main__.py Show resolved Hide resolved
'--log-level', help='Log level', default='WARNING',
choices=['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'SILENT']
)
class CLI:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to move this class somewhere else and import it in all __main__.py files? It seems weird that the DER CLI script imports the WER CLI script. meeteval.cli?

Same applies to the other functions that are imported in the DER CLI.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the CLI class can be used for WER and DER, it is mainly designed for WER.
Since we don't know, how future interfaces look like, I thought, we use here the concept that is used in kaldi:
Define the function where it is used and import it, where it also works.

But I could also move the code to cli.py

 - make md_eval_22 python function private
 - remove intermediate dict
 - change RTTM default
@boeddeker boeddeker merged commit 76022ca into fgnt:main Dec 7, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants