Optimizing Byte Pair Encoding Tokenization for South African Languages

In this paper, we introduce an Optimized Byte Pair Encoding (OBPE) tokenizer where the algorithm is optimized for the South African languages, including Sesotho, Setswana, Xhosa, Xitsonga, and Zulu. Our approach is tailored to handle the characteristics of multilingual datasets and language complexity, especially regarding the morphological richness of South African Languages. Firstly, we incorporate language-specific tokens to facilitate learning of language-specific context and differentiation when training the algorithm on multilingual corpora. Secondly, we modify the existing BPE algorithm to add common words derived from the multilingual corpus to the initial vocabulary, which helps to reach convergence faster and possibly get more meaningful or accurate tokenization. Thirdly, we introduce a common words parameter that allows the user to specify the number of common words derived from the corpus to be used for the initial vocabulary of the algorithm. Our OBPE achieved accuracy of 96% compared to the traditional BPE (87-88%).

Authors

Institutions

Publication Details

Published
2024-12-06
DOI
https://doi.org/10.1109/aeis65978.2024.00022
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing Byte Pair Encoding Tokenization for South African Languages

Peter Olukanmi, Siphiwe Phil Simelane
1 links
Natural Language Processing Techniques
article

Optimizing Byte Pair Encoding Tokenization for South African Languages

Peter Olukanmi, Siphiwe Phil Simelane
article en

Abstract

In this paper, we introduce an Optimized Byte Pair Encoding (OBPE) tokenizer where the algorithm is optimized for the South African languages, including Sesotho, Setswana, Xhosa, Xitsonga, and Zulu. Our approach is tailored to handle the characteristics of multilingual datasets and language complexity, especially regarding the morphological richness of South African Languages. Firstly, we incorporate language-specific tokens to facilitate learning of language-specific context and differentiation when training the algorithm on multilingual corpora. Secondly, we modify the existing BPE algorithm to add common words derived from the multilingual corpus to the initial vocabulary, which helps to reach convergence faster and possibly get more meaningful or accurate tokenization. Thirdly, we introduce a common words parameter that allows the user to specify the number of common words derived from the corpus to be used for the initial vocabulary of the algorithm. Our OBPE achieved accuracy of 96% compared to the traditional BPE (87-88%).

University of Johannesburg (ZA)
Openalex Percentile: Top 72%
Natural Language Processing Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.