spraakbanken / sparv-pipeline

Språkbanken's text analysis tool
https://spraakbanken.gu.se/sparv
MIT License
25 stars 6 forks source link

`io.read_annotation_attributes` should not make Sparv crash when trying to read attributes that are not present in all files #154

Open anne17 opened 2 years ago

anne17 commented 2 years ago

Maybe by introducing a ignore_missing flag that leads to the creation of a list with empty strings (or a dummy value like "annotation missing") if the attribute is missing?

https://spraakbanken.slack.com/archives/D45TBNZC7/p1632404906108000