pub struct LoadableDatasetId(/* private fields */);Expand description
Dataset identifier guaranteed to be loadable by DatasetLoader.
This is a thin wrapper over DatasetId that enforces loader support via
TryFrom<DatasetId> / FromStr.
Implementations§
Methods from Deref<Target = DatasetId>§
Sourcepub fn download_url(&self) -> &'static str
pub fn download_url(&self) -> &'static str
Get the download URL for this dataset.
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get the description.
Sourcepub fn categories(&self) -> &'static [&'static str]
pub fn categories(&self) -> &'static [&'static str]
Get the category tags for this dataset.
Categories are used for discovery/filtering (domain, language family, annotation properties). They are not intended to encode benchmark outcomes.
Sourcepub fn entity_types(&self) -> &'static [&'static str]
pub fn entity_types(&self) -> &'static [&'static str]
Get the entity types for this dataset.
Sourcepub fn annotation_scheme(&self) -> Option<&'static str>
pub fn annotation_scheme(&self) -> Option<&'static str>
Get the annotation scheme for this dataset.
Sourcepub fn splits(&self) -> &'static [&'static str]
pub fn splits(&self) -> &'static [&'static str]
Get available data splits (train, dev, test, etc.).
Sourcepub fn tasks(&self) -> &'static [&'static str]
pub fn tasks(&self) -> &'static [&'static str]
Get supported NLP tasks (ner, coref, re, el, etc.). Datasets often support multiple tasks via their annotations.
Sourcepub fn tasks_typed(&self) -> Vec<Task>
pub fn tasks_typed(&self) -> Vec<Task>
Get supported tasks as typed Task values (best-effort).
This keeps the registry as the single source of truth (strings), while giving downstream code a type-safe view for control flow and compatibility checks.
Unknown/out-of-scope task strings are ignored.
Sourcepub fn expected_docs(&self) -> Option<u32>
pub fn expected_docs(&self) -> Option<u32>
Get expected document count for validation.
Sourcepub fn access_status(&self) -> DatasetAccessibility
pub fn access_status(&self) -> DatasetAccessibility
Get the access status for this dataset.
Indicates how to obtain the dataset: public download, HuggingFace, contact authors, not yet released, etc.
Sourcepub fn mirror_url(&self) -> Option<&'static str>
pub fn mirror_url(&self) -> Option<&'static str>
Get mirror URL for this dataset (alternative download location).
Sourcepub fn depends_on(&self) -> Option<&'static str>
pub fn depends_on(&self) -> Option<&'static str>
Get dependency dataset name (e.g., GCDC depends on “Yahoo L6 corpus”).
Sourcepub fn is_automatable(&self) -> bool
pub fn is_automatable(&self) -> bool
Check if this dataset can be automatically downloaded.
Sourcepub fn requires_license(&self) -> bool
pub fn requires_license(&self) -> bool
Check if this dataset requires a license agreement (no public URL).
Sourcepub fn has_spdx_license(&self) -> bool
pub fn has_spdx_license(&self) -> bool
Check if this dataset has SPDX-compatible license.
Sourcepub fn cache_filename(&self) -> &'static str
pub fn cache_filename(&self) -> &'static str
Get the cache filename (derived from variant name).
Sourcepub fn is_coreference(&self) -> bool
pub fn is_coreference(&self) -> bool
Check if this dataset is for coreference resolution.
Sourcepub fn is_biomedical(&self) -> bool
pub fn is_biomedical(&self) -> bool
Check if this dataset is biomedical domain.
Check if this dataset is social media domain.
Sourcepub fn is_relation_extraction(&self) -> bool
pub fn is_relation_extraction(&self) -> bool
Check if this dataset is for relation extraction.
Sourcepub fn is_multilingual(&self) -> bool
pub fn is_multilingual(&self) -> bool
Check if this dataset is multilingual.
Sourcepub fn is_historical(&self) -> bool
pub fn is_historical(&self) -> bool
Check if this dataset is for historical texts.
Sourcepub fn is_bias_evaluation(&self) -> bool
pub fn is_bias_evaluation(&self) -> bool
Check if this dataset is for bias evaluation.
Sourcepub fn is_indigenous(&self) -> bool
pub fn is_indigenous(&self) -> bool
Check if this dataset is indigenous language.
Sourcepub fn is_african_language(&self) -> bool
pub fn is_african_language(&self) -> bool
Check if this dataset is an African language dataset.
Sourcepub fn is_literary(&self) -> bool
pub fn is_literary(&self) -> bool
Check if this dataset is for literary/fiction texts.
Sourcepub fn is_nested_ner(&self) -> bool
pub fn is_nested_ner(&self) -> bool
Check if this dataset has nested NER annotations.
Sourcepub fn is_discontinuous_ner(&self) -> bool
pub fn is_discontinuous_ner(&self) -> bool
Check if this dataset has discontinuous NER annotations.
Sourcepub fn is_dialogue(&self) -> bool
pub fn is_dialogue(&self) -> bool
Check if this dataset is dialogue/conversational.
Sourcepub fn is_event_coref(&self) -> bool
pub fn is_event_coref(&self) -> bool
Check if this dataset is for cross-document event coreference.
Sourcepub fn is_ancient(&self) -> bool
pub fn is_ancient(&self) -> bool
Check if this dataset is for ancient/classical languages.
Sourcepub fn is_abstract_anaphora(&self) -> bool
pub fn is_abstract_anaphora(&self) -> bool
Check if this dataset is for abstract anaphora/discourse deixis.
Sourcepub fn is_low_resource(&self) -> bool
pub fn is_low_resource(&self) -> bool
Check if this dataset is for low-resource/endangered languages.
Sourcepub fn is_constructed(&self) -> bool
pub fn is_constructed(&self) -> bool
Check if this dataset is for constructed languages.
Sourcepub fn is_arcane_domain(&self) -> bool
pub fn is_arcane_domain(&self) -> bool
Check if this dataset is for arcane/specialized domains.
Sourcepub fn is_adversarial(&self) -> bool
pub fn is_adversarial(&self) -> bool
Check if this dataset is for adversarial/robustness evaluation.
Sourcepub fn is_entity_linking(&self) -> bool
pub fn is_entity_linking(&self) -> bool
Check if this dataset is for entity linking / named entity disambiguation.
Sourcepub fn is_long_document(&self) -> bool
pub fn is_long_document(&self) -> bool
Check if this dataset is for long-document processing (>10k tokens).
Sourcepub fn is_clinical(&self) -> bool
pub fn is_clinical(&self) -> bool
Check if this dataset is clinical/medical domain.
Sourcepub fn tasks_or_inferred(&self) -> Vec<&'static str>
pub fn tasks_or_inferred(&self) -> Vec<&'static str>
Get tasks with fallback to category-based inference.
Many datasets don’t have explicit tasks defined but have task-like
categories (ner, coref, relation_extraction). This method returns
explicit tasks if defined, otherwise infers from categories.
§Migration Note
This exists for backwards compatibility. New datasets should use
the tasks field explicitly. Categories should be domain/property
focused (biomedical, multilingual, nested) not task-like.
Sourcepub fn supports_ner(&self) -> bool
pub fn supports_ner(&self) -> bool
Check if this is a NER dataset (explicit or inferred).
Sourcepub fn supports_coref(&self) -> bool
pub fn supports_coref(&self) -> bool
Check if this is a coreference dataset (explicit or inferred).
Sourcepub fn supports_re(&self) -> bool
pub fn supports_re(&self) -> bool
Check if this is a relation extraction dataset (explicit or inferred).
Sourcepub fn requires_hf_token(&self) -> bool
pub fn requires_hf_token(&self) -> bool
Whether this dataset is known to require HF_TOKEN (or equivalent) to download.
This is used to keep “automatic” workflows (cache warming, randomized matrices) usable by default while still allowing explicit attempts when a token is provided.
Sourcepub fn is_automatable_download(&self) -> bool
pub fn is_automatable_download(&self) -> bool
Whether this dataset is currently automatable by our loader without manual intervention.
This is intentionally conservative: it can be false for datasets that are “public”
but do not offer a stable export path we can consume yet.
Sourcepub fn default_metadata(&self) -> DatasetMetadata
pub fn default_metadata(&self) -> DatasetMetadata
Get default metadata for this dataset.
Delegates to registry methods.
Trait Implementations§
Source§impl Clone for LoadableDatasetId
impl Clone for LoadableDatasetId
Source§fn clone(&self) -> LoadableDatasetId
fn clone(&self) -> LoadableDatasetId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LoadableDatasetId
Source§impl Debug for LoadableDatasetId
impl Debug for LoadableDatasetId
Source§impl Deref for LoadableDatasetId
impl Deref for LoadableDatasetId
impl Eq for LoadableDatasetId
Source§impl From<LoadableDatasetId> for DatasetId
impl From<LoadableDatasetId> for DatasetId
Source§fn from(value: LoadableDatasetId) -> Self
fn from(value: LoadableDatasetId) -> Self
Source§impl FromStr for LoadableDatasetId
impl FromStr for LoadableDatasetId
Source§impl Hash for LoadableDatasetId
impl Hash for LoadableDatasetId
Source§impl PartialEq for LoadableDatasetId
impl PartialEq for LoadableDatasetId
Source§fn eq(&self, other: &LoadableDatasetId) -> bool
fn eq(&self, other: &LoadableDatasetId) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoadableDatasetId
Auto Trait Implementations§
impl Freeze for LoadableDatasetId
impl RefUnwindSafe for LoadableDatasetId
impl Send for LoadableDatasetId
impl Sync for LoadableDatasetId
impl Unpin for LoadableDatasetId
impl UnsafeUnpin for LoadableDatasetId
impl UnwindSafe for LoadableDatasetId
Blanket Implementations§
impl<T> Boilerplate for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more