Publish source-preserving SWDE 800-page HTML inputs
Browse files- .gitattributes +1 -0
- LICENSE.txt +33 -0
- README.md +43 -0
- UPSTREAM_README.txt +54 -0
- inputs.jsonl +3 -0
- provenance.json +0 -0
- selection.json +13 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
inputs.jsonl filter=lfs diff=lfs merge=lfs -text
|
LICENSE.txt
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Microsoft Reciprocal License (Ms-RL)
|
| 2 |
+
|
| 3 |
+
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.
|
| 4 |
+
|
| 5 |
+
1. Definitions
|
| 6 |
+
|
| 7 |
+
The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law.
|
| 8 |
+
|
| 9 |
+
A "contribution" is the original software, or any additions or changes to the software.
|
| 10 |
+
|
| 11 |
+
A "contributor" is any person that distributes its contribution under this license.
|
| 12 |
+
|
| 13 |
+
"Licensed patents" are a contributor's patent claims that read directly on its contribution.
|
| 14 |
+
|
| 15 |
+
2. Grant of Rights
|
| 16 |
+
|
| 17 |
+
(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
|
| 18 |
+
|
| 19 |
+
(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.
|
| 20 |
+
|
| 21 |
+
3. Conditions and Limitations
|
| 22 |
+
|
| 23 |
+
(A) Reciprocal Grants- For any file you distribute that contains code from the software (in source code or binary format), you must provide recipients the source code to that file along with a copy of this license, which license will govern that file. You may license other files that are entirely your own work and do not contain code from the software under any terms you choose.
|
| 24 |
+
|
| 25 |
+
(B) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
|
| 26 |
+
|
| 27 |
+
(C) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
|
| 28 |
+
|
| 29 |
+
(D) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
|
| 30 |
+
|
| 31 |
+
(E) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
|
| 32 |
+
|
| 33 |
+
(F) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
|
README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: SWDE (Structured Web Data Extraction), 800-page evaluation input subset
|
| 3 |
+
license: other
|
| 4 |
+
license_name: microsoft-reciprocal-license-ms-rl
|
| 5 |
+
license_link: https://huggingface.co/datasets/Lexmount/SWDE-800/blob/main/LICENSE.txt
|
| 6 |
+
task_categories:
|
| 7 |
+
- other
|
| 8 |
+
size_categories:
|
| 9 |
+
- n<1K
|
| 10 |
+
tags:
|
| 11 |
+
- swde
|
| 12 |
+
- structured-data-extraction
|
| 13 |
+
- benchmark
|
| 14 |
+
configs:
|
| 15 |
+
- config_name: default
|
| 16 |
+
data_files:
|
| 17 |
+
- split: test
|
| 18 |
+
path: inputs.jsonl
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
# SWDE: 800-page evaluation input subset
|
| 22 |
+
|
| 23 |
+
This distribution contains 800 archived HTML pages from **SWDE (Structured Web Data Extraction)**, selected for a Lexmount API extraction evaluation. SWDE was created by its original authors. Lexmount selected and packaged these inputs; it does not claim authorship of the source benchmark.
|
| 24 |
+
|
| 25 |
+
The original collection has 124,291 pages from 80 websites in eight domains. This subset contains ten pages from every website: 100 pages each for automobiles, books, cameras, jobs, movies, NBA players, restaurants and universities. It is a predeclared evaluation subset, not an official SWDE split or the complete benchmark.
|
| 26 |
+
|
| 27 |
+
## Source and selection
|
| 28 |
+
|
| 29 |
+
The original project was hosted at [CodePlex](https://archive.codeplex.com/?p=swde). These files come from the [SWDE source mirror at the pinned revision](https://github.com/woailaosang/swde/tree/e9b60dbbcb899d70e813e8b899b84e3540d540da). The original description is preserved in `UPSTREAM_README.txt`.
|
| 30 |
+
|
| 31 |
+
For each website, pages were ordered by the SHA-256 digest of `seed + "\0" + original_relative_path`, using seed `swde-native-api-first-round-20261104`; the first ten pages were selected before API evaluation. `selection.json` records the source archive digest and selection rule. `provenance.json` maps each case to its original path and input digest.
|
| 32 |
+
|
| 33 |
+
## Files and use
|
| 34 |
+
|
| 35 |
+
`inputs.jsonl` contains one row per page, with its ID, domain, website, original URL, original path, SHA-256 digest and HTML string. Encoding the HTML string as UTF-8 recovers the original bytes. The archived `<base>` element and external resource references are preserved. These pages describe historical website content; current URLs may have changed or disappeared.
|
| 36 |
+
|
| 37 |
+
The original SWDE task extracts 32 attribute types across the eight domains. Its annotations were created with handcrafted regular expressions at DOM text-node level; one field can contain multiple values. This input-only distribution does not include reference answers, provider responses or evaluation scores. Consult the original benchmark for its annotation files and task conventions.
|
| 38 |
+
|
| 39 |
+
## License and attribution
|
| 40 |
+
|
| 41 |
+
`LICENSE.txt` preserves the original CodePlex project's Microsoft Reciprocal License (Ms-RL). That project license describes accompanying software; captured third-party website content remains subject to its publishers' rights. The repository metadata records the original license and this distinction rather than assigning a new blanket license to the pages. No additional MIT, Apache or Creative Commons license is granted by this redistribution.
|
| 42 |
+
|
| 43 |
+
Please cite SWDE and retain its original source attribution when using these files. Credit Lexmount only for the 800-page selection and this packaging.
|
UPSTREAM_README.txt
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
A Large-Scale Real-World Dataset for Structured Web Date Extraction
|
| 2 |
+
|
| 3 |
+
1.Motivation
|
| 4 |
+
This dataset is a real-world web page collection used for research on the automatic extraction of structured data (e.g., attribute-value pairs of entities) from the Web. We hope it could serve as a useful benchmark for evaluating and comparing different methods for structured web data extraction.
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
2.Contents of the Dataset
|
| 8 |
+
Currently the dataset involves:
|
| 9 |
+
a) 8 verticals with diverse semantics;
|
| 10 |
+
b) 80 web sites (10 per vertical);
|
| 11 |
+
c) 124,291 web pages (200~2,000 per web site), each containing a single data record with detailed information of an entity;
|
| 12 |
+
d) 32 attributes (3~5 per vertical) associated with carefully labeled ground-truth of corresponding values in each web page. The goal of structured data extraction is to automatically identify the values of these attributes from web pages.
|
| 13 |
+
|
| 14 |
+
The involved verticals are summarized as follows:
|
| 15 |
+
Vertical #Sites #Pages #Attributes Attributes
|
| 16 |
+
Auto 10 17,923 4 model, price, engine, fuel_economy
|
| 17 |
+
Book 10 20,000 5 title, author, isbn_13, publisher, publication_date
|
| 18 |
+
Camera 10 5,258 3 model, price, manufacturer
|
| 19 |
+
Job 10 20,000 4 title, company, location, date_posted
|
| 20 |
+
Movie 10 20,000 4 title, director, genre, mpaa_rating
|
| 21 |
+
NBA Player 10 4,405 4 name, team, height, weight
|
| 22 |
+
Restaurant 10 20,000 4 name, address, phone, cuisine
|
| 23 |
+
University 10 16,705 4 name, phone, website, type
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
3.Format of Web Pages
|
| 27 |
+
Each web page in the dataset is stored as one .htm file (in UTF-8 encoding) where the first tag encodes the source URL of the page.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
4.Format of Ground-truth Files
|
| 31 |
+
For each web site, the page-level ground-truth of attribute values has been labeled using handcrafted regular expressions and stored in .txt files (in UTF-8 encoding) named as "<vertical>-<site>-<attribute>.txt".
|
| 32 |
+
In each such file:
|
| 33 |
+
a) The first line stores the names of vertical, site, and attribute, separated by TAB characters ('\t').
|
| 34 |
+
b) The second line stores some statistics (separated by TABs) w.r.t. the corresponding site and attribute, including:
|
| 35 |
+
[1] the total number of pages,
|
| 36 |
+
[2] the number of pages containing attribute values,
|
| 37 |
+
[3] the total number of attribute values contained in the pages,
|
| 38 |
+
[4] the number of unique attribute values.
|
| 39 |
+
c) Each remaining line stores the ground-truth information (separated by TABs) of one page, in sequence of:
|
| 40 |
+
[1] page ID,
|
| 41 |
+
[2] the number of attribute values in the page,
|
| 42 |
+
[3] attribute values ("<NULL>" in case of non-existence).
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
5.Notes on Ground-truth Labeling
|
| 46 |
+
a) The ground-truth labeling was conducted in the DOM-node level. More specifically, the candidate attribute values in a web page are the non-empty strings contained in text nodes in the corresponding DOM tree.
|
| 47 |
+
b) One page (although containing a single data record) may contain multiple distinct values that correspond to an attribute (e.g., multiple authors of a book, multiple granularity levels of addresses).
|
| 48 |
+
c) Currently, when a text node presents a mixture of multiple attributes, its string value is labeled with each of these attributes, if no substitute is available.
|
| 49 |
+
d) Before being stored in .txt files, the raw attribute values were refined by removing redundant separators (e.g., ' ', '\t', '\n').
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
6.Support
|
| 53 |
+
If you have questions about this dataset, please contact Qiang Hao (haoq@live.com).
|
| 54 |
+
|
inputs.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a197cdd67e14e9b3b01b8729dec1b02c9b79d25cf89dbdefa868505d33943c2
|
| 3 |
+
size 64041968
|
provenance.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
selection.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"source_commit": "e9b60dbbcb899d70e813e8b899b84e3540d540da",
|
| 3 |
+
"selection": {
|
| 4 |
+
"kind": "predeclared_site_balanced_subset",
|
| 5 |
+
"pages_per_site": 10,
|
| 6 |
+
"sites": 80,
|
| 7 |
+
"domains": 8,
|
| 8 |
+
"seed": "swde-native-api-first-round-20261104",
|
| 9 |
+
"ordering": "ascending SHA256(seed + NUL + original relative page path)",
|
| 10 |
+
"full_dataset_pages": 124291
|
| 11 |
+
},
|
| 12 |
+
"source_archive_sha256": "20feb3e539184670b6678eabf8e38e701fe14fbf5e9ec9261089742f02ba4956"
|
| 13 |
+
}
|