r/compling • u/Mateoling05 • May 14 '23
POS tagging
I'm looking into creating a corpus of a minority language, and from what I understand, it would be helpful to manually tag a data set so that I can train a POS tagger. I have seen a lot of descriptions of how to do this but one thing I don't seem to find clearly mentioned is what the manually tagged data set should look like preprocessing-wise.
Any tips on where to start? Do things need to be in a CSV file, and if so, do the columns need to be set up a certain way? Is there a specific format to manually tagging the tokens in a sentence so that the tokens are stored and readable with their tags?
I'm a linguist but just now getting into the NLP side of things to aid my research agenda. I've spent hours going down the rabbit hole and hoping for some advice to get me going in the right direction again. I appreciate you all in advance!
5
u/leondz May 14 '23
Yeah
Use universal dependency tags to get started with
Put one token (defined how you like if there isn't a standard for that lang, but be consistent) per line, then a tab, then the tag
Put a blank line at sentence end as a break between sentences
This is CONLL format
3
u/[deleted] May 14 '23
Be aware that creating a data-set to train a POS tagger may require a significant amount of data, even for older methods, like Markovian methods - depending on the language of course. If you are in academia, this is where MA/advanced BA students come in handy.
If I may, I suggest thinking about leveraging an existing POS tagger for a relative language of the one you're studying, and thinking about a way to bootstrap the process: Use the existing model first, then just go over fixing issues, instead of starting from scratch. There are other ways to create a tagged dataset in a doubly-low resource setting (both in corpus and in human annotators). Examples:
Probably outdated:
Bootstrapping a Multilingual Part-of-speech Tagger in One Person-day (Cucerzan and Yarowsky, 2002)
Methodology and resource management for POS tagging in low-resource settings:
Real-World Semi-Supervised Learning of POS-Taggers for Low-Resource Languages (Garrette, Mielens and Baldridge, 2013)
Learning a Part-of-Speech Tagger from Two Hours of Annotation (Mielens and Baldrige, 2013)
More modern method:
Character-level Supervision for Low-resource POS Tagging (Kann et al., 2018)
Good luck!