coli-saar / alto

Alto, the Algebraic Language Toolkit
Other
16 stars 2 forks source link

Read instance comments #1

Open akoehn opened 9 years ago

akoehn commented 9 years ago

Original report by Alexander Koller (Bitbucket: akoller, GitHub: alexanderkoller).


The Instance class in the corpus package supports optional comments. These can currently be set programmatically, and will be written into the corpus file correctly. But when reading the corpus, they are simply skipped as comment lines.

Change this so the comments before each instance in the corpus are read into the comment field of the Instance object when reading a corpus.