persiannlp / mt5-base-parsinlu-snli-entailment

huggingface.co
Total runs: 1
24-hour runs: 0
7-day runs: -2
30-day runs: -12
Model's Last Updated: September 24 2021
text2text-generation

Introduction of mt5-base-parsinlu-snli-entailment

Model Details of mt5-base-parsinlu-snli-entailment

Textual Entailment (مدل برای پاسخ به استلزام منطقی)

This is a model for textual entailment problems. Here is an example of how you can run this model:

from transformers import MT5ForConditionalGeneration, MT5Tokenizer

model_size="base"
model_name = f"persiannlp/mt5-{model_size}-parsinlu-snli-entailment"
tokenizer = MT5Tokenizer.from_pretrained(model_name)
model = MT5ForConditionalGeneration.from_pretrained(model_name)


def run_model(premise, hypothesis, **generator_args):
    input_ids = tokenizer.encode(f"{premise}<sep>{hypothesis}", 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(
    "ما به سفرهایی رفته ایم که در نهرهایی شنا کرده ایم",
    "علاوه بر استحمام در نهرها ، ما به اسپا ها و سونا ها نیز رفته ایم."
)

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

Runs of persiannlp mt5-base-parsinlu-snli-entailment on huggingface.co

1
Total runs
0
24-hour runs
-1
3-day runs
-2
7-day runs
-12
30-day runs

More Information About mt5-base-parsinlu-snli-entailment huggingface.co Model

More mt5-base-parsinlu-snli-entailment license Visit here:

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

mt5-base-parsinlu-snli-entailment huggingface.co

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

mt5-base-parsinlu-snli-entailment huggingface.co Url

https://huggingface.co/persiannlp/mt5-base-parsinlu-snli-entailment

persiannlp mt5-base-parsinlu-snli-entailment online free

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

persiannlp mt5-base-parsinlu-snli-entailment online free url in huggingface.co:

https://huggingface.co/persiannlp/mt5-base-parsinlu-snli-entailment

mt5-base-parsinlu-snli-entailment install

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

mt5-base-parsinlu-snli-entailment install url in huggingface.co:

https://huggingface.co/persiannlp/mt5-base-parsinlu-snli-entailment

Url of mt5-base-parsinlu-snli-entailment

mt5-base-parsinlu-snli-entailment huggingface.co Url

Provider of mt5-base-parsinlu-snli-entailment huggingface.co

persiannlp
ORGANIZATIONS

Other API from persiannlp