Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

Anaphase21/Probing-language-models-for-syntactic-and-semantic-knowledge-on-African-languages

Domain:

natural language processing

Record type:

paper
Creator:
Ana
Host:
Master's project where I probe language models for syntactic and semantic knowledge on African languages. # Probing-language-models-for-syntactic-and-semantic-knowledge-on-African-languages In this repo, I put my code, which I modified from another repo in order to run my experiments; a notebook of all the experiments; and a pdf document of my master's mini-thesis for this project. The code for this project was adapted from probing. The instructions remain the same as follows: # Probing Probing is a popular evaluation method for blackbox language models. In the simplest case, the representation of a token or a sentence is fed to a small classifier that tries to predict some linguistic label. This setup is exposed to a small amount of training data but only the classifier parameters are trained, the blackbox model's parameters are kept fixed. This library was developed for probing contextualized language models such as BERT. # Our papers that use this library This framework was used in the following projects: ## Subword Pooling Makes a Difference EACL2021 paper Github repository ## Evaluating Contextualized Language Models for Hungarian Paper Github repository ## Evaluating Transferability of BERT Models on Uralic Languages Paper Github repository # Probing types and tasks It supports two types of evaluation. ## Morphology probing Probe a single word in its sentence context, such as deriving the tense of the English word cut in these examples, where context clearly plays an important role: I cut my hair yesterday. Make sure you cut the edges. ### Data format Morphology probing uses TSV files as input. One line represents one sample. Each line has 4 tab-separated columns: 1. the full sentence 2. the target word 3. the index of the target word when using space tokenization 4. the label. The above two examples would look like this: ``` I cut my hair yesterday. cut 1 Past Make sure you cut the edges. cut 3 Pres ``` In **tagging tasks** each line represents a word and sentence boundaries are denoted by empty line …

Visit

github.com

Licenses

MIT

Similar

Probing Gender Bias in Masked Language Models for Low-Web Data LanguagesControlled Evaluation of Syntactic Knowledge in Multilingual Language ModelsControlled Evaluation of Syntactic Knowledge in Multilingual Language ModelsSyntactic Inductive Bias in Transformer Language Models: Especially Helpful for Low-Resource Languages?Encoder Language Models for Southern African LanguagesPytorch Language Models trained on South African Languages

Probing Gender Bias in Masked Language Models for Low-Web Data Languages

Low-resourced languages are increasingly included in large multilingual models. While including more

Controlled Evaluation of Syntactic Knowledge in Multilingual Language Models

Language models (LMs) are capable of acquiring elements of human-like syntactic knowledge. Targeted

Controlled Evaluation of Syntactic Knowledge in Multilingual Language Models

This benchmark is made up of "targeted syntactic evaluation tests for three low-resource languages (

Syntactic Inductive Bias in Transformer Language Models: Especially Helpful for Low-Resource Languages?

A line of work on Transformer-based language models such as BERT has attempted to use syntactic indu

Encoder Language Models for Southern African Languages

A collection of encoder-based models trained on Southern African languages, utilizing langu

Pytorch Language Models trained on South African Languages

Pytorch Language Models trained on the South African isiZulu and Sepedi languages using the NCHLT an