It’s the end of the semester again, and now that marking is done it is also time to update the taggedPBC. Last year, after releasing this dataset of POS-tagged data in nearly 2000 languages on Github, I also began using it for student projects in my introductory computational linguistics course. I have more details about this in another blog post (and see here for last semester’s update), but the main goal of the projects is for students to improve their Python programming abilities while contributing to annotated data for low-resource languages.
Student project updates
The first project of the course is individual - each student chooses a different language from the taggedPBC and works on annotating roughly 21 verses that were preselected as being representative of the available POS tags in the overall dataset. The goal is to find traditional sources of information about the languages and use manual or semi-automated means to inject that information into a gold-standard set of POS-tagged verses. This semester, after assessing the results, 18 of the selected languages were deemed to have been annotated at high-enough quality to include in the taggedPBC.
The second project of the semester is group-based, and focus on developing automatic POS taggers that achieve decent accuracy on a hold-out set of data. Students have the option of choosing either a low-resource language that they worked on in the first project, or choosing a language in the taggedPBC that has more POS-tagged resources available, such as from the Universal Dependencies Treebanks (UDT) project. If they choose the former, the requirement is to annotate an additional 100 (or so) pre-selected verses to use as training, with the initial gold-standard tagged data as the held-out validation set. If they choose the latter, they are expected to use a hold-out set from the training data as validation.
For project 2, students are allowed to use multiple means for developing their POS tagger. They can use rule-based and/or statistical approaches, as well as more advanced machine learning techniques. I provide some initial code that demonstrates using/training the NLTK naive bayes model with features, but some of the approaches have been much more sophisticated. If the resulting model achieves decent accuracy on the validation set, students will use the model to retag the complete taggedPBC corpus for that language, and this will be used to update the taggedPBC Github repo. This semester, after assessment, there were 2 languages that were able to be retagged completely and uploaded. An additional 4 languages were highlighted as having existing data online that could be used to develop better POS taggers, and so these were flagged as issues for future evaluation (if you are inclined, feel free to work on them).
I’ve found that these two projects provide a good balance, integrating traditional linguistic knowledge (gathering data, researching languages, understanding word classes) with practical dataset development (what kind of data do you need to build an effective pipeline for training), and scaling up to an introduction to statistical methods and machine learning (what tools are available to get a computer to infer relations). Students learn how Python (and computational approaches more generally) can support linguistic enquiry as well as how targeted domain knowledge is necessary for developing effective automated processes. There is a clear foundation that anyone can learn, and the more adept students can challenge themselves to apply more complex techniques.
Additional updates
There are other updates to the
taggedPBC as well, the primary one
being 3 languages fully glossed by Wordsburg, a
translation provider. The languages in question
are Malayalam (mal), Marathi
(mar), and Oriya
(ory). Once the glosses were
provided, the resulting verses were
automatically tagged using the POS tags from the
English glosses via SpaCy.
I am currently working with Eugene Chan, a specialist on numerals of the world’s languages, to check the numeral annotations for 1,486 languages. This will be used to update the annotations for those languages, which I expect to be finalized in the new year.
Final thoughts
There are some exciting potential directions for expanding this dataset. I have already shown how corpus-derived information can provide a means of classifying languages in terms of word order, and giving insight into mental processes that drive language change. I am currently exploring ways to add phonological information, such as by integrating phonotactic rules for each language. If you have ideas for further development, do get in touch or open an issue or pull request!