Commit
•
fac6c89
0
Parent(s):
Update files from the datasets library (from 1.2.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.2.0
- .gitattributes +27 -0
- README.md +163 -0
- crawl_domain.py +106 -0
- dataset_infos.json +1 -0
- dummy/1.0.0/dummy_data.zip +3 -0
.gitattributes
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
annotations_creators:
|
3 |
+
- expert-generated
|
4 |
+
language_creators:
|
5 |
+
- crowdsourced
|
6 |
+
- expert-generated
|
7 |
+
- found
|
8 |
+
languages:
|
9 |
+
- en
|
10 |
+
licenses:
|
11 |
+
- mit
|
12 |
+
multilinguality:
|
13 |
+
- monolingual
|
14 |
+
size_categories:
|
15 |
+
- 10K<n<100K
|
16 |
+
source_datasets:
|
17 |
+
- extended|other-Common-Crawl
|
18 |
+
- original
|
19 |
+
task_categories:
|
20 |
+
- other
|
21 |
+
task_ids:
|
22 |
+
- other-other-text-to-speech
|
23 |
+
- other-other-web-search
|
24 |
+
---
|
25 |
+
|
26 |
+
# Dataset Card for Common Crawl Domain Names
|
27 |
+
## Table of Contents
|
28 |
+
- [Dataset Description](#dataset-description)
|
29 |
+
- [Dataset Summary](#dataset-summary)
|
30 |
+
- [Supported Tasks](#supported-tasks-and-leaderboards)
|
31 |
+
- [Languages](#languages)
|
32 |
+
- [Dataset Structure](#dataset-structure)
|
33 |
+
- [Data Instances](#data-instances)
|
34 |
+
- [Data Fields](#data-fields)
|
35 |
+
- [Data Splits](#data-splits)
|
36 |
+
- [Dataset Creation](#dataset-creation)
|
37 |
+
- [Curation Rationale](#curation-rationale)
|
38 |
+
- [Source Data](#source-data)
|
39 |
+
- [Annotations](#annotations)
|
40 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
41 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
42 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
43 |
+
- [Discussion of Biases](#discussion-of-biases)
|
44 |
+
- [Other Known Limitations](#other-known-limitations)
|
45 |
+
- [Additional Information](#additional-information)
|
46 |
+
- [Dataset Curators](#dataset-curators)
|
47 |
+
- [Licensing Information](#licensing-information)
|
48 |
+
- [Citation Information](#citation-information)
|
49 |
+
|
50 |
+
## Dataset Description
|
51 |
+
|
52 |
+
- **Homepage:** https://github.com/google-research-datasets/common-crawl-domain-names
|
53 |
+
- **Repository:** https://github.com/google-research-datasets/common-crawl-domain-names
|
54 |
+
- **Paper:** https://arxiv.org/pdf/2011.03138
|
55 |
+
- **Leaderboard:**
|
56 |
+
- **Point of Contact:**
|
57 |
+
|
58 |
+
### Dataset Summary
|
59 |
+
|
60 |
+
Corpus of domain names scraped from Common Crawl and manually annotated to add word boundaries (e.g. "commoncrawl" to "common crawl").
|
61 |
+
|
62 |
+
Breaking [domain names](https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_URL) such as "openresearch" into component words "open" and "research" is important for applications such as Text-to-Speech synthesis and web search. [Common Crawl](https://commoncrawl.org/) is an open repository of web crawl data that can be accessed and analyzed by anyone. Specifically, we scraped the plaintext (WET) extracts for domain names from URLs that contained diverse letter casing (e.g. "OpenBSD"). Although in the previous example, segmentation is trivial using letter casing, this was not always the case (e.g. "NASA"), so we had to manually annotate the data.
|
63 |
+
|
64 |
+
### Supported Tasks and Leaderboards
|
65 |
+
|
66 |
+
- Text-to-Speech synthesis
|
67 |
+
- Web search
|
68 |
+
|
69 |
+
### Languages
|
70 |
+
|
71 |
+
en: English
|
72 |
+
|
73 |
+
## Dataset Structure
|
74 |
+
|
75 |
+
### Data Instances
|
76 |
+
|
77 |
+
Each sample is an example of space separated segments of a domain name. The examples are stored in their original letter casing, but harder and more interesting examples can be generated by lowercasing the input first.
|
78 |
+
|
79 |
+
For example:
|
80 |
+
|
81 |
+
```
|
82 |
+
Open B S D
|
83 |
+
NASA
|
84 |
+
ASAP Workouts
|
85 |
+
```
|
86 |
+
|
87 |
+
### Data Fields
|
88 |
+
|
89 |
+
- `example`: a `string` feature: space separated segments of a domain name.
|
90 |
+
|
91 |
+
### Data Splits
|
92 |
+
|
93 |
+
| split | size | trivial | avg_input_length | avg_segments |
|
94 |
+
|-------|-------|---------|------------------|--------------|
|
95 |
+
| train | 17572 | 13718 | 12.63 | 2.65 |
|
96 |
+
| eval | 1953 | 1536 | 12.77 | 2.67 |
|
97 |
+
| test | 2170 | 1714 | 12.63 | 2.66 |
|
98 |
+
|
99 |
+
## Dataset Creation
|
100 |
+
|
101 |
+
### Curation Rationale
|
102 |
+
|
103 |
+
The dataset was curated by scraping the plaintext (WET) extracts for domain names from URLs that contained diverse letter casing (e.g. "OpenBSD"). Although in the previous example, segmentation is trivial using letter casing, this was not always the case (e.g. "NASA"), so the curators of the dataset had to manually annotate the data.
|
104 |
+
|
105 |
+
### Source Data
|
106 |
+
|
107 |
+
#### Initial Data Collection and Normalization
|
108 |
+
|
109 |
+
Corpus of domain names scraped from Common Crawl and manually annotated to add word boundaries
|
110 |
+
|
111 |
+
#### Who are the source language producers?
|
112 |
+
|
113 |
+
[More Information Needed]
|
114 |
+
|
115 |
+
### Annotations
|
116 |
+
|
117 |
+
#### Annotation process
|
118 |
+
|
119 |
+
[More Information Needed]
|
120 |
+
|
121 |
+
#### Who are the annotators?
|
122 |
+
|
123 |
+
The annotators are the curators of this dataset
|
124 |
+
|
125 |
+
### Personal and Sensitive Information
|
126 |
+
|
127 |
+
[More Information Needed]
|
128 |
+
|
129 |
+
## Considerations for Using the Data
|
130 |
+
|
131 |
+
### Social Impact of Dataset
|
132 |
+
|
133 |
+
[More Information Needed]
|
134 |
+
|
135 |
+
### Discussion of Biases
|
136 |
+
|
137 |
+
[More Information Needed]
|
138 |
+
|
139 |
+
### Other Known Limitations
|
140 |
+
|
141 |
+
[More Information Needed]
|
142 |
+
|
143 |
+
## Additional Information
|
144 |
+
|
145 |
+
### Dataset Curators
|
146 |
+
|
147 |
+
The curators of this dataset are [Jae Hun Ro](https://github.com/JaeHunRo) and [mwurts4google](https://github.com/mwurts4google), who are the contributors of the official Github repository for this dataset. Since the account handles of other curators are unknown currently, the authors of the paper linked to this dataset is mentioned here as curators, [Hao Zhang](https://arxiv.org/search/cs?searchtype=author&query=Zhang%2C+H), [Jae Ro](https://arxiv.org/search/cs?searchtype=author&query=Ro%2C+J), and [Richard Sproat](https://arxiv.org/search/cs?searchtype=author&query=Sproat%2C+R).
|
148 |
+
|
149 |
+
### Licensing Information
|
150 |
+
|
151 |
+
[MIT License](https://github.com/google-research-datasets/common-crawl-domain-names/blob/master/LICENSE)
|
152 |
+
|
153 |
+
### Citation Information
|
154 |
+
|
155 |
+
```
|
156 |
+
@inproceedings{zrs2020urlsegmentation,
|
157 |
+
title={Semi-supervised URL Segmentation with Recurrent Neural Networks Pre-trained on Knowledge Graph Entities},
|
158 |
+
author={Hao Zhang and Jae Ro and Richard William Sproat},
|
159 |
+
booktitle={The 28th International Conference on Computational Linguistics (COLING 2020)},
|
160 |
+
year={2020}
|
161 |
+
}
|
162 |
+
```
|
163 |
+
|
crawl_domain.py
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# coding=utf-8
|
2 |
+
# Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
|
3 |
+
#
|
4 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
+
# you may not use this file except in compliance with the License.
|
6 |
+
# You may obtain a copy of the License at
|
7 |
+
#
|
8 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
+
#
|
10 |
+
# Unless required by applicable law or agreed to in writing, software
|
11 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
+
# See the License for the specific language governing permissions and
|
14 |
+
# limitations under the License.
|
15 |
+
"""Corpus of domain names scraped from Common Crawl and manually annotated to add word boundaries (e.g. "commoncrawl" to "common crawl")."""
|
16 |
+
|
17 |
+
from __future__ import absolute_import, division, print_function
|
18 |
+
|
19 |
+
import datasets
|
20 |
+
|
21 |
+
|
22 |
+
# Find for instance the citation on arxiv or on the dataset repo/website
|
23 |
+
_CITATION = """\
|
24 |
+
@inproceedings{zrs2020urlsegmentation,
|
25 |
+
title={Semi-supervised URL Segmentation with Recurrent Neural Networks Pre-trained on Knowledge Graph Entities},
|
26 |
+
author={Hao Zhang and Jae Ro and Richard William Sproat},
|
27 |
+
booktitle={The 28th International Conference on Computational Linguistics (COLING 2020)},
|
28 |
+
year={2020}
|
29 |
+
}
|
30 |
+
"""
|
31 |
+
|
32 |
+
|
33 |
+
_DESCRIPTION = """Corpus of domain names scraped from Common Crawl and manually annotated to add word boundaries (e.g. "commoncrawl" to "common crawl"). Breaking domain names such as "openresearch" into component words "open" and "research" is important for applications such as Text-to-Speech synthesis and web search. Common Crawl is an open repository of web crawl data that can be accessed and analyzed by anyone. Specifically, we scraped the plaintext (WET) extracts for domain names from URLs that contained diverse letter casing (e.g. "OpenBSD"). Although in the previous example, segmentation is trivial using letter casing, this was not always the case (e.g. "NASA"), so we had to manually annotate the data. The dataset is stored as plaintext file where each line is an example of space separated segments of a domain name. The examples are stored in their original letter casing, but harder and more interesting examples can be generated by lowercasing the input first."""
|
34 |
+
|
35 |
+
_HOMEPAGE = "https://github.com/google-research-datasets/common-crawl-domain-names"
|
36 |
+
|
37 |
+
_LICENSE = "MIT License"
|
38 |
+
|
39 |
+
|
40 |
+
# The HuggingFace dataset library don't host the datasets but only point to the original files
|
41 |
+
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
42 |
+
_URLs = {
|
43 |
+
"train": "https://raw.githubusercontent.com/google-research-datasets/common-crawl-domain-names/master/data/train.txt",
|
44 |
+
"test": "https://raw.githubusercontent.com/google-research-datasets/common-crawl-domain-names/master/data/test.txt",
|
45 |
+
"dev": "https://raw.githubusercontent.com/google-research-datasets/common-crawl-domain-names/master/data/eval.txt",
|
46 |
+
}
|
47 |
+
|
48 |
+
|
49 |
+
class CrawlDomain(datasets.GeneratorBasedBuilder):
|
50 |
+
"""Corpus of domain names scraped from Common Crawl and manually annotated to add word boundaries (e.g. "commoncrawl" to "common crawl")."""
|
51 |
+
|
52 |
+
VERSION = datasets.Version("1.0.0")
|
53 |
+
|
54 |
+
def _info(self):
|
55 |
+
|
56 |
+
features = datasets.Features(
|
57 |
+
{"example": datasets.Value("string")} # These are the features of your dataset like images, labels ...
|
58 |
+
)
|
59 |
+
|
60 |
+
return datasets.DatasetInfo(
|
61 |
+
description=_DESCRIPTION,
|
62 |
+
features=features,
|
63 |
+
supervised_keys=None,
|
64 |
+
homepage=_HOMEPAGE,
|
65 |
+
license=_LICENSE,
|
66 |
+
citation=_CITATION,
|
67 |
+
)
|
68 |
+
|
69 |
+
def _split_generators(self, dl_manager):
|
70 |
+
"""Returns SplitGenerators."""
|
71 |
+
|
72 |
+
train_path = dl_manager.download_and_extract(_URLs["train"])
|
73 |
+
test_path = dl_manager.download_and_extract(_URLs["test"])
|
74 |
+
dev_path = dl_manager.download_and_extract(_URLs["dev"])
|
75 |
+
|
76 |
+
return [
|
77 |
+
datasets.SplitGenerator(
|
78 |
+
name=datasets.Split.TRAIN,
|
79 |
+
# These kwargs will be passed to _generate_examples
|
80 |
+
gen_kwargs={
|
81 |
+
"filepath": train_path,
|
82 |
+
"split": "train",
|
83 |
+
},
|
84 |
+
),
|
85 |
+
datasets.SplitGenerator(
|
86 |
+
name=datasets.Split.TEST,
|
87 |
+
# These kwargs will be passed to _generate_examples
|
88 |
+
gen_kwargs={"filepath": test_path, "split": "test"},
|
89 |
+
),
|
90 |
+
datasets.SplitGenerator(
|
91 |
+
name=datasets.Split.VALIDATION,
|
92 |
+
# These kwargs will be passed to _generate_examples
|
93 |
+
gen_kwargs={
|
94 |
+
"filepath": dev_path,
|
95 |
+
"split": "dev",
|
96 |
+
},
|
97 |
+
),
|
98 |
+
]
|
99 |
+
|
100 |
+
def _generate_examples(self, filepath, split):
|
101 |
+
""" Yields examples. """
|
102 |
+
with open(filepath, encoding="utf-8") as f:
|
103 |
+
for id_, row in enumerate(f):
|
104 |
+
yield id_, {
|
105 |
+
"example": row.rstrip(),
|
106 |
+
}
|
dataset_infos.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"default": {"description": "Corpus of domain names scraped from Common Crawl and manually annotated to add word boundaries (e.g. \"commoncrawl\" to \"common crawl\"). Breaking domain names such as \"openresearch\" into component words \"open\" and \"research\" is important for applications such as Text-to-Speech synthesis and web search. Common Crawl is an open repository of web crawl data that can be accessed and analyzed by anyone. Specifically, we scraped the plaintext (WET) extracts for domain names from URLs that contained diverse letter casing (e.g. \"OpenBSD\"). Although in the previous example, segmentation is trivial using letter casing, this was not always the case (e.g. \"NASA\"), so we had to manually annotate the data. The dataset is stored as plaintext file where each line is an example of space separated segments of a domain name. The examples are stored in their original letter casing, but harder and more interesting examples can be generated by lowercasing the input first.", "citation": "@inproceedings{zrs2020urlsegmentation,\n title={Semi-supervised URL Segmentation with Recurrent Neural Networks Pre-trained on Knowledge Graph Entities},\n author={Hao Zhang and Jae Ro and Richard William Sproat},\n booktitle={The 28th International Conference on Computational Linguistics (COLING 2020)},\n year={2020}\n}\n", "homepage": "https://github.com/google-research-datasets/common-crawl-domain-names", "license": "MIT License", "features": {"example": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "crawl_domain", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 321134, "num_examples": 17572, "dataset_name": "crawl_domain"}, "test": {"name": "test", "num_bytes": 39712, "num_examples": 2170, "dataset_name": "crawl_domain"}, "validation": {"name": "validation", "num_bytes": 36018, "num_examples": 1953, "dataset_name": "crawl_domain"}}, "download_checksums": {"https://raw.githubusercontent.com/google-research-datasets/common-crawl-domain-names/master/data/train.txt": {"num_bytes": 268410, "checksum": "b365c298088374e5d0b59f2092f7a750f5d393f1728e465e7ecd6db0ac0a70a9"}, "https://raw.githubusercontent.com/google-research-datasets/common-crawl-domain-names/master/data/test.txt": {"num_bytes": 33198, "checksum": "5413bd66e817fb5e84b4ef10121eddf7ee3b51922d84f71027cf1b3be66fb290"}, "https://raw.githubusercontent.com/google-research-datasets/common-crawl-domain-names/master/data/eval.txt": {"num_bytes": 30155, "checksum": "c3b4e500a57159f18310b2ad52297b6d56577894f25666c639c018fb91992b9a"}}, "download_size": 331763, "post_processing_size": null, "dataset_size": 396864, "size_in_bytes": 728627}}
|
dummy/1.0.0/dummy_data.zip
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d63a7676bb940943fb882cb8700b17e3073b935c3f19fbac57b430124aa0dab
|
3 |
+
size 688
|