pub enum TokenID {
Single(usize),
Range(usize, usize),
Empty(usize, usize),
}Expand description
The id of a Token.
Variants§
Single(usize)
The standard, single index.
Range(usize, usize)
A range of tokens that form an ID. Denoted by a hyphen in CoNLL-U format (e.g. 1-3).
Empty(usize, usize)
To represent ellipses, ConLL-U allows to create sub-indices of the preceding regular node (or 0 if it is a the beginning of a sentence). They are separated by a decimal point and represent an “empty” node.
Trait Implementations§
impl Copy for TokenID
impl Eq for TokenID
impl StructuralPartialEq for TokenID
Auto Trait Implementations§
impl Freeze for TokenID
impl RefUnwindSafe for TokenID
impl Send for TokenID
impl Sync for TokenID
impl Unpin for TokenID
impl UnwindSafe for TokenID
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