Views
No views yet
1try (var translator = MarianTranslator.builder()
2 .modelId("inference4j/opus-mt-en-de").build()) {
3 System.out.println(translator.translate("The weather is beautiful today."));
4}| Property | Value |
|---|---|
| Architecture | MarianMT encoder-decoder |
| Language pair | English → German |
| Training data | OPUS |
| Tokenizer | SentencePiece |
| Original framework | PyTorch (transformers) |
| Export method | Hugging Face Optimum (encoder-decoder with KV cache) |