smartschat / cort

A toolkit for coreference resolution and error analysis.
MIT License
129 stars 34 forks source link

Display only files with errors #15

Closed minhlab closed 7 years ago

minhlab commented 7 years ago

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).

smartschat commented 7 years ago

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?

minhlab commented 7 years ago

No, it creates an empty window :-(

screen shot 2017-05-01 at 11 52 23
smartschat commented 7 years ago

I've updated the gist, it should work now.

minhlab commented 7 years ago

Thanks, it's beautiful!

smartschat commented 7 years ago

You're welcome! I'll add this to cort's main branch later (with proper documentation and logging).