GitHub

Run it yourself

Do not take our word for any of this. The scoring code is public under Apache-2.0 and the results under CC BY 4.0. Clone it, run any tool, compare with this page.

1

Clone

git clone https://github.com/opamiai/opamibench
cd opamibench
2

Score our run

python -m opamibench score predictions/*.jsonl
python -m unittest discover tests
# OpamiBench EN only
python -m opamibench score predictions/*.jsonl --sets gen_en_es_fr_pt_230 gen_en_es_fr_pt_96 ai4p128 clean16 --lang en

Python 3.10 or later, standard library only. About ten seconds. Rescoring predictions/ must give results/published.json.

3

Run a tool again

The first command downloads the two court sets from HUDOC, the Court's database, into the git-ignored data/hudoc/. Run it once.

python -m opamibench fetch-court
pip install -e .[presidio]
python -m opamibench run presidio -o runs/presidio.jsonl
python -m opamibench score runs/presidio.jsonl predictions/presidio.jsonl

The repository holds the OpamiBench documents, the scorer, the settings of every tool we ran and the raw output of every run. For the two court sets, it holds our labels and the HUDOC number of each judgment, and the judgment texts are fetched from HUDOC with fetch-court. What each tool needs to install, and its keys, is in the repository README. Your own tool needs one Python function. Cloud APIs need your own keys and are billed to you. The four public benchmarks are downloaded from their makers, since the repository holds no copy, and then read by the repository's --public flag.

github.com/opamiai/opamibenchScoring code · Apache-2.0 · results CC BY 4.0

Test Opami Protect

Run protect-v1 on your own texts. Ask for a key, then publish what you find, with no review by us.

Ask for a key