File size: 8,318 Bytes
9550799
 
 
 
 
 
 
 
 
 
 
 
 
 
91d354b
2e14b44
 
 
cf31e6d
 
 
 
 
2e14b44
cf31e6d
 
 
2e14b44
cf31e6d
 
 
2e14b44
eb15a90
 
 
 
0c29a89
 
 
 
e8d499d
 
 
 
c84e7f8
 
 
 
f9eda3f
 
 
 
2e20e08
 
 
 
cf31e6d
 
 
2e14b44
9c8319c
2e20e08
9550799
 
87c5082
9550799
838d947
9550799
89eb0d7
9550799
4fdd6b6
 
2cb4031
 
9550799
 
cf31e6d
9550799
ec6c067
cf31e6d
2e14b44
cf31e6d
9550799
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ec6c067
9550799
2e14b44
 
 
 
 
cf31e6d
 
 
 
 
2e14b44
 
cf31e6d
2e14b44
 
cf31e6d
 
 
 
2e14b44
9550799
 
89eb0d7
 
9550799
 
89eb0d7
9550799
 
 
89eb0d7
 
d5fb001
9550799
89eb0d7
9550799
4fdd6b6
 
 
 
2cb4031
4fdd6b6
 
 
9550799
 
 
bc9b744
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
---
language:
- el
license_name: common-crawl-terms-of-use
license_link: https://commoncrawl.org/terms-of-use
pretty_name: Greek Common Crawl
task_categories:
- text-generation
- fill-mask
tags:
- greek
- common-crawl
- web-text
- fineweb
license: odc-by
configs:
- config_name: default
  data_files:
  - split: train
    path: CC-MAIN-*/*.parquet
- config_name: CC-MAIN-2024-22
  data_files:
  - split: train
    path: CC-MAIN-2024-22/*.parquet
- config_name: CC-MAIN-2024-26
  data_files:
  - split: train
    path: CC-MAIN-2024-26/*.parquet
- config_name: CC-MAIN-2024-30
  data_files:
  - split: train
    path: CC-MAIN-2024-30/*.parquet
- config_name: CC-MAIN-2024-33
  data_files:
  - split: train
    path: CC-MAIN-2024-33/*.parquet
- config_name: CC-MAIN-2024-38
  data_files:
  - split: train
    path: CC-MAIN-2024-38/*.parquet
- config_name: CC-MAIN-2024-42
  data_files:
  - split: train
    path: CC-MAIN-2024-42/*.parquet
- config_name: CC-MAIN-2024-46
  data_files:
  - split: train
    path: CC-MAIN-2024-46/*.parquet
- config_name: CC-MAIN-2024-51
  data_files:
  - split: train
    path: CC-MAIN-2024-51/*.parquet
- config_name: CC-MAIN-2025-05
  data_files:
  - split: train
    path: CC-MAIN-2025-05/*.parquet
- config_name: raw
  data_files:
  - split: train
    path: raw/**/*.parquet
size_categories:
- 100M<n<1B
---

# Greek Common Crawl

![Greek Common Crawl](./greek_cc_img.png)

