mirror of
https://github.com/guillaume-be/rust-bert.git
synced 2024-09-11 12:55:34 +03:00
Merged master changes
This commit is contained in:
parent
0b2e339e87
commit
58eef0785f
@ -54,6 +54,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
None,
|
None,
|
||||||
target_language,
|
target_language,
|
||||||
None,
|
None,
|
||||||
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
for sentence in output {
|
for sentence in output {
|
||||||
|
@ -107,10 +107,11 @@ fn m2m100_translation() -> anyhow::Result<()> {
|
|||||||
None,
|
None,
|
||||||
target_language,
|
target_language,
|
||||||
None,
|
None,
|
||||||
|
false,
|
||||||
);
|
);
|
||||||
|
|
||||||
assert_eq!(output.len(), 1);
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user