Instructions to use yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment") model = AutoModelForSequenceClassification.from_pretrained("yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment") - Notebooks
- Google Colab
- Kaggle
Pretrained model for evidence alignment on cutietestrun28May2020 dataset. The task was binary prediction whether the claim and evidence are relevant to each other. The model was built as a part of CEASystem.
Usage
model = transformers.AutoModelForSequenceClassification.from_pretrained("yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment")
tokenizer = transformers.AutoTokenizer.from_pretrained("yevhenkost/cutiesRun28-05-2020-roberta-base-evidenceAlignment")
claim_evidence_pairs = [
["The water is wet", "The sky is blue"],
["The car crashed", "Driver could not see the road"]
]
tokenized_inputs = tokenizer.batch_encode_plus(
predict_pairs,
return_tensors="pt",
padding=True,
truncation=True
)
preds = model(**tokenized_batch_input)
# logits: preds.logits
- Downloads last month
- 4