save right and wrong file in test_regex.py and improve accuracy stats

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
data, security

Research direction

Start by reading and running test_regex.py to trace how the right and wrong variables, rule_id, rule_group, and original regex are produced. Done means the results are saved in JSON, rule identifiers remain tied to their source regexes, and statistics are printed per rule_id, per rule_group, and overall.

Written by the indexing model from the issue text.

Description

Save away the "right" and "wrong" variables returned in test_regex.py in a json file. Also, tie back the rule_id/rule_group numbers back to the original regex. Print some stats, by rule_id, rule_group and overall regex.

Dominant language
Python
Stars
9
Forks
6
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bigscience-workshop/pii_processing

All issues in bigscience-workshop/pii_processing

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.