--- license: cc-by-sa-4.0 language: - en tags: - biology - ecology - marine - corals - taxonomy - embeddings - scleractinia pretty_name: "CoralText Hard Corals: Text Traits for Embedding" size_categories: - 1K= 4` (≈465 species with substantial content) **or** - Embed the `wikipedia` tier alone (261 species) for maximum prose quality, **or** - Use everything, but be aware the deep-sea cluster is partly an artifact of sparsity. This isn't a hidden defect it's a property of the underlying data, surfaced as a column so the choice is yours. ## Coverage summary | `text_source` | Species | Notes | |---|---|---| | `wikipedia` | 261 | Real article prose, ~330-word median. | | `ctd_traits` | 882 | Sentence templated from structured traits. | | `none` | 561 | No description available; taxonomy + IDs only. | | **Total with text** | **1,143 (67%)** | | | **Total rows** | **1,704** | | Where a species has both a Wikipedia article and CTD traits, Wikipedia wins — real prose is richer than a templated sentence. ## Example usage ```python from datasets import load_dataset ds = load_dataset("xquantize/coraltext-hard-corals", split="train") # Species with substantial text, ready to embed rich = ds.filter(lambda r: r["text_richness"] is not None and r["text_richness"] >= 4) print(len(rich), "species with rich text") texts = rich["text"] # embeddings = your_model.encode(texts) # e.g. sentence-transformers ``` ## Provenance This dataset combines four public sources: - **GBIF Backbone Taxonomy** (gbif.org) the initial species list for order Scleractinia. - **World Register of Marine Species / WoRMS** (marinespecies.org) taxonomic validation, synonym resolution and AphiaIDs. - **Coral Trait Database / CTD** (coraltraits.org) structured ecological traits. - **English Wikipedia**, resolved via **Wikidata** (wikidata.org) species description prose. Snapshot generated August 2026. ## Licensing **Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).** The `text` column incorporates English Wikipedia prose, which is CC BY-SA 4.0 a share-alike license. That obligation propagates to any dataset that redistributes the text, so the dataset as a whole is BY-SA 4.0. If you build on it and redistribute, you must (a) attribute the sources below and (b) release your derivative under a compatible share-alike license. Component terms: - English Wikipedia text — CC BY-SA 4.0. - Coral Trait Database — CC BY 4.0 (attribution). - GBIF Backbone Taxonomy — attribution; cite the specific backbone/download. - WoRMS — attribution per WoRMS terms of use. **Underlying sources:** - **Coral Trait Database** Madin, J.S. et al. (2016). *The Coral Trait Database, a curated database of trait information for coral species from the global oceans.* Scientific Data 3:160017. - **Octocoral Trait Database** (now merged into CTD; explains the expanded species list) Scientific Data (2025). - **GBIF** cite the specific download DOI generated at export; otherwise cite the GBIF Backbone Taxonomy. - **WoRMS** WoRMS Editorial Board (2026). *World Register of Marine Species.*