Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -19,9 +19,17 @@ tar -xvf data.tar
|
|
19 |
|
20 |
## 1 Dataset statistics
|
21 |
|
|
|
|
|
22 |
DocLayNet: 68, 757
|
23 |
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
## 2 Data Structure
|
27 |
|
@@ -71,7 +79,7 @@ example_dataset/
|
|
71 |
"doc_id": "NYSE_F_2004.pdf",
|
72 |
"oi_exist": true,
|
73 |
"ori_meta": null,
|
74 |
-
"
|
75 |
"source_dataset": "DocLayNet",
|
76 |
"page_id": "72"
|
77 |
},
|
@@ -94,7 +102,7 @@ example_dataset/
|
|
94 |
+ source_dataset: 假如该文档是转换而来的,则在此标注出原始的数据集名称,如不是则为None。
|
95 |
+ doc_id: 一个唯一的document id,标识该文档的名称信息等。
|
96 |
+ page_id: 一个唯一的page id,标识该文档所在页码位置。如只有一个页码,那就为None,只有多文档的时候才会有page_id,一般从1开始。
|
97 |
-
+
|
98 |
+ ori_meta: 原始的数据集也许会包含meta信息,所以在此保留了,假如无则为None。
|
99 |
+ oi_exist: 是否存在overall image。True or False。假如是True,则意味着overall image来自于数据集本身,假如为False则是通过我们的代码的编译结果。
|
100 |
+ ...
|
@@ -200,6 +208,54 @@ An example of OBELICS:
|
|
200 |
}
|
201 |
```
|
202 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
|
204 |
|
205 |
TODO
|
|
|
19 |
|
20 |
## 1 Dataset statistics
|
21 |
|
22 |
+
chinese markdown: 168, 323
|
23 |
+
|
24 |
DocLayNet: 68, 757
|
25 |
|
26 |
+
leetcode: 2, 360
|
27 |
+
|
28 |
+
OBELICS:
|
29 |
+
00000 466, 503
|
30 |
+
00001 287, 384
|
31 |
+
00002 285, 965
|
32 |
+
00003 290, 865
|
33 |
|
34 |
## 2 Data Structure
|
35 |
|
|
|
79 |
"doc_id": "NYSE_F_2004.pdf",
|
80 |
"oi_exist": true,
|
81 |
"ori_meta": null,
|
82 |
+
"date_download": "2024-03-16",
|
83 |
"source_dataset": "DocLayNet",
|
84 |
"page_id": "72"
|
85 |
},
|
|
|
102 |
+ source_dataset: 假如该文档是转换而来的,则在此标注出原始的数据集名称,如不是则为None。
|
103 |
+ doc_id: 一个唯一的document id,标识该文档的名称信息等。
|
104 |
+ page_id: 一个唯一的page id,标识该文档所在页码位置。如只有一个页码,那就为None,只有多文档的时候才会有page_id,一般从1开始。
|
105 |
+
+ date_download: date (download), 下载日期。
|
106 |
+ ori_meta: 原始的数据集也许会包含meta信息,所以在此保留了,假如无则为None。
|
107 |
+ oi_exist: 是否存在overall image。True or False。假如是True,则意味着overall image来自于数据集本身,假如为False则是通过我们的代码的编译结果。
|
108 |
+ ...
|
|
|
208 |
}
|
209 |
```
|
210 |
|
211 |
+
An example of chinese-markdown:
|
212 |
+
|
213 |
+
```json
|
214 |
+
{
|
215 |
+
"id": 7,
|
216 |
+
"meta": {
|
217 |
+
"language": "zh",
|
218 |
+
"oi_exist": true,
|
219 |
+
"source_dateset": "chinese-markdown",
|
220 |
+
"ori_meta": null,
|
221 |
+
"doc_id": 7,
|
222 |
+
"page_id": null,
|
223 |
+
"date_download": "2024-04-30"
|
224 |
+
},
|
225 |
+
"md": "---\ntitle: 常见问题 QA\ncategory: 其它\norder: 1\n---\n\n> 持续更新中...\n> 如有问题可以到 <https://github.com/alibaba/ice/issues/new> 反馈\n\n## ICE 的浏览器兼容策略是什么\n\n由于 ICE 优先使用 React 16+,其需要的最低 IE 版本为 11,如果您需要在以下的版本使用,您可能需要引入一些 polyfill 来支持 `Map`, `Set` 等特性。参考[React 官网说明](https://reactjs.org/blog/2017/09/26/react-v16.0.html#javascript-environment-requirements)。\n\n以下代码可以帮助你在低版本 IE 下自动跳转到我们提供的提示浏览器升级页面。当然您也可以使用自定义的浏览器升级页面。\n\n```\n<!--[if lt IE 11]>\n<script>location.href = \"//www.taobao.com/markets/tbhome/ali-page-updater\"; </script>\n<![endif]-->\n```\n\n添加如上代码后,如果使用 IE11 及以下浏览器访问页面,则会自动跳转到统一引导升级浏览器的页面。\n\n## WebStorm/IDEA 编辑器卡顿现象\n\n由于项目在安装依赖后,产生文件夹 `node_modules` 含有较多的碎小文件,编辑器在索引文件引起的卡顿。\nWebStorm 中尤为明显,可通过 exclude `node_modules` 目录,不需要检索该文件夹下的内容。\n\n## 如何设置网页在浏览器 Tab 上面的 Icon (favicon)\n\n细心的同学可能会看到页面在浏览器 Tab 上面会有自定义的 Icon:\n\n![](//img.alicdn.com/tfs/TB1ct6bPpXXXXXYXFXXXXXXXXXX-484-82.png)\n\n如果你想要在自己站点上面加上这个 Icon 可以按照如下步骤添加:\n\n1. 准备一个 Icon,文件格式可以为 `.png` 或者 `.ico`,正方形,分辨率可以是 32x32px 或者 64x64px 文件体积要求尽可能小。\n2. 上传 CDN 拿到一个 url 或者在自己服务器配置静态资源服务\n3. 在 HTML 页面 `<head>` 标签里面添加如下代码:`<link rel=\"shortcut icon\" href=\"your-icon-url\">`\n ![](//img.alicdn.com/tfs/TB1IC53PpXXXXbmXVXXXXXXXXXX-1834-774.png)\n\n这样就添加成功啦!\n\n## 如何在页面显示原始的 HTML 内容\n\n出于安全方面的考虑,React 默认会将节点中 html 代码进行转义,比如:\n\n```jsx\nclass Demo extends Component {\n render() {\n const content = 'hello <span>world</span>';\n return <div>{content}</div>;\n }\n}\n\n// 输出 hello <span>world</span>\n```\n\n如上,`<span>` 标签并不会在页面上被解析,而是被当成字符串输出了。React 提供了 `dangerouslySetInnerHTML` 属性帮助我们进行类似 `innerHTML` 的操作:\n\n```jsx\nclass Demo extends Component {\n render() {\n const content = 'hello <span>world</span>';\n return <div dangerouslySetInnerHTML={{ __html: content }} />;\n }\n}\n\n// 输出 hello world\n```\n\n更多内容请参考 [Dangerously Set innerHTML](https://reactjs.org/docs/dom-elements.html#dangerouslysetinnerhtml)\n\n## 之前创建的项目,遇到如下报错怎么办\n\n![截图](content_image/7-0.png)\n\n这是由于 ES6 Modules 的标准在物料中不兼容导致的。您可以把 `src/navs.js` 中最后一行修改为:\n\n```js\nexport const headerNavs = transform([\n ...autoGenHeaderNavs,\n ...customHeaderNavs,\n]);\n\nexport const asideNavs = transform([...autoGenAsideNavs, ...customAsideNavs]);\n```",
|
226 |
+
"license": "MIT",
|
227 |
+
"quality_signals": null,
|
228 |
+
"content_image": [
|
229 |
+
"content_image/7-0.png"
|
230 |
+
],
|
231 |
+
"overall_image": "overall_image/7.png"
|
232 |
+
}
|
233 |
+
```
|
234 |
+
|
235 |
+
An example of leetcode:
|
236 |
+
|
237 |
+
```json
|
238 |
+
{
|
239 |
+
"id": 1,
|
240 |
+
"meta": {
|
241 |
+
"language": "en",
|
242 |
+
"doc_id": 1,
|
243 |
+
"page_id": null,
|
244 |
+
"oi_exist": true,
|
245 |
+
"source_dataset": "leetcode",
|
246 |
+
"date_download": "2024-05-05",
|
247 |
+
"ori_meta": {
|
248 |
+
"slug": "two-sum",
|
249 |
+
"difficulty": "Easy"
|
250 |
+
}
|
251 |
+
},
|
252 |
+
"quality_signals": null,
|
253 |
+
"license": "MIT",
|
254 |
+
"content_image": null,
|
255 |
+
"md": "# Two Sum\n\n- slug: two-sum\n- difficulty: Easy\n\nGiven an array of integers `nums` and an integer `target`, return _indices of the two numbers such that they add up to `target`_.\n\nYou may assume that each input would have **_exactly_ one solution**, and you may not use the _same_ element twice.\n\nYou can return the answer in any order.\n\n**Example 1:**\n\n**Input:** nums = \\[2,7,11,15\\], target = 9\n**Output:** \\[0,1\\]\n**Explanation:** Because nums\\[0\\] + nums\\[1\\] == 9, we return \\[0, 1\\].\n\n**Example 2:**\n\n**Input:** nums = \\[3,2,4\\], target = 6\n**Output:** \\[1,2\\]\n\n**Example 3:**\n\n**Input:** nums = \\[3,3\\], target = 6\n**Output:** \\[0,1\\]\n\n**Constraints:**\n\n* `2 <= nums.length <= 104`\n* `-109 <= nums[i] <= 109`\n* `-109 <= target <= 109`\n* **Only one valid answer exists.**\n\n**Follow-up:** Can you come up with an algorithm that is less than `O(n2)` time complexity?\n\n## A solution in Java\n\n```java\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic int[] twoSum(int[] nums, int target) {\n Map<Integer, Integer> map = new HashMap<>();\n for (int i = 0; i < nums.length; i++) {\n int complement = target - nums[i];\n if (map.containsKey(complement)) {\n return new int[]{map.get(complement), i};\n }\n map.put(nums[i], i);\n }\n throw new IllegalArgumentException(\"No two sum solution\");\n}\n```\nThe algorithm leverages a hash map (unordered_map in C++, HashMap in Java, dictionary in Python, and Map in JavaScript). It iterates through the given 'nums' array and calculates the complementary value (target - current value). If the complementary value is already in the hash map, it means that we found a solution, and we return those indices. If the complement is not in the hash map, we store the current element in the hash map with its index. If the algorithm doesn't find the solution, it returns an empty array or throws an exception (in Java).\n\nThis approach has a time complexity of O(n) and a space complexity of O(n) as well.\n \n\n## A solution in C++\n\n```cpp\n#include <vector>\n#include <unordered_map>\n\nstd::vector<int> twoSum(std::vector<int>& nums, int target) {\n std::unordered_map<int, int> map;\n for (int i = 0; i < nums.size(); i++) {\n int complement = target - nums[i];\n if (map.find(complement) != map.end()) {\n return {map[complement], i};\n }\n map[nums[i]] = i;\n }\n return {};\n}\n```\nThe algorithm leverages a hash map (unordered_map in C++, HashMap in Java, dictionary in Python, and Map in JavaScript). It iterates through the given 'nums' array and calculates the complementary value (target - current value). If the complementary value is already in the hash map, it means that we found a solution, and we return those indices. If the complement is not in the hash map, we store the current element in the hash map with its index. If the algorithm doesn't find the solution, it returns an empty array or throws an exception (in Java).\n\nThis approach has a time complexity of O(n) and a space complexity of O(n) as well.\n \n\n## A solution in Python\n\n```python\ndef twoSum(nums, target):\n map = {}\n for i, num in enumerate(nums):\n complement = target - num\n if complement in map:\n return [map[complement], i]\n map[num] = i\n return []\n```\nThe algorithm leverages a hash map (unordered_map in C++, HashMap in Java, dictionary in Python, and Map in JavaScript). It iterates through the given 'nums' array and calculates the complementary value (target - current value). If the complementary value is already in the hash map, it means that we found a solution, and we return those indices. If the complement is not in the hash map, we store the current element in the hash map with its index. If the algorithm doesn't find the solution, it returns an empty array or throws an exception (in Java).\n\nThis approach has a time complexity of O(n) and a space complexity of O(n) as well.\n \n\n## A solution in Javascript\n\n```javascript\nfunction twoSum(nums, target) {\n const map = new Map();\n for (let i = 0; i < nums.length; i++) {\n const complement = target - nums[i];\n if (map.has(complement)) {\n return [map.get(complement), i];\n }\n map.set(nums[i], i);\n }\n return [];\n}\n```\nThe algorithm leverages a hash map (unordered_map in C++, HashMap in Java, dictionary in Python, and Map in JavaScript). It iterates through the given 'nums' array and calculates the complementary value (target - current value). If the complementary value is already in the hash map, it means that we found a solution, and we return those indices. If the complement is not in the hash map, we store the current element in the hash map with its index. If the algorithm doesn't find the solution, it returns an empty array or throws an exception (in Java).\n\nThis approach has a time complexity of O(n) and a space complexity of O(n) as well.\n \n",
|
256 |
+
"overall_image": "overall_image/1.png"
|
257 |
+
}
|
258 |
+
```
|
259 |
|
260 |
|
261 |
TODO
|