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)
defrun_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(
"ما به سفرهایی رفته ایم که در نهرهایی شنا کرده ایم",
"علاوه بر استحمام در نهرها ، ما به اسپا ها و سونا ها نیز رفته ایم."
)
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 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:
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: