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 |
|