--- 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: raw data_files: - split: train path: raw/**/*.parquet size_categories: - 10M/chunk_.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. - **`/*.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 `/*.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 `/*.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//` (pre-dedup) against `/` (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).