Downloads · 30 days
14
3% of all-time downloads
biglam/autotrain-beyond-the-books
autotrain-beyond-the-books is a text classification model from biglam. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
- Problem type: Binary Classification - Model ID: 64771135885 - CO2 Emissions (in grams): 0.2641
Downloads · 30 days
14
3% of all-time downloads
All-time downloads
523
Public
Parameters
109M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.onnx438 MB · 33%
How the weights are stored.
F32109M · 100%
From the Hugging Face model README
This model is trained on a dataset of historical documents related to Jim Crow laws in the United States. The model was developed by drawing on the expertise of scholars and analyzing legal texts from various states, with the goal of identifying similarities between different states' Jim Crow laws. As such, this model may be useful for researchers or policymakers interested in understanding the history of racial discrimination in the US legal system.
The easiest way to use this model locally is via the Transformers library pipelines for inference.
Once you have installed transformers, you can run the following code. This will download and cache the model locally and allow you to make predictions on text input.
from transformers import pipeline
classifier = pipeline('text-classification', "biglam/autotrain-beyond-the-books")
classifier(text)
This will return predictions in the following format:
[{'label': 'no_jim_crow', 'score': 0.9718555212020874}]