1.开源地址:https://huggingface.co/Helsinki-NLP/opus-mt-zh-en 2.使用场景:中译英,多模型场景的中英转换 3.API封装 importuvicornfromfastapiimportFastAPIfromloguruimportloggerfrompydanticimportBaseModelfromstarlette.middleware.corsimportCORSMiddlewarefromtransformersimportAutoTokenizer, AutoModelForSeq2SeqLM tokeni...
Helsinki-NLP 是一个基于深度学习的机器翻译模型,它支持英语到中文和中文到英文的翻译。该模型使用开源的 opus-mt 作为其基础实现,并提供了相应的本地离线运行脚本。 在Python 中,可以使用以下代码来运行 HLS 的 opus-mt-zh-en 和 opus-mt-en-zh 模型: ```python import subprocess from nltk.translate.bleu_...
免费查询更多helsinki-nlp/opus-mt-en-zh模型转onnx详细参数、实时报价、行情走势、优质商品批发/供应信息等,您还可以发布询价信息。