Download README.md from MVPRM/clair: direct link, hf CLI and curl.
- Browser
- Download file 1.73 kB
-
https://huggingface.co/spaces/MVPRM/clair/resolve/main/README.md
- Command line
-
hf download hf://spaces/MVPRM/clair/README.md
-
curl -L -o README.md https://huggingface.co/spaces/MVPRM/clair/resolve/main/README.md
title: CLAIR
emoji: ⚖️
colorFrom: indigo
colorTo: blue
sdk: docker
app_port: 8000
pinned: false
license: mit
short_description: Search Terms-of-Service clauses and flag unfair ones
CLAIR: Clause Intelligence and Retrieval
Describe a Terms-of-Service clause in your own words, and CLAIR finds similar sentences in 50 real Terms of Service (9,414 sentences from the CLAUDETTE corpus). Every result shows the contract it came from. An optional classifier (TF-IDF + logistic regression) flags clauses as potentially unfair.
- UI: this page
- API docs:
/docs(OpenAPI), with the endpointsPOST /search,POST /classify,GET /readyandGET /health - Source code, evaluation and technical report: https://github.com/mvprm/clair
The served backend is BM25. It was chosen over MiniLM and CONTRACTS-BERT by a pre-registered selection rule plus a production gate, evaluated on contract-disjoint splits. See the GitHub repository for the full method and results.
The classifier predicts the CLAUDETTE dataset's annotations. It is not legal advice or a legal determination. Search scores rank results and are not probabilities.
This Space is deployed automatically from the GitHub repository's main branch.
The free hardware sleeps when the Space is idle, so the first request may take up to a minute.
Data
CLAUDETTE corpus: M. Lippi, P. Pałka, G. Contissa, F. Lagioia, H.-W. Micklitz, G. Sartor, P. Torroni. CLAUDETTE: an Automated Detector of Potentially Unfair Clauses in Online Terms of Service. Artificial Intelligence and Law, 2019. arXiv:1805.01217
The code is released under the MIT License. The data remains under its original terms.