Commit 97ecec2
committed
fix: improve heuristic for not combining paragraphs
this changes the detection heuristic for overly long sentences from the previous "longer than 30s" to a word based approach of "more than 161 words".
moreover it gets rid of the stateful approach that we would disable all recombination after the first overly long paragraph.
overall this is not a perfect approach but produces saner results than before.
this should temporarily fix the situation in which transcribee generates only one word per paragraph.
the proper fix is resetting the whisper state from time to time and will land in the future.1 parent 47d0bfd commit 97ecec2
2 files changed
Lines changed: 8 additions & 109 deletions
File tree
- worker
- tests/data
- transcribee_worker
Lines changed: 0 additions & 90 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | 90 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | 102 | | |
114 | 103 | | |
115 | 104 | | |
| |||
160 | 149 | | |
161 | 150 | | |
162 | 151 | | |
163 | | - | |
| 152 | + | |
164 | 153 | | |
165 | 154 | | |
166 | 155 | | |
| |||
0 commit comments