diff options
| author | yum <yum.food.vr@gmail.com> | 2022-10-27 19:15:48 -0700 |
|---|---|---|
| committer | yum <yum.food.vr@gmail.com> | 2022-10-27 19:15:48 -0700 |
| commit | 113f2858016c252b97cac96eab454ee16b2dcda2 (patch) | |
| tree | f0b3f61ae10e2f33584d0479354accfe65f8e15e /string_matcher.py | |
| parent | 40d8fc288059e38a59c21ec2502eac059257b44e (diff) | |
Tweak continuous transcription
Stitching new uses 6 word sliding window instead of 4 word. Seems to
dramatically improve transcription quality.
Diffstat (limited to 'string_matcher.py')
| -rw-r--r-- | string_matcher.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string_matcher.py b/string_matcher.py index 458244b..17bfaac 100644 --- a/string_matcher.py +++ b/string_matcher.py @@ -8,7 +8,7 @@ import typing # Find the window where the distance between these two transcriptions is # minimized and use it to stitch them together. def matchStringList(old_words: typing.List[str], - new_words: typing.List[str], window_size = 4) -> str: + new_words: typing.List[str], window_size = 6) -> str: if old_words == new_words: return " ".join(old_words) elif len(old_words) >= window_size and len(new_words) >= window_size: |
