smartschat / cort

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

`CoNLLDocument.document_table` is changed in `CoNLLDocument.get_string_representation` #22

Open MPvHarmelen opened 6 years ago

MPvHarmelen commented 6 years ago

Because CoNLLDocument.document_table is a (mutable) list of lists, line 531 also changes the original table, because it is not copied in the following line:

https://github.com/smartschat/cort/blob/c637594b57ab9f556a236bd94fb2b6c75ac4e550/cort/core/documents.py#L528