mirror of
https://github.com/huggingface/candle.git
synced 2025-06-16 10:38:54 +00:00

* Use the hub files for the marian example. * Use the secondary decoder. * Add a readme. * More readme.
20 lines
786 B
Markdown
20 lines
786 B
Markdown
# candle-marian-mt
|
|
|
|
`marian-mt` is a neural machine translation model. In this example it is used to
|
|
translate text from French to English. See the associated [model
|
|
card](https://huggingface.co/Helsinki-NLP/opus-mt-tc-big-fr-en) for details on
|
|
the model itself.
|
|
|
|
## Running an example
|
|
|
|
```bash
|
|
cargo run --example marian-mt --release -- \
|
|
--text "Demain, dès l'aube, à l'heure où blanchit la campagne, Je partirai. Vois-tu, je sais que tu m'attends. J'irai par la forêt, j'irai par la montagne. Je ne puis demeurer loin de toi plus longtemps."
|
|
```
|
|
|
|
```
|
|
<NIL> Tomorrow, at dawn, at the time when the country is whitening, I will go. See,
|
|
I know you are waiting for me. I will go through the forest, I will go through the
|
|
mountain. I cannot stay far from you any longer.</s>
|
|
```
|