Instructions to use PaDaS-Lab/privacy-policy-relation-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PaDaS-Lab/privacy-policy-relation-extraction with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="PaDaS-Lab/privacy-policy-relation-extraction")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("PaDaS-Lab/privacy-policy-relation-extraction") model = AutoModelForSequenceClassification.from_pretrained("PaDaS-Lab/privacy-policy-relation-extraction") - Notebooks
- Google Colab
- Kaggle
Use:
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])
Performance:
- Downloads last month
- 281
