smartschat / cort

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

error visualization problems #9

Closed isimova closed 8 years ago

isimova commented 8 years ago

Hello, I encounter a problem when trying to visualize a system's recall errors by type, as described in the documentation. My reference and system files are in conll, no errors are displayed when running the code, but the resulting html file doesn't display the document text and any fields in the left panel except for "Documents". When the jquery and jquery.jsPlumb imports in the html file are commented out, everything is correctly displayed (document text, left panel, and gold/system mention boundaries), but without the possibility to interact. Reproduced in the latest Firefox and chrome; python 2.7. The visualization of a document processed with cort-predict-raw seems to work fine. Thanks!

smartschat commented 8 years ago

It works fine for me (Chrome 53.0.2785.143 (64-bit), Python 2.7.12). Could you send me a minimal working example that reproduces the bug (including the HTML stuff and the conll files)?

isimova commented 8 years ago

I reproduced the issue with python3. Here are the input files, code, and resulting html. Thanks! visualization_problem.zip

smartschat commented 8 years ago

Thanks for reporting the bug! Apparently the punctuation mark "." in the document's name confuses jQuery. If I change all occurrences of ".xml" to "xml", the document is displayed as it should be.

Hence, as a fix, you should rename the document identifiers such that no "." is contained. I'll have a closer look into what other tokens could break the visualization and I'll fix cort accordingly.

isimova commented 8 years ago

Thanks, this does solve the problem.

smartschat commented 8 years ago

I close the issue as the workaround solves the problem.