arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.05414cs.CLcs.DBcs.IR
收藏

Duncode:更短的字符编码

Duncode Characters Shorter

Changshang Xue

AI总结:

本文提出Duncode编码方法,旨在以接近局部编码器的空间效率编码完整Unicode字符集,并开发了覆盖179种语言的字符编码评估基准。

摘要:

本文研究了在文本转换中采用的各种编码器,将字符转换为字节。文中讨论了局部编码器,如ASCII和GB-2312,它们将特定字符编码为更短的字节;以及通用编码器,如UTF-8和UTF-16,它们能够编码完整的Unicode字符集,但需要更大的空间,并且正获得广泛接受。然而,其他编码器,包括SCSU、BOCU-1和二进制编码器,缺乏自同步能力。Duncode作为一种创新的编码方法被提出,旨在以高空间效率编码整个Unicode字符集,类似于局部编码器。它有潜力将字符串中的多个字符压缩为一个使用更少字节的Duncode单元。尽管提供的自同步识别信息较少,Duncode在空间效率上超越了UTF8。该应用可在\url{https://github.com/laohur/duncode}获取。此外,我们还开发了一个用于评估不同语言字符编码器的基准。它涵盖179种语言,可在\url{https://github.com/laohur/wiki2txt}访问。

英文摘要:

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. 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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