comphist / cora

A web-based, token-level annotation tool for non-standard language data
http://www.linguistics.rub.de/comphist/resources/cora/
MIT License
10 stars 6 forks source link

Make comments an annotation layer #41

Closed mbollmann closed 7 years ago

mbollmann commented 9 years ago

Originally reported by: Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann)


Comments (of the type that is displayed in the editor) are currently treated differently from other annotations, although logically they behave in the same way: they are attached to mods, they appear in the export just like any other annotation, etc.

Consequently, they should be treated as such internally, i.e.:

The change is facilitated by the fact that the JavaScript side already treats "comment" like any other tagset; the main change would be on the server-side code.


mbollmann commented 9 years ago

Original comment by Marcel Bollmann (Bitbucket: mbollmann, GitHub: mbollmann):


Convert internal comments to annotations; resolve #38

This change converts internal comments, previously stored in table comment with comment_type="C", to a new annotation layer with class="comment".

The change gets rid of various comment-specific code, since these comments are now treated like any other annotation. It is now possible to have texts with a comment column, if desired.

In XML, comments are now exported as instead of

..., but for importing, the old representation is still accepted.