A FineWeb-style Greek-language text dataset extracted from Common Crawl, following the [FineWeb-2](https://github.com/huggingface/fineweb-2) recipe adapted for Greek (`ell_Grek`).

Pipeline source: [github.com/alexliap/greek-cc](https://github.com/alexliap/greek-cc).

Crawl coverage starts at `CC-MAIN-2024-22` rather than Common Crawl's earliest snapshots: this project picks up right where the [FineWeb-2](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2) dataset's own Greek (`ell_Grek`) subset leaves off (2013 through April 2024), so it extends FineWeb-2's Greek coverage forward instead of re-extracting and re-deduping ground FineWeb-2 already covers.

## Dataset structure

Each processed crawl (e.g. `CC-MAIN-2024-22`) contributes two kinds of files, exposed as named **configs** (`load_dataset("alexliap/greek-cc", name="CC-MAIN-2024-22")`, etc. — see the viewer's dataset-config dropdown, same convention [FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb) uses):

- **`raw/<crawl>/chunk_<offset>.parquet`** (config `raw`, all crawls pooled together): per-chunk survivors, written as soon as each ~200k-row manifest chunk (100k for `CC-MAIN-2024-22`) finishes extraction and filtering. These are **pre-deduplication**: near-duplicate detection only runs once a whole crawl is fully processed, so documents here may have near-duplicates elsewhere in the same crawl.
- **`<crawl>/*.parquet`** (one config per crawl, e.g. `CC-MAIN-2024-22`, plus a `default` config that pools every finished crawl's final output together): the final, whole-crawl output, written once every chunk is done. Near-duplicates have been resolved down to one surviving document per cluster (see below).

New crawls need their own config entry added to this card's `configs` once they finish — it isn't inferred automatically from the file layout.

### Columns

| column | type | description |
|---|---|---|
| `id` | string | stable id (content digest) |
| `text` | string | extracted, cleaned document text |
| `crawl` | string | source crawl id, e.g. `CC-MAIN-2024-22` |
| `content_digest` | string | Common Crawl content digest |
| `url` | string | source page URL |
| `url_host_registered_domain` | string | registered domain of `url` |
| `warc_filename` | string | source WARC file in the crawl |
| `warc_record_offset` | int64 | byte offset of the WARC record |
| `language` | string | predicted language (GlotLID) |
| `language_score` | float64 | GlotLID confidence for `language` |
| `language_script` | string | predicted script |
| `minhash_cluster_id`* | int | near-duplicate cluster id |
| `minhash_cluster_size`* | int | size of that cluster |

\* only present in the final `<crawl>/*.parquet` files, not in `raw/`.

**Near-duplicates are removed.** Documents that MinHash considers near-duplicates of each other share a `minhash_cluster_id`; only one representative per cluster survives into the final `<crawl>/*.parquet` files, and `minhash_cluster_size` tells you how many documents that cluster had, i.e. how many were dropped alongside the survivor. If you want the removed documents, anti-join `raw/<crawl>/` (pre-dedup) against `<crawl>/` (post-dedup) on `(warc_filename, warc_record_offset)`.

## Loading

```python
from datasets import load_dataset

# one crawl's final, deduplicated output
ds = load_dataset("alexliap/greek-cc", name="CC-MAIN-2024-22", split="train")

# every finished crawl's final output, pooled together
ds = load_dataset("alexliap/greek-cc", split="train")  # name="default"

# all crawls' pre-dedup raw chunks, pooled together
raw = load_dataset("alexliap/greek-cc", name="raw", split="train")
```

Each finished crawl is its own config (`name=`), matching how
[FineWeb](https://huggingface.co/datasets/HuggingFaceFW/fineweb) exposes its
own monthly dumps — see the config dropdown in the dataset viewer above for
the full list.

## How it was built

1. **Manifest**: Common Crawl's columnar index is scanned for Greek-flagged records, producing a Parquet manifest of `(warc_filename, offset, length)` per candidate record.
2. **Fetch and extract**: each manifest row is range-fetched from the crawl's WARC files on S3 and run through [Trafilatura](https://github.com/adbar/trafilatura) for boilerplate removal.
3. **Filter**, in order:
   - URL filter (blocklists)
   - Language ID ([GlotLID](https://huggingface.co/cis-lmu/glotlid)), kept only if predicted language is Greek (`ell`) above a tuned confidence threshold
   - Gopher repetition filter
   - FineWeb quality filter
   - Gopher quality filter
   - all thresholds are FineWeb-2's own Greek (`ell_Grek`) config, used as-is rather than hand-tuned
4. **Clean**: FTFY (mojibake/encoding fixes), PII redaction, stray symbol line removal.
5. **Deduplicate, per-snapshot rather than per-language-global.** MinHash (14 buckets, 8 hashes per bucket, 5-grams, xxhash 64-bit, the same hashing scheme FineWeb-2 uses, run through datatrove's own signature/buckets/cluster/filter pipeline), but scoped to one crawl at a time instead of across every crawl. FineWeb-2 dedups Greek globally across its full 2013 to April 2024 span, then has to upsample surviving documents by cluster size to claw back the volume that global dedup throws away. The original FineWeb (v1) found the opposite worked better: per-snapshot dedup kept far more tokens (20T vs 4T in their ablation) and avoided the quality drop global dedup caused, where what survives skews toward ads and keyword-stuffed text. This project follows FineWeb v1's per-snapshot scope for that reason, and removes near-duplicates outright, matching both FineWeb v1 and FineWeb-2. Pre-deduplication data stays available under `raw/`, in case you want to redo deduplication globally the FineWeb-2 way, or reconstruct exactly which documents were dropped (see above).

## Source and license

Licensed under [ODC-By 1.0](https://opendatacommons.org/licenses/by/1-0/), matching FineWeb-2's `ell_Grek`. Built from [Common Crawl](https://commoncrawl.org/) WARC data, so Common Crawl's own [Terms of Use](https://commoncrawl.org/terms-of-use) also apply to the underlying web content.

## References

- [FineWeb-2 dataset](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2), whose Greek (`ell_Grek`) subset this project picks up after
- Penedo et al., [The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scale](https://arxiv.org/abs/2406.17557) (arXiv 2406.17557)
- Penedo et al., [FineWeb2: One Pipeline to Scale Them All](https://arxiv.org/abs/2506.20920) (arXiv 2506.20920)
- [datatrove](https://github.com/huggingface/datatrove), the processing library both FineWeb papers and this pipeline are built on

## Status

Crawls are processed and uploaded incrementally, oldest to newest. Live progress (per-crawl status, % complete and ETA) is tracked at the [Greek CC Progress Space](https://huggingface.co/spaces/alexliap/greek-cc-progress).