Instructions to use krotima1/AlignScoreCS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use krotima1/AlignScoreCS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="krotima1/AlignScoreCS")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("krotima1/AlignScoreCS") model = AutoModelForSequenceClassification.from_pretrained("krotima1/AlignScoreCS") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -17,8 +17,11 @@ binary classification and ternary classification.
|
|
| 17 |
|
| 18 |
# Usage
|
| 19 |
```python
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
```
|
| 24 |
|
|
|
|
| 17 |
|
| 18 |
# Usage
|
| 19 |
```python
|
| 20 |
+
# Assuming you copied the attached Files_and_versions/AlignScore.py file for ease of use in transformers.
|
| 21 |
+
from AlignScoreCS import AlignScoreCS
|
| 22 |
+
alignScoreCS = AlignScoreCS.from_pretrained("krotima1/AlignScoreCS")
|
| 23 |
+
# put the model to cuda to accelerate
|
| 24 |
+
print(alignScoreCS.score(context="This is context", claim="This is claim"))
|
| 25 |
|
| 26 |
```
|
| 27 |
|