greek-cc / README.md
alexliap's picture
Update dataset card: near-duplicates are now removed, not tagged
d5fb001
|
Raw History Blame
5.41 kB
metadata
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

Greek Common Crawl

Greek Common Crawl

A FineWeb-style Greek-language text dataset extracted from Common Crawl, following the FineWeb-2 recipe adapted for Greek (ell_Grek).

Pipeline source: github.com/alexliap/greek-cc.

Dataset structure

Each processed crawl (e.g. CC-MAIN-2024-22) contributes two kinds of files:

  • raw/<crawl>/chunk=<offset>/*.parquet: per-chunk survivors, written as soon as each ~100k-row manifest chunk 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: 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).

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>/chunk=<offset>/ (pre-dedup) against <crawl>/ (post-dedup) on (warc_filename, warc_record_offset).

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 for boilerplate removal.
  3. Filter, in order:
    • URL filter (blocklists)
    • Language ID (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, matching FineWeb-2's ell_Grek. Built from Common Crawl WARC data, so Common Crawl's own Terms of Use also apply to the underlying web content.

References

Status

Crawls are processed and uploaded incrementally. Check which <crawl>/ directories exist for what's finished, and raw/<crawl>/ for crawls still in progress.