#[non_exhaustive]pub enum Domain {
Show 16 variants
News,
Biomedical,
Scientific,
Legal,
Financial,
SocialMedia,
Wikipedia,
Literary,
Historical,
Dialogue,
Technical,
Web,
Cybersecurity,
Music,
Mixed,
Other(String),
}Expand description
Domain/genre of the dataset’s source text.
Useful for domain adaptation and transfer learning decisions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
News
News articles and journalism
Biomedical
Biomedical and clinical text
Scientific
Scientific papers and abstracts
Legal
Legal documents and contracts
Financial
Financial reports and news
SocialMedia
Social media (Twitter, Reddit, etc.)
Wikipedia
Wikipedia and encyclopedic text
Literary
Literary fiction and novels
Historical
Historical documents
Dialogue
Conversational/dialogue text
Technical
Technical documentation
Web
Web text (general)
Cybersecurity
Cybersecurity reports and threat intelligence
Music
Music-related text (lyrics, reviews, metadata)
Mixed
Multiple domains
Other(String)
Other specific domain
Trait Implementations§
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>,
Deserialize this value from the given Serde deserializer. Read more
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§
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
Mutably borrows from an owned value. Read more