Duncode Characters Shorter

Changshang Xue
7/11/2023
cs.CLcs.DBcs.IR

Official code: laohur/duncode (2 stars, Java, last commit 2024-07-20). 1 more implementation below.

Abstract

This paper investigates the employment of various encoders in text transformation, converting characters into bytes. It discusses local encoders such as ASCII and GB-2312, which encode specific characters into shorter bytes, and universal encoders like UTF-8 and UTF-16, which can encode the complete Unicode set with greater space requirements and are gaining widespread acceptance.

Show full abstract

Other encoders, including SCSU, BOCU-1, and binary encoders, however, lack self-synchronizing capabilities. Duncode is introduced as an innovative encoding method that aims to encode the entire Unicode character set with high space efficiency, akin to local encoders. It has the potential to compress multiple characters of a string into a Duncode unit using fewer bytes. Despite offering less self-synchronizing identification information, Duncode surpasses UTF8 in terms of space efficiency. The application is available at \url{https://github.com/laohur/duncode}. Additionally, we have developed a benchmark for evaluating character encoders across different languages. It encompasses 179 languages and can be accessed at \url{https://github.com/laohur/wiki2txt}.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
laohur/duncodeOfficial2Java–2024-07-20
laohur/wiki2txtOfficial0Python–2023-12-19
laohur/duncodeOfficial100%

An efficient text encoder

20Java, C++Oct 8, 20202 years ago
laohur/wiki2txtOfficial100%

convert wiki.dumps to txt

00PythonJun 7, 20202 years ago

Similar Papers

Cite this paper

@article{xue2023duncode,
  title  = {Duncode Characters Shorter},
  author = {Changshang Xue},
  year   = {2023},
  eprint = {2307.05414},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.05414v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.05414.svg)](https://codeofpaper.com/paper/2307.05414)

Discussion