en-setting-classifier

Sentence-level classifier for the representation of space in English narrative prose. Fine-tuned from FacebookAI/roberta-base.

English counterpart to katrohrb/de-setting-classifier; both models use the same five categories and the same label encoding.

Categories

Label Description
action_space Space registered through a character's movement and direct physical contact
visual_space Space as perceived by a character from a distance
perceived_space Space as it carries mood and atmosphere
descriptive_space Things and objects in space, without reference to a character
no_space No spatial reference

Label ids: 0 perceived_space, 1 action_space, 2 visual_space, 3 descriptive_space, 4 no_space (stored in config.json as id2label).

Usage

from transformers import AutoTokenizer, AutoModelForSequenceClassification
import torch

name = "katrohrb/en-setting-classifier"
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForSequenceClassification.from_pretrained(name).eval()

sentence = "He walked through the door and shut it behind him."
with torch.no_grad():
    probs = model(**tok(sentence, return_tensors="pt")).logits.softmax(-1)[0]
print(model.config.id2label[int(probs.argmax())])
# โ†’ action_space

Or with a pipeline:

from transformers import pipeline

clf = pipeline("text-classification", model="katrohrb/en-setting-classifier")
clf("From the hilltop she could see the whole valley spread out below.")
# โ†’ [{'label': 'visual_space', 'score': 0.87}]

Citation

Rohrbacher, K., Nieth, B., Salin, E., Eskofier, B., Mahlberg, M. (2026). How LLMs Build Fictional Worlds: Measuring Setting and Narrative Space in AI-Generated Creative Storytelling. Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing (EMNLP). To appear. Preprint: https://doi.org/10.48550/arXiv.2609.02482

Downloads last month
30
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for katrohrb/en-setting-classifier

Finetuned
(2355)
this model