Display only files with errors
minhlab opened this issue · comments
Minh Le commented
Is it possible to visualize only files that contain at least one error? I have a large corpus and after filtering there are only a couple hundreds of errors. So I find myself looking at clean files most of the time (i.e. no annotations besides mention spans).
Sebastian Martschat commented
You need to modify cort/analysis/visualization.py.
I've created a gist for the modified file: https://gist.github.com/smartschat/85a892c1752129d9f553d716abe9cb1b
Does it work for you?
Minh Le commented
Sebastian Martschat commented
I've updated the gist, it should work now.
Minh Le commented
Thanks, it's beautiful!
Sebastian Martschat commented
You're welcome! I'll add this to cort's main branch later (with proper documentation and logging).