Text Classification
Transformers
Safetensors
English
roberta
fill-mask
question-answering
evaluation
text
Instructions to use zli12321/answer_equivalence_roberta-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zli12321/answer_equivalence_roberta-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="zli12321/answer_equivalence_roberta-large")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("zli12321/answer_equivalence_roberta-large") model = AutoModelForMaskedLM.from_pretrained("zli12321/answer_equivalence_roberta-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Zongxia Li commited on
Update README.md
Browse files
README.md
CHANGED
|
@@ -46,7 +46,7 @@ Our fine-tuned BERT model is this repository. Our Package also supports download
|
|
| 46 |
from qa_metrics.transformerMatcher import TransformerMatcher
|
| 47 |
|
| 48 |
question = "who will take the throne after the queen dies"
|
| 49 |
-
tm = TransformerMatcher("roberta")
|
| 50 |
scores = tm.get_scores(reference_answer, candidate_answer, question)
|
| 51 |
match_result = tm.transformer_match(reference_answer, candidate_answer, question)
|
| 52 |
print("Score: %s; CF Match: %s" % (scores, match_result))
|
|
|
|
| 46 |
from qa_metrics.transformerMatcher import TransformerMatcher
|
| 47 |
|
| 48 |
question = "who will take the throne after the queen dies"
|
| 49 |
+
tm = TransformerMatcher("roberta-large")
|
| 50 |
scores = tm.get_scores(reference_answer, candidate_answer, question)
|
| 51 |
match_result = tm.transformer_match(reference_answer, candidate_answer, question)
|
| 52 |
print("Score: %s; CF Match: %s" % (scores, match_result))
|