cointegrated/nli-rus-translated-v2021
Viewer • Updated • 1.9M • 140 • 1
How to use cointegrated/rubert-tiny-bilingual-nli with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("zero-shot-classification", model="cointegrated/rubert-tiny-bilingual-nli") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("cointegrated/rubert-tiny-bilingual-nli")
model = AutoModelForSequenceClassification.from_pretrained("cointegrated/rubert-tiny-bilingual-nli")This is the cointegrated/rubert-tiny model fine-tuned to predict the logical relationship between two short texts: entailment or not entailment.
For more details, see the card for a related model: https://huggingface.co/cointegrated/rubert-base-cased-nli-threeway