katrohrb commited on
Commit
74ae435
·
verified ·
1 Parent(s): 5c79ead

Rename narrative-space-classifier -> en-setting-classifier in card

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -21,7 +21,7 @@ widget:
21
  example_title: no_space
22
  ---
23
 
24
- # narrative-space-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,7 +58,7 @@ inter-annotator agreement to be added.⟩
58
  from transformers import AutoTokenizer, AutoModelForSequenceClassification
59
  import torch
60
 
61
- name = "katrohrb/narrative-space-classifier"
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/narrative-space-classifier")
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
  ```