feat: use Opus-MT-StarCitizen-zh-en model

This commit is contained in:
xkeyC
2025-11-16 15:09:56 +08:00
parent af15d106f0
commit 77c1b4f51a
5 changed files with 126 additions and 124 deletions

View File

@@ -393,11 +393,11 @@ mod tests {
#[test]
fn test_translation() {
let model = OpusMtModel::new(
"C:\\Users\\xkeyc\\Downloads\\onnx_models\\opus-mt-zh-en",
"E:\\Project\\StarCtizen\\Opus-MT-StarCitizen\\results\\final_model",
"_q4f16",
)
.unwrap();
let result = model.translate("你好世界").unwrap();
let result = model.translate("北极星要炸了,快撤!").unwrap();
println!("Translation: {}", result);
}
}