Skip to content

Latest commit

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

duncode

an efficient universal character encoder, implement of paper ["Duncode Characters Shorter"](./Duncode Characters Shorter.pdf).

corpus

https://github.com/laohur/wiki2txt

v0

cpp

v1

java

v2

  • go1: default Duncoder
  • go2: is another style of Duncode with different zone distribution, worse than go1

performance of encoders

v1

corpuslocal encoderlocal (MB)UTF-8 (MB)Duncode (MB)UTF-8/ localDuncode/ local
enwikisourceISO 8859-11,5581,5641,5621.001.00
frwikisourceISO 8859-11541591581.031.03
betawikiversityISO 8859-17981.271.17
zhwikiGB 180309171,2949551.411.04
zhwikisourceGB 180302,0883,0952,1731.481.04
jawikiJIS X 0208–19901,9302,7871,9521.441.01
jawikisourceJIS X 0208–19905276531.471.02
arwikiISO 8859-67621,2971,0861.701.43
arwikisourceISO 8859-64968867381.791.49
ruwikiISO 8859-53,1565,5664,5461.761.44
ruwikisourceISO 8859-56241,0758901.721.43

v2

languagewiki_file_1mn_charsn_bytes (utf8)n_bytes (duncode)n_bytes/n_chars (utf8)n_bytes/n_chars (duncoder)utf8/duncode (size)
Englishen.txt1,054,0021,066,4741,061,9491.011.01100.43%
Frenchfr.txt1,054,0651,096,7211,094,0851.041.04100.24%
Arabicar.txt1,103,3081,855,1641,462,8901.681.33126.82%
Russianru.txt1,049,3371,821,5541,398,2751.741.33130.27%
Chinesezh.txt1,052,6492,420,1131,740,4092.301.65139.05%
Japaneseja.txt1,051,1132,689,0171,872,5612.561.78143.60%
Koreanko.txt1,048,7592,103,6492,087,0292.011.99100.80%
Abkhazianab.txt1,049,1301,846,1441,411,2191.761.35130.82%
Burmesemy.txt1,052,8902,820,6471,456,7992.681.38193.62%
Central Khmerkm.txt1,081,2582,890,3591,516,2272.671.40190.63%
Tibetanbo.txt1,053,0383,108,0292,080,2942.951.98149.40%
Yorubayo.txt1,050,9961,230,9271,193,0981.171.14103.17%

Citation

@article{Xue2023DuncodeCS,
title={Duncode Characters Shorter},
author={Changshan Xue},
journal={ArXiv},
year={2023},
volume={abs/2307.05414},
url={https://api.semanticscholar.org/CorpusID:259766322}
}

License

Anti-996 License

About

An efficient text encoder

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages