pub enum NamedEntityKind {
Person,
Place,
Org,
}Expand description
Named entity category assigned by the NE gazetteer.
Used as the payload of TokenKind::Named. Stored here (rather than in
ne.rs) to keep TokenKind self-contained and avoid circular module
dependencies.
Variants§
Person
A person — individual, title used as name, or prominent public figure.
Place
A place — country, province, city, or geographic region.
Org
An organisation — company, government body, institution, or brand.
Implementations§
Trait Implementations§
Source§impl Clone for NamedEntityKind
impl Clone for NamedEntityKind
Source§fn clone(&self) -> NamedEntityKind
fn clone(&self) -> NamedEntityKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NamedEntityKind
impl Debug for NamedEntityKind
Source§impl Hash for NamedEntityKind
impl Hash for NamedEntityKind
Source§impl PartialEq for NamedEntityKind
impl PartialEq for NamedEntityKind
impl Copy for NamedEntityKind
impl Eq for NamedEntityKind
impl StructuralPartialEq for NamedEntityKind
Auto Trait Implementations§
impl Freeze for NamedEntityKind
impl RefUnwindSafe for NamedEntityKind
impl Send for NamedEntityKind
impl Sync for NamedEntityKind
impl Unpin for NamedEntityKind
impl UnsafeUnpin for NamedEntityKind
impl UnwindSafe for NamedEntityKind
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