#[non_exhaustive]pub enum Domain {
Show 21 variants
News,
SocialMedia,
Biomedical,
Financial,
Legal,
Scientific,
Conversational,
Technical,
Historical,
Sports,
Entertainment,
Politics,
Ecommerce,
Academic,
Email,
Weather,
Travel,
Food,
RealEstate,
Cybersecurity,
Multilingual,
}Expand description
Domain classification for NER examples.
Domains help organize datasets and enable domain-specific filtering/analysis. A single example belongs to exactly one domain.
§Example
use anno_eval::eval::dataset::Domain;
let domain = Domain::News;
assert_eq!(format!("{:?}", domain), "News");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
News
News articles (CoNLL-2003 style)
SocialMedia
Social media text (WNUT style - noisy, informal)
Biomedical
Biomedical/clinical text (diseases, drugs, genes)
Financial
Financial/business text (stocks, companies, money)
Legal
Legal documents (contracts, court cases)
Scientific
Scientific/academic text (papers, abstracts)
Conversational
Conversational text (dialogue, chat)
Technical
Technical documentation (code, manuals)
Historical
Historical text (archaic language, historical figures)
Sports
Sports reporting
Entertainment
Entertainment news (movies, music, celebrities)
Politics
Political news and discourse
Ecommerce
E-commerce (products, prices, brands)
Academic
Academic text (citations, institutions)
Email communications
Weather
Weather reports and forecasts
Travel
Travel content (destinations, hotels)
Food
Food and restaurant content
RealEstate
Real estate listings
Cybersecurity
Cybersecurity (CVEs, malware, threat actors)
Multilingual
Multilingual text with native scripts
Implementations§
Trait Implementations§
impl Copy for Domain
Source§impl<'de> Deserialize<'de> for Domain
impl<'de> Deserialize<'de> for Domain
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Domain
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnsafeUnpin for Domain
impl UnwindSafe for Domain
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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