Spaces:
Running
Running
Download review_table_config.py from solidprivacy/scrub: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/solidprivacy/scrub/resolve/22c81f53660179e57d52993eec9a9676bb13d2ab/review_table_config.py
- Command line
-
hf download hf://spaces/solidprivacy/scrub@22c81f53660179e57d52993eec9a9676bb13d2ab/review_table_config.py
-
curl -L -o review_table_config.py https://huggingface.co/spaces/solidprivacy/scrub/resolve/22c81f53660179e57d52993eec9a9676bb13d2ab/review_table_config.py
1.24 kB
| """Column configuration for the Scrub review table. | |
| The main editing table should stay readable for legal users. Technical audit | |
| fields remain available, but are separated from the primary edit workflow. | |
| """ | |
| MAIN_REVIEW_COLUMNS = [ | |
| "include", | |
| "remember", | |
| "review_status_label", | |
| "find", | |
| "replace_with", | |
| "type_label", | |
| "confidence", | |
| ] | |
| TECHNICAL_REVIEW_COLUMNS = [ | |
| "source_label", | |
| "reason", | |
| "context", | |
| "entity_type", | |
| "score", | |
| "source", | |
| "review_status", | |
| "review_order", | |
| ] | |
| TECHNICAL_DISPLAY_COLUMNS = [ | |
| "review_status_label", | |
| "find", | |
| "type_label", | |
| "source_label", | |
| "reason", | |
| "context", | |
| "entity_type", | |
| "score", | |
| "source", | |
| ] | |
| def existing_columns(columns, available_columns): | |
| available = set(available_columns or []) | |
| return [column for column in columns if column in available] | |
| def main_review_columns(available_columns): | |
| return existing_columns(MAIN_REVIEW_COLUMNS, available_columns) | |
| def technical_display_columns(available_columns): | |
| return existing_columns(TECHNICAL_DISPLAY_COLUMNS, available_columns) | |
| def hidden_technical_columns(available_columns): | |
| return existing_columns(TECHNICAL_REVIEW_COLUMNS, available_columns) | |