seanghay's picture
Update README.md
97b3923 verified
---
license: cc-by-4.0
language:
- km
pretty_name: khmerfonts
dataset_info:
features:
- name: file_name
dtype: image
- name: text
dtype: string
---
## Dataset Info
**Total files**: 26,591 files == (`(num_fonts * num_sentences) - num_0_byte_fonts - num_error_image`)
**Total fonts**: 2,972 fonts
**Total sentences**: 10
## Dataset Creation Info
All images were downloaded from [khmerfonts.info](https://khmerfonts.info) by using a script below:
```python
with open("filelist.txt", "w") as outfile:
items = [
f"https://www.khmerfonts.info/preview.php?font={font + 1}&sample={sample + 1}\n\tout=khmerfonts-{font + 1}-{sample + 1}.png"
for font in range(2972) # maximum id at the moment
for sample in range(10)
]
outfile.write("\n".join(items))
```
Download all files using `aria2c`
```shell
aria2c -i filelist.txt -d data -j16
```
Find 0-byte files and delete
```shell
find data/ -size 0 -delete
```
```python
sentences = [
"αž‡αžΆαžαž·αž–αžΆαž›αž˜αž·αž“αžŠαžΉαž„αž‚αž½αžš αž‚αŸ’αž˜αžΆαž“αž‚αŸαžŸαž½αžšαžŸαŸ„αž€αž…αž„αŸ‹αž‡αžΆαž€αŸ‹ αž†αŸ’αž›αžΎαž™αž†αŸ’αž›αž„αž•αž„αžšαžΆαž€αŸ‹αž‘αžΆαž€αŸ‹ αž€αŸ’αž”αž½αž“αž αž·αž“αž›αž€αŸ’αžαžŽαŸαž’αŸ’αž›αžΆαž€αŸ‹αž›αžΎαžαŸ’αž›αž½αž“ αŸ”",
"αž…αž„αž’αŸ’αžœαžΈαž˜αž·αž“αž‡αžΆαž”αŸ‹αžŸαŸ’αž˜αžΎαžŸαž„αŸ’αžŸαžΆαžš αž€αžΆαžšαž’αŸ’αžœαžΈαž˜αž·αž“αžŸαŸ’αž˜αžΎαž€αžΆαžšαž”αŸ’αžšαžαž·αž”αžαŸ’αžαž· αžŸαŸ’αž„αžΆαžαŸ‹αž’αŸ’αžœαžΈαž˜αž·αž“αžŸαŸ’αž˜αžΎαž…αž·αžαŸ’αžαž’αžšαž αžαŸ’αž αž€αžΆαž…αž’αŸ’αžœαžΈαž˜αž·αž“αžŸαŸ’αž˜αžΎαž…αž·αžαŸ’αžαž–αžΆαž›αžΆ αŸ”",
"αž…αŸ†αžŽαŸαŸ‡αžœαž·αž‡αŸ’αž‡αžΆαž›αŸ„αž€αž…αŸ‚αž„αž…αžΆαžαŸ‹ αž‘αž»αž€αž‡αžΆαžŸαž˜αŸ’αž”αžαŸ’αžαž·αžŸαŸ†αž”αžΌαžšαž”αžΆαž“ αž‘αŸ„αŸ‡αž”αžΈαž€αŸ’αžšαž€αŸ’αžŸαžαŸ‹αž’αžαŸ‹αž”αŸ‰αž»αž“αŸ’αž˜αžΆαž“ αž‚αž„αŸ‹αžαŸ‚αž”αžΆαž“αž‚αŸ’αžšαžΆαž“αŸ‹αž’αžΆαžŸαŸ’αžšαŸαž™ αŸ”",
"αžˆαŸ’αž›αŸ„αŸ‡αž‚αŸ’αž“αžΆαž€αŸ’αž“αž»αž„αž‚αŸ’αžšαž½αžŸαžΆαžš αžŠαžΌαž…αžŸαŸ’αžšαžΆαžαž€αžΆαž™αžΆαž”αž„αŸ’αž αžΆαž‰αž‰αžΆαžαž· αžˆαŸ’αž›αŸ„αŸ‡αž‚αŸ’αž“αžΆαž€αŸ’αž“αž»αž„αžŸαž„αŸ’αž‚αž˜αž‡αžΆαžαž· αžŠαžΌαž…αž›αžΆαžαž€αŸ†αžŽαž”αŸ‹αž”αž„αŸ’αž αžΆαž‰αž…αŸ„αžš αŸ”",
"αž‡αžΆαž”αŸ‹αž‡αŸ’αžšαž½αž›αž…αŸ’αžšαžœαžΆαž€αŸ‹αž—αž€αŸ’αžαŸ’αžšαžŸαŸ’αžšαžŸαŸ‹αžŸαŸ’αžšαžΆαž™ αž‚αž½αžšαžαŸ’αž›αžΆαž…αžαŸ’αž›αž½αž“αž€αŸ’αž›αžΆαž™αž‡αžΆαž€αŸ’αž›αŸ€αžœαž€αŸ’αž›αžΆ αžœαž„αŸ’αžœαŸαž„αž•αŸ’αž›αžΌαžœαž˜αž·αž“αžŸαž½αžšαž“αžšαžŽαžΆ αžαž“αžΉαž„αž”αž…αŸ’αž…αžΆαž₯αžαž’αžΆαžœαž»αž’ αŸ”",
"αž€αž»αŸ†αž‚αž·αžαžαŸ‚αžšαŸ€αž“αž…αž„αŸ‹αž’αŸ’αžœαžΎαž˜αž“αŸ’αžαŸ’αžšαžΈ αžŸαŸ’αž’αž”αŸ‹αžαŸ’αž–αžΎαž˜αž—αž€αŸ‹αžŠαžΈαž“αžΆαŸ†αž’αŸ„αž™αž€αŸ’αžš αžαŸ’αžšαžΌαžœαžšαŸ€αž“αž’αŸ’αžœαžΎαž‡αžΆαž€αžŸαž·αž€αžš αž‘αžΎαž”αž˜αžΆαž“αž‘αŸ’αžšαž–αŸ’αž™αžαž‘αŸ…αžαžΆαž„αž€αŸ’αžšαŸ„αž™ αŸ”",
"αž‡αž“αžŽαžΆαž‘αŸ’αžšαžΆαŸ†αž’αžαŸ‹ αžαž“αŸ’αžαžΈαžŸαž„αŸ’αž€αžαŸ‹ αžšαž€αŸ’αžŸαžΆαž˜αžΆαž™αžΆαž‘ αž˜αž·αž“αžαžΉαž„αž•αŸ’αžŠαŸαžŸαž•αŸ’αžŠαžΆαžŸ αž–αž½αž€αž”αžŽαŸ’αžŒαž·αžαž‡αžΆαžαž· αžŸαžšαžŸαžΎαžšαž‡αžΆαž’αžΆαž‘αŸ αžαžΆαž’αŸ’αž“αž€αž’αŸ’αž„αž“αŸ‹αž’αŸ’αž„αžš αŸ”",
"αž‡αž“αž–αžΆαž›αžŠαž›αŸ‹αž–αŸαž›αž€αžΎαžαž€αž›αž·αž™αž»αž‚ αž‘αŸαžœαžαžΆαž²αŸ’αž™αž‘αž»αž€αŸ’αžαž…αžΆαŸ†αž•αŸ’αžŠαž“αŸ’αž‘αžΆ αž–αž½αž€αž”αŸ’αžšαžΆαž‡αŸ’αž‰αžŸαž”αŸ’αž”αžšαžŸαž€αžΆαž“αŸ‹αž’αž˜αŸ’αž˜αžΆ αžŠαž›αŸ‹αž–αŸαž›αž‘αž»αž€αŸ’αžαžΆαž‘αŸαžœαžαžΆαž‡αž½αž™ αŸ”",
"αž…αž„αŸ‹αž›αŸ’αž’αž αž½αžŸαž˜αžΆαžŒ αž…αž„αŸ‹αž”αžΆαž“αž αž½αžŸαžαŸ’αž“αžΆαžαž€αŸ†αžšαž·αžαž˜αžΆαžαŸ’αžšαžΆ αž˜αž·αž“αž”αžΆαž“αžŠαžΌαž…αž”αŸ‰αž„ αž”αŸ†αžŽαž„αž”αŸ’αžšαžΆαžαŸ’αž“αžΆ αžαžΌαž…αž‘αžΆαŸ†αž„αž‘αŸ’αžšαž–αŸ’αž™αžΆ αž‚αž½αžšαž”αžΆαž“αž€αŸαž”αž„αŸ‹ αŸ”",
"αž‡αžΆαžαž·αž˜αž“αž»αžŸαŸ’αžŸαž–αžΆαž›αž–αŸ„αž›αž˜αž·αž“αž–αž·αž αž€αž»αŸ†αž™αž€αž’αŸ’αžœαžΎαž˜αž·αžαŸ’αžαžαžΆαžαžšαž”αžŸαŸ‹ αž˜αž“αž»αžŸαŸ’αžŸαžŸαž»αž…αžšαž·αžαž…αž·αžαŸ’αžαžŸαž”αŸ’αž”αž»αžšαžŸ αžŸαŸ’αžšαž‘αžΆαž‰αŸ‹αžŸαŸ’αž˜αŸ„αŸ‡αž…αž·αžαŸ’αžαž²αŸ’αž™αžŸαŸ’αž˜αžΎ αŸ”",
]
```