mirror of
https://github.com/neodyland/sbv2-api.git
synced 2026-01-07 06:52:57 +00:00
Update jtalk.rs
This commit is contained in:
@@ -407,14 +407,6 @@ impl JTalkProcess {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn normalize_text(text: &str) -> String {
|
||||
// 日本語のテキストを正規化する
|
||||
let text = text.replace('~', "ー");
|
||||
let text = text.replace('~', "ー");
|
||||
|
||||
text.replace('〜', "ー")
|
||||
}
|
||||
|
||||
pub fn get_tokenizer() -> Result<Tokenizer> {
|
||||
let tokenizer = Tokenizer::from_file("tokenizer.json")?;
|
||||
Ok(tokenizer)
|
||||
|
||||
Reference in New Issue
Block a user