persiannlp / mt5-large-parsinlu-translation_en_fa

huggingface.co
Total runs: 7.3K
24-hour runs: 494
7-day runs: 3.6K
30-day runs: 5.8K
Model's Last Updated: September 24 2021
text2text-generation

Introduction of mt5-large-parsinlu-translation_en_fa

Model Details of mt5-large-parsinlu-translation_en_fa

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

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

from transformers import MT5ForConditionalGeneration, MT5Tokenizer

model_size = "large"
model_name = f"persiannlp/mt5-{model_size}-parsinlu-translation_en_fa"
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("Praise be to Allah, the Cherisher and Sustainer of the worlds;")
run_model("shrouds herself in white and walks penitentially disguised as brotherly love through factories and parliaments; offers help, but desires power;")
run_model("He thanked all fellow bloggers and organizations that showed support.")
run_model("Races are held between April and December at the Veliefendi Hippodrome near Bakerky, 15 km (9 miles) west of Istanbul.")
run_model("I want to pursue PhD in Computer Science about social network,what is the open problem in social networks?")

which should output:

['خدا را شکر که آفریننده و نگهدار جهان است.']
['خود را با کفن سفید می پوشد و به شکل برادرانه ای در']
['او از همه ی وبلاگ نویسان و سازمان هایی که از او حمایت کردند']
['مسابقات بین آوریل و دسامبر در فرودگاه والی عبدین نزدیک بی']
['من می خواهم پایان نامه دکتری را در رشته علوم کامپیوتر در']

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

Runs of persiannlp mt5-large-parsinlu-translation_en_fa on huggingface.co

7.3K
Total runs
494
24-hour runs
1.4K
3-day runs
3.6K
7-day runs
5.8K
30-day runs

More Information About mt5-large-parsinlu-translation_en_fa huggingface.co Model

More mt5-large-parsinlu-translation_en_fa license Visit here:

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

mt5-large-parsinlu-translation_en_fa huggingface.co

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

mt5-large-parsinlu-translation_en_fa huggingface.co Url

https://huggingface.co/persiannlp/mt5-large-parsinlu-translation_en_fa

persiannlp mt5-large-parsinlu-translation_en_fa online free

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

persiannlp mt5-large-parsinlu-translation_en_fa online free url in huggingface.co:

https://huggingface.co/persiannlp/mt5-large-parsinlu-translation_en_fa

mt5-large-parsinlu-translation_en_fa install

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

mt5-large-parsinlu-translation_en_fa install url in huggingface.co:

https://huggingface.co/persiannlp/mt5-large-parsinlu-translation_en_fa

Url of mt5-large-parsinlu-translation_en_fa

mt5-large-parsinlu-translation_en_fa huggingface.co Url

Provider of mt5-large-parsinlu-translation_en_fa huggingface.co

persiannlp
ORGANIZATIONS

Other API from persiannlp