2022-11-08 17:17:54 +08:00
|
|
|
# 关键信息提取
|
2022-11-02 15:06:49 +08:00
|
|
|
|
2022-11-08 17:17:54 +08:00
|
|
|
```{note}
|
2023-02-02 19:47:10 +08:00
|
|
|
我们正努力往 [Dataset Preparer](./dataset_preparer.md) 中增加更多数据集。对于 [Dataset Preparer](./dataset_preparer.md) 暂未能完整支持的数据集,本页提供了一系列手动下载的步骤,供有需要的用户使用。
|
2022-11-02 15:06:49 +08:00
|
|
|
```
|
2021-09-28 11:32:44 +08:00
|
|
|
|
|
|
|
## 概览
|
|
|
|
|
|
|
|
关键信息提取任务的数据集,文件目录应按如下配置:
|
|
|
|
|
|
|
|
```text
|
|
|
|
└── wildreceipt
|
|
|
|
├── class_list.txt
|
|
|
|
├── dict.txt
|
|
|
|
├── image_files
|
|
|
|
├── test.txt
|
|
|
|
└── train.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
## 准备步骤
|
|
|
|
|
|
|
|
### WildReceipt
|
|
|
|
|
|
|
|
- 下载并解压 [wildreceipt.tar](https://download.openmmlab.com/mmocr/data/wildreceipt.tar)
|
2021-11-11 17:39:27 +08:00
|
|
|
|
|
|
|
### WildReceiptOpenset
|
|
|
|
|
|
|
|
- 准备好 [WildReceipt](#WildReceipt)。
|
|
|
|
- 转换 WildReceipt 成 OpenSet 格式:
|
2022-07-21 14:28:57 +08:00
|
|
|
|
2021-11-11 17:39:27 +08:00
|
|
|
```bash
|
|
|
|
# 你可以运行以下命令以获取更多可用参数:
|
|
|
|
# python tools/data/kie/closeset_to_openset.py -h
|
|
|
|
python tools/data/kie/closeset_to_openset.py data/wildreceipt/train.txt data/wildreceipt/openset_train.txt
|
|
|
|
python tools/data/kie/closeset_to_openset.py data/wildreceipt/test.txt data/wildreceipt/openset_test.txt
|
|
|
|
```
|
2022-06-09 14:58:44 +08:00
|
|
|
|
|
|
|
```{note}
|
2021-11-11 17:39:27 +08:00
|
|
|
[这篇教程](../tutorials/kie_closeset_openset.md)里讲述了更多 CloseSet 和 OpenSet 数据格式之间的区别。
|
2022-06-09 14:58:44 +08:00
|
|
|
```
|