-
Notifications
You must be signed in to change notification settings - Fork 652
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
Migrating kaldi tests #671
Conversation
Signed-off-by: Bhargav Kathivarapu <bhargavkathivarapu31@gmail.com>
Signed-off-by: Bhargav Kathivarapu <bhargavkathivarapu31@gmail.com>
For |
Thanks for working on this. First, let's put migration of different types of tests into separate PRs and start from existing one. Second, instead of simple text file, can you use JSON Lines format? (with def _load_jsonl(path):
with open('file.json', 'r') as file:
return [json.loads(line) for line in file] Third, when working on different types of test, can you use different parameter files? One JSON Line file for Forth, the current implementation stops when there is one test error. Let's try using Combining the second and forth suggestions, the required change should be fairly simple. From
to
And you will need to add dependencies to CI config here and here |
@@ -48,6 +89,8 @@ def _run_kaldi(command, input_type, input_value): | |||
|
|||
|
|||
class Kaldi(common_utils.TestBaseMixin): | |||
test_8000_filepath = common_utils.get_asset_path('kaldi_file_8000.wav') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep this inside of test each test. The intended usage of asset file is not immediately clear when someone else work on adding a new test, so it is not very suited to be common property.
@mthrok ,Submitted another PR ( #672 ) just for fbank , includes below
But the CI tests are not getting trigged for that pull request |
Hi ,
Regarding #597 , This PR moves tests from test/test_compliance_kaldi.py to test/kaldi_compatibility_impl.py