This is a fine tuned roberta-base model for detecting whether paragraphs drawn from ethnographic source material are about 'Political Organization and Behavior'.
The easiest way to use this model at inference time is with the HF pipelines API.
1from transformers import pipeline
2
3classifier = pipeline("text-classification", model="gptmurdock/classifier-main_subjects_politics")
4classifier("Example text to classify")
...
...
We use a 60-20-20 train-val-test split, and fine-tuned roberta-base for 5 epochs (lr = 2e-5, batch size = 40).
Evals on the test set are reported below.