We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ae1883 commit 27b42a4Copy full SHA for 27b42a4
heliport-model/src/languagemodel.rs
@@ -218,7 +218,7 @@ impl Model {
218
let mut loaded_langs = LangBitmap::new();
219
220
for (i, line) in confidence_file.trim_end().split('\n').enumerate() {
221
- let parts: Vec<&str> = line.split('\t').collect();
+ let parts: Vec<&str> = line.trim_end().split('\t').collect();
222
// Check that the number of fields are correct and the language exists
223
if parts.len() != 2 {
224
bail!(
0 commit comments