mirror of
https://github.com/guillaume-be/rust-bert.git
synced 2024-08-16 16:10:25 +03:00
Merged master changes
This commit is contained in:
parent
0b2e339e87
commit
58eef0785f
@ -54,6 +54,7 @@ fn main() -> anyhow::Result<()> {
|
||||
None,
|
||||
target_language,
|
||||
None,
|
||||
false,
|
||||
);
|
||||
|
||||
for sentence in output {
|
||||
|
@ -107,10 +107,11 @@ fn m2m100_translation() -> anyhow::Result<()> {
|
||||
None,
|
||||
target_language,
|
||||
None,
|
||||
false,
|
||||
);
|
||||
|
||||
assert_eq!(output.len(), 1);
|
||||
assert_eq!(output[0], ">>es.<< El perro no se despertó.");
|
||||
assert_eq!(output[0].text, ">>es.<< El perro no se despertó.");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user