Skip to content

Commit

Permalink
[NEW]添加264434条词语数据库
Browse files Browse the repository at this point in the history
  • Loading branch information
t-xiwu committed Aug 3, 2018
1 parent 29ea66b commit 36f424b
Show file tree
Hide file tree
Showing 5 changed files with 335,032 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# vscode
/.vscode
/.vscode
__pycache__
error.csv
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# chinese-xinhua
中华新华字典数据库和API。收录包括 14032 条歇后语,16142 个汉字,31648 个成语。
中华新华字典数据库和 API 。收录包括 14032 条歇后语,16142 个汉字,264434 个词语,31648 个成语。

对性能没需求的话,可以用我的新华字典API。所有的数据放在 data/ 目录。
对性能没需求的话,可以用我的新华字典 API 。所有的数据放在 data/ 目录。

# Project Structure
```
Expand All @@ -18,6 +18,10 @@ chinese-xinhua/
| +- word.json <-- 汉字
| |
| +- xiehouyu.json <-- 歇后语
| |
| +- ci.json <-- 词语
| |
| +- ci.csv <-- 词语(csv 版本)
|
+- scripts/ <-- 脚本文件夹
| |
Expand All @@ -28,11 +32,13 @@ chinese-xinhua/
| +- word.py <-- 下载汉字脚本
| |
| +- xiehouyu.py <-- 下载歇后语脚本
| |
| +- ci.py <-- 下载词语脚本
```

## 数据库介绍
### 成语(idiom.json)
```
```json
[
{
"derivation": "语出《法华经·法师功德品》下至阿鼻地狱。”",
Expand All @@ -46,8 +52,19 @@ chinese-xinhua/
]
```

### 汉字(word.json)
### 词语(ci.json)
```json
[
{
"ci": "宸纶",
"explanation": "1.帝王的诏书﹑制令。"
},
...
]
```

### 汉字(word.json)
```json
[
{
"word": "",
Expand All @@ -62,8 +79,13 @@ chinese-xinhua/
]
```

### 歇后语(xiehouyu.json)
### 词语(ci.json)
```json

```

### 歇后语(xiehouyu.json)
```json
[
{
"riddle": "飞机上聊天",
Expand Down
Loading

0 comments on commit 36f424b

Please sign in to comment.