Closed roger-mahler closed 1 year ago
Problem derives from breaking changes in common code for plain text and tagged text extraction.
Shared logic contains tagged-corpus specific code (assumes source folder contains a tagged corpus).
Resolved by creating TaggedCorpusSourceItem class derived from CorpusSourceItem.
https://github.com/welfare-state-analytics/pyriksprot/blob/bbb5d9b45a021bbb00eb3d91bbed99e17ef585ae/pyriksprot/corpus/corpus_index.py#L50
Problem derives from breaking changes in common code for plain text and tagged text extraction.
Shared logic contains tagged-corpus specific code (assumes source folder contains a tagged corpus).
Resolved by creating TaggedCorpusSourceItem class derived from CorpusSourceItem.
https://github.com/welfare-state-analytics/pyriksprot/blob/bbb5d9b45a021bbb00eb3d91bbed99e17ef585ae/pyriksprot/corpus/corpus_index.py#L50