Skip to main content

LoadableDatasetId

Struct LoadableDatasetId 

Source
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§

Source§

impl LoadableDatasetId

Source

pub fn all() -> Vec<Self>

All datasets that have loading implementations.

Source

pub fn into_inner(self) -> DatasetId

Access the underlying catalog ID.

Methods from Deref<Target = DatasetId>§

Source

pub fn download_url(&self) -> &'static str

Get the download URL for this dataset.

Source

pub fn name(&self) -> &'static str

Get the human-readable name.

Source

pub fn description(&self) -> &'static str

Get the description.

Source

pub fn language(&self) -> &'static str

Get the primary language.

Source

pub fn domain(&self) -> &'static str

Get the domain category.

Source

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.

Source

pub fn entity_types(&self) -> &'static [&'static str]

Get the entity types for this dataset.

Source

pub fn license(&self) -> Option<&'static str>

Get the license for this dataset.

Source

pub fn citation(&self) -> Option<&'static str>

Get the citation for this dataset.

Source

pub fn paper_url(&self) -> Option<&'static str>

Get the paper URL for this dataset.

Source

pub fn notes(&self) -> Option<&'static str>

Get additional notes for this dataset.

Source

pub fn year(&self) -> Option<u16>

Get the publication year for this dataset.

Source

pub fn format(&self) -> Option<&'static str>

Get the data format for this dataset.

Source

pub fn annotation_scheme(&self) -> Option<&'static str>

Get the annotation scheme for this dataset.

Source

pub fn size_hint(&self) -> Option<&'static str>

Get the size hint for this dataset.

Source

pub fn example(&self) -> Option<&'static str>

Get an example snippet from this dataset.

Source

pub fn splits(&self) -> &'static [&'static str]

Get available data splits (train, dev, test, etc.).

Source

pub fn tasks(&self) -> &'static [&'static str]

Get supported NLP tasks (ner, coref, re, el, etc.). Datasets often support multiple tasks via their annotations.

Source

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.

Source

pub fn expected_docs(&self) -> Option<u32>

Get expected document count for validation.

Source

pub fn sha256(&self) -> Option<&'static str>

Get SHA256 hash for integrity verification.

Source

pub fn hf_id(&self) -> Option<&'static str>

Get HuggingFace dataset ID for automated download.

Source

pub fn hf_config(&self) -> Option<&'static str>

Get HuggingFace dataset config/subset name.

Source

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.

Source

pub fn mirror_url(&self) -> Option<&'static str>

Get mirror URL for this dataset (alternative download location).

Source

pub fn depends_on(&self) -> Option<&'static str>

Get dependency dataset name (e.g., GCDC depends on “Yahoo L6 corpus”).

Source

pub fn is_automatable(&self) -> bool

Check if this dataset can be automatically downloaded.

Source

pub fn requires_license(&self) -> bool

Check if this dataset requires a license agreement (no public URL).

Source

pub fn has_spdx_license(&self) -> bool

Check if this dataset has SPDX-compatible license.

Source

pub fn cache_filename(&self) -> &'static str

Get the cache filename (derived from variant name).

Source

pub fn is_coreference(&self) -> bool

Check if this dataset is for coreference resolution.

Source

pub fn is_biomedical(&self) -> bool

Check if this dataset is biomedical domain.

Source

pub fn is_social_media(&self) -> bool

Check if this dataset is social media domain.

Source

pub fn is_relation_extraction(&self) -> bool

Check if this dataset is for relation extraction.

Source

pub fn is_multilingual(&self) -> bool

Check if this dataset is multilingual.

Source

pub fn is_historical(&self) -> bool

Check if this dataset is for historical texts.

Source

pub fn is_bias_evaluation(&self) -> bool

Check if this dataset is for bias evaluation.

Source

pub fn is_indigenous(&self) -> bool

Check if this dataset is indigenous language.

Source

pub fn is_african_language(&self) -> bool

Check if this dataset is an African language dataset.

Source

pub fn is_literary(&self) -> bool

Check if this dataset is for literary/fiction texts.

Source

pub fn is_nested_ner(&self) -> bool

Check if this dataset has nested NER annotations.

Source

pub fn is_discontinuous_ner(&self) -> bool

Check if this dataset has discontinuous NER annotations.

Source

pub fn is_dialogue(&self) -> bool

Check if this dataset is dialogue/conversational.

Source

pub fn is_ner(&self) -> bool

Check if this dataset is NER (not coreference).

Source

pub fn is_event_coref(&self) -> bool

Check if this dataset is for cross-document event coreference.

Source

pub fn is_ancient(&self) -> bool

Check if this dataset is for ancient/classical languages.

Source

pub fn is_abstract_anaphora(&self) -> bool

Check if this dataset is for abstract anaphora/discourse deixis.

Source

pub fn is_low_resource(&self) -> bool

Check if this dataset is for low-resource/endangered languages.

Source

pub fn is_constructed(&self) -> bool

Check if this dataset is for constructed languages.

Source

pub fn is_arcane_domain(&self) -> bool

Check if this dataset is for arcane/specialized domains.

Source

pub fn is_adversarial(&self) -> bool

Check if this dataset is for adversarial/robustness evaluation.

Source

pub fn is_speech(&self) -> bool

Check if this dataset is for speech/audio NER.

Source

pub fn is_entity_linking(&self) -> bool

Check if this dataset is for entity linking / named entity disambiguation.

Source

pub fn is_long_document(&self) -> bool

Check if this dataset is for long-document processing (>10k tokens).

Source

pub fn is_clinical(&self) -> bool

Check if this dataset is clinical/medical domain.

Source

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.

Source

pub fn supports_ner(&self) -> bool

Check if this is a NER dataset (explicit or inferred).

Source

pub fn supports_coref(&self) -> bool

Check if this is a coreference dataset (explicit or inferred).

Source

pub fn supports_re(&self) -> bool

Check if this is a relation extraction dataset (explicit or inferred).

Source

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.

Source

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.

Source

pub fn default_metadata(&self) -> DatasetMetadata

Get default metadata for this dataset.

Delegates to registry methods.

Trait Implementations§

Source§

impl Clone for LoadableDatasetId

Source§

fn clone(&self) -> LoadableDatasetId

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LoadableDatasetId

Source§

impl Debug for LoadableDatasetId

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for LoadableDatasetId

Source§

type Target = DatasetId

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Eq for LoadableDatasetId

Source§

impl From<LoadableDatasetId> for DatasetId

Source§

fn from(value: LoadableDatasetId) -> Self

Converts to this type from the input type.
Source§

impl FromStr for LoadableDatasetId

Source§

type Err = Error

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for LoadableDatasetId

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for LoadableDatasetId

Source§

fn eq(&self, other: &LoadableDatasetId) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for LoadableDatasetId

Source§

impl TryFrom<DatasetId> for LoadableDatasetId

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: DatasetId) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more