CoolFace
Modelpublic

Normal1919/Marian-NMT-en-zh-lil-fine-tune

sourceHugging Faceapache-2.0updated 3y agoView on Hugging Face
6likes47downloads
Model Card

Normal1919/Marian-NMT-en-zh-lil-fine-tune

  • —base model: MarianMTModel
  • —pretrained_ckpt: Helsinki-NLP/opus-mt-en-zh
  • —This model was trained for rpy dl translate

Model description

  • —source group: English
  • —target group: Chinese
  • —model: transformer
  • —source language(s): eng
  • —target language(s): cjyHans cjyHant cmn cmnHans cmnHant gan lzh lzhHans nan wuu yue yueHans yue_Hant
  • —fine_tune: On the basis of OPUS dataset checkpoints, train English original text with renpy text features (including but not limited to {i} [text] {/i}) to Chinese with the same reserved flag, as well as training for English name retention for LIL
  • —

How to use

python
>>> from transformers import AutoModelWithLMHead,AutoTokenizer,pipeline
>>> mode_name = 'Normal1919/Marian-NMT-en-zh-lil-fine-tune'
>>> model = AutoModelWithLMHead.from_pretrained(mode_name)
>>> tokenizer = AutoTokenizer.from_pretrained(mode_name)
>>> translation = pipeline("Marian-NMT-en-zh-lil-fine-tune", model=model, tokenizer=tokenizer)
>>> translation('I {i} should {/i} say that I feel a little relieved to find out that {i}this {/i} is why you’ve been hanging out with Kaori lately, though. She’s really pretty and I got jealous and...I’m sorry', max_length=400)
    [{'我{i}应该{/i}说发现{i}这{/i}是你最近和Kaori出去的原因,我有点松了一口气。她很漂亮,我嫉妒,而且......我很抱歉。'}]

Download

  • —链接:https://pan.baidu.com/s/1xGBzP2Grbg0BsuFSC1LXEQ
  • —提取码:prz3

Contact

517205163@qq.com or a4564563@gmail.com