persiannlp / mt5-small-parsinlu-opus-translation_fa_en

huggingface.co
Total runs: 68.7K
24-hour runs: 0
7-day runs: -1.7K
30-day runs: -19.3K
Model's Last Updated: September 24 2021
text2text-generation

Introduction of mt5-small-parsinlu-opus-translation_fa_en

Model Details of mt5-small-parsinlu-opus-translation_fa_en

Machine Translation (ترجمه‌ی ماشینی)

This is an mT5-based model for machine translation (Persian -> English). Here is an example of how you can run this model:

from transformers import MT5ForConditionalGeneration, MT5Tokenizer

model_size = "small"
model_name = f"persiannlp/mt5-{model_size}-parsinlu-opus-translation_fa_en"
tokenizer = MT5Tokenizer.from_pretrained(model_name)
model = MT5ForConditionalGeneration.from_pretrained(model_name)


def run_model(input_string, **generator_args):
    input_ids = tokenizer.encode(input_string, return_tensors="pt")
    res = model.generate(input_ids, **generator_args)
    output = tokenizer.batch_decode(res, skip_special_tokens=True)
    print(output)
    return output


run_model("ستایش خدای را که پروردگار جهانیان است.")
run_model("در هاید پارک کرنر بر گلدانی ایستاده موعظه می‌کند؛")
run_model("وی از تمامی بلاگرها، سازمان‌ها و افرادی که از وی پشتیبانی کرده‌اند، تشکر کرد.")
run_model("مشابه سال ۲۰۰۱، تولید آمونیاک بی آب در ایالات متحده در سال ۲۰۰۰ تقریباً ۱۷،۴۰۰،۰۰۰ تن (معادل بدون آب) با مصرف ظاهری ۲۲،۰۰۰،۰۰۰ تن و حدود ۴۶۰۰۰۰۰ با واردات خالص مواجه شد. ")
run_model("می خواهم دکترای علوم کامپیوتر راجع به شبکه های اجتماعی را دنبال کنم، چالش حل نشده در شبکه های اجتماعی چیست؟")

For more details, visit this page: https://github.com/persiannlp/parsinlu/

Runs of persiannlp mt5-small-parsinlu-opus-translation_fa_en on huggingface.co

68.7K
Total runs
0
24-hour runs
-824
3-day runs
-1.7K
7-day runs
-19.3K
30-day runs

More Information About mt5-small-parsinlu-opus-translation_fa_en huggingface.co Model

More mt5-small-parsinlu-opus-translation_fa_en license Visit here:

https://choosealicense.com/licenses/cc-by-nc-sa-4.0

mt5-small-parsinlu-opus-translation_fa_en huggingface.co

mt5-small-parsinlu-opus-translation_fa_en huggingface.co is an AI model on huggingface.co that provides mt5-small-parsinlu-opus-translation_fa_en's model effect (), which can be used instantly with this persiannlp mt5-small-parsinlu-opus-translation_fa_en model. huggingface.co supports a free trial of the mt5-small-parsinlu-opus-translation_fa_en model, and also provides paid use of the mt5-small-parsinlu-opus-translation_fa_en. Support call mt5-small-parsinlu-opus-translation_fa_en model through api, including Node.js, Python, http.

mt5-small-parsinlu-opus-translation_fa_en huggingface.co Url

https://huggingface.co/persiannlp/mt5-small-parsinlu-opus-translation_fa_en

persiannlp mt5-small-parsinlu-opus-translation_fa_en online free

mt5-small-parsinlu-opus-translation_fa_en huggingface.co is an online trial and call api platform, which integrates mt5-small-parsinlu-opus-translation_fa_en's modeling effects, including api services, and provides a free online trial of mt5-small-parsinlu-opus-translation_fa_en, you can try mt5-small-parsinlu-opus-translation_fa_en online for free by clicking the link below.

persiannlp mt5-small-parsinlu-opus-translation_fa_en online free url in huggingface.co:

https://huggingface.co/persiannlp/mt5-small-parsinlu-opus-translation_fa_en

mt5-small-parsinlu-opus-translation_fa_en install

mt5-small-parsinlu-opus-translation_fa_en is an open source model from GitHub that offers a free installation service, and any user can find mt5-small-parsinlu-opus-translation_fa_en on GitHub to install. At the same time, huggingface.co provides the effect of mt5-small-parsinlu-opus-translation_fa_en install, users can directly use mt5-small-parsinlu-opus-translation_fa_en installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

mt5-small-parsinlu-opus-translation_fa_en install url in huggingface.co:

https://huggingface.co/persiannlp/mt5-small-parsinlu-opus-translation_fa_en

Url of mt5-small-parsinlu-opus-translation_fa_en

mt5-small-parsinlu-opus-translation_fa_en huggingface.co Url

Provider of mt5-small-parsinlu-opus-translation_fa_en huggingface.co

persiannlp
ORGANIZATIONS

Other API from persiannlp