Downloads · 30 days
22
1% of all-time downloads
PaDaS-Lab/privacy-policy-relation-extraction
privacy-policy-relation-extraction is a text classification model from PaDaS-Lab. 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.
Downloads · 30 days
22
1% of all-time downloads
All-time downloads
1.8K
Public
Parameters
139M
2.2 GB on disk
Likes
4
Public
Click a slice to open those files.
.safetensors557 MB · 100%
From the Hugging Face model README
from transformers import pipeline
pipe = pipeline("text-classification", model="PaDaS-Lab/privacy-policy-relation-extraction", return_all_scores=True)
example = "We store your basic account information, including your name, username, and email address until you ask us to delete them."
results = pipe(example)
threshold = 0.5
print([result for result in results[0] if result['score'] >= threshold])
