A text classification model fine-tuned on
biglam/on_the_books
to identify Jim Crow laws in historical US legislative text.
Model Description
This model classifies sections of US state legislation as either
Jim Crow laws
(discriminatory laws targeting racial minorities) or
non-Jim Crow laws
. It was fine-tuned from
answerdotai/ModernBERT-base
, which supports up to 8,192 tokens of context.
Performance
Evaluated on a stratified 15% held-out test set (268 samples):
Metric
Score
F1
0.9487
Accuracy
0.9701
Precision
0.9367
Recall
0.9610
Training Details
Base model
: answerdotai/ModernBERT-base (149M parameters)
from transformers import pipeline
classifier = pipeline("text-classification", model="davanstrien/jim-crow-laws-ml-agent")
text = "The Commission shall provide separate sleeping quarters and separate eating space for the different races."
result = classifier(text)
print(result)
# [{'label': 'jim_crow', 'score': 0.99...}]
Dataset
The
On the Books
dataset contains 1,785 sections of North Carolina state legislation from the Jim Crow era, annotated by historians as either Jim Crow laws or non-Jim Crow laws. The dataset is imbalanced: 71% non-Jim Crow, 29% Jim Crow.
Labels
no_jim_crow
(0): Non-discriminatory legislation
jim_crow
(1): Jim Crow law (racially discriminatory legislation)
Limitations
Trained only on North Carolina legislation; may not generalize to other states
Historical language patterns may not transfer to modern legal text
The model may be biased toward the specific annotation criteria used in the dataset
Runs of davanstrien jim-crow-laws-ml-agent on huggingface.co
4
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About jim-crow-laws-ml-agent huggingface.co Model
jim-crow-laws-ml-agent huggingface.co is an AI model on huggingface.co that provides jim-crow-laws-ml-agent's model effect (), which can be used instantly with this davanstrien jim-crow-laws-ml-agent model. huggingface.co supports a free trial of the jim-crow-laws-ml-agent model, and also provides paid use of the jim-crow-laws-ml-agent. Support call jim-crow-laws-ml-agent model through api, including Node.js, Python, http.
jim-crow-laws-ml-agent huggingface.co is an online trial and call api platform, which integrates jim-crow-laws-ml-agent's modeling effects, including api services, and provides a free online trial of jim-crow-laws-ml-agent, you can try jim-crow-laws-ml-agent online for free by clicking the link below.
davanstrien jim-crow-laws-ml-agent online free url in huggingface.co:
jim-crow-laws-ml-agent is an open source model from GitHub that offers a free installation service, and any user can find jim-crow-laws-ml-agent on GitHub to install. At the same time, huggingface.co provides the effect of jim-crow-laws-ml-agent install, users can directly use jim-crow-laws-ml-agent installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
jim-crow-laws-ml-agent install url in huggingface.co: