Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
howl-anderson committed Oct 17, 2024
1 parent 3d3d46e commit f14422e
Showing 1 changed file with 27 additions and 15 deletions.
42 changes: 27 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
# 汉字拆字
# Hanzi decomposition (Chinese character decomposition) | 汉字拆字

> 拆字是指將一文字,以筆畫、字形等基本組成單位分解成多個文字。
> The decomposition of characters refers to breaking down a single character into multiple characters based on its basic components, such as strokes and structural elements.
汉字拆字让字型相似的字具有相似的拆解结果。
> 汉字拆字让字型相似的字具有相似的拆解结果。
> Hanzi decomposition yields similar decomposition results for characters with similar structures.
**这种特性可以被深度学习模型用来作为字的特征之一:字形的特征。**
> 这种特性可以被深度学习模型用来作为字的特征之一:字形的特征。
> This feature can be used by deep learning models as one of the features of characters: the structural feature.
## Installation

```bash
pip install hanzi_chaizi
```

## Usage

## 使用
```python
from hanzi_chaizi import HanziChaizi

Expand All @@ -16,27 +26,31 @@ result = hc.query('名')
print(result)
```

输出
Output:

```text
['夕', '口']
```



## 从原始数据生成
### 数据来源
数据来自于 [漢語拆字字典](https://github.com/kfcd/chaizi)
## Development

### Data source

Data from this project: [漢語拆字字典](https://github.com/kfcd/chaizi)

### parsing and convert data format

### 解析
```bash
pytohn ./parse.py
pytohn dev_scripts/parse.py
```

## 致谢
拆字数据来自于 [漢語拆字字典](https://github.com/kfcd/chaizi)
## Credits

## 学术引用 / Citation
Data from this project: [漢語拆字字典](https://github.com/kfcd/chaizi)

## Citation

```
@misc{kong2018hanzichaizi,
Expand All @@ -47,7 +61,5 @@ pytohn ./parse.py
}
```

如果该软件包被书籍、研讨会和学术研究论文引用,或者在公司产品中使用,欢迎写邮件把这一个情况告诉我。我很高兴看到软件包能被使用,对大家有价值。

If the package is cited in books, seminars, and academic research papers, or used in company products, you are welcome (but not required) to email me about this. I'm glad to see the package being used and valuable to everyone.

0 comments on commit f14422e

Please sign in to comment.