mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-01-08 23:42:57 +00:00
fix bug
This commit is contained in:
@@ -16,9 +16,9 @@ pub fn cleaned_text_to_sequence(
|
||||
) -> (Vec<i32>, Vec<i32>, Vec<i32>) {
|
||||
let phones: Vec<i32> = cleaned_phones
|
||||
.iter()
|
||||
.map(|phone| SYMBOL_TO_ID.get(phone).unwrap())
|
||||
.map(|phone| *SYMBOL_TO_ID.get(phone).unwrap())
|
||||
.collect();
|
||||
let tones: Vec<i32> = tones.iter().map(|tone| tone + 6).collect();
|
||||
let tones: Vec<i32> = tones.iter().map(|tone| *tone + 6).collect();
|
||||
let lang_ids: Vec<i32> = vec![1; phones.len()];
|
||||
(phones, tones, lang_ids)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user