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