Rename narrative-space-classifier -> en-setting-classifier in card
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ widget:
|
|
| 21 |
example_title: no_space
|
| 22 |
---
|
| 23 |
|
| 24 |
-
#
|
| 25 |
|
| 26 |
Sentence-level classifier for the representation of space in English narrative prose.
|
| 27 |
Fine-tuned from [`FacebookAI/roberta-base`](https://huggingface.co/FacebookAI/roberta-base).
|
|
@@ -58,7 +58,7 @@ inter-annotator agreement to be added.⟩
|
|
| 58 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 59 |
import torch
|
| 60 |
|
| 61 |
-
name = "katrohrb/
|
| 62 |
tok = AutoTokenizer.from_pretrained(name)
|
| 63 |
model = AutoModelForSequenceClassification.from_pretrained(name).eval()
|
| 64 |
|
|
@@ -74,7 +74,7 @@ Or with a pipeline:
|
|
| 74 |
```python
|
| 75 |
from transformers import pipeline
|
| 76 |
|
| 77 |
-
clf = pipeline("text-classification", model="katrohrb/
|
| 78 |
clf("From the hilltop she could see the whole valley spread out below.")
|
| 79 |
# → [{'label': 'visual_space', 'score': 0.87}]
|
| 80 |
```
|
|
|
|
| 21 |
example_title: no_space
|
| 22 |
---
|
| 23 |
|
| 24 |
+
# en-setting-classifier
|
| 25 |
|
| 26 |
Sentence-level classifier for the representation of space in English narrative prose.
|
| 27 |
Fine-tuned from [`FacebookAI/roberta-base`](https://huggingface.co/FacebookAI/roberta-base).
|
|
|
|
| 58 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 59 |
import torch
|
| 60 |
|
| 61 |
+
name = "katrohrb/en-setting-classifier"
|
| 62 |
tok = AutoTokenizer.from_pretrained(name)
|
| 63 |
model = AutoModelForSequenceClassification.from_pretrained(name).eval()
|
| 64 |
|
|
|
|
| 74 |
```python
|
| 75 |
from transformers import pipeline
|
| 76 |
|
| 77 |
+
clf = pipeline("text-classification", model="katrohrb/en-setting-classifier")
|
| 78 |
clf("From the hilltop she could see the whole valley spread out below.")
|
| 79 |
# → [{'label': 'visual_space', 'score': 0.87}]
|
| 80 |
```
|