pub enum UPOS {
Show 16 variants
ADJ,
ADP,
ADV,
AUX,
CCONJ,
DET,
INTJ,
NOUN,
NUM,
PART,
PRON,
PROPN,
PUNCT,
SCONJ,
SYM,
VERB,
}
Expand description
Represents the universal parts of speech as outlined by universaldependencies.org.
Variants§
ADJ
Adjective
ADP
Adposition
ADV
Adverb
AUX
Auxiliary
CCONJ
Coordinating conjunction
DET
Determiner
INTJ
Interjection
NOUN
Noun
NUM
Numeral
PART
Particle
PRON
Pronoun
PROPN
Proper noun
PUNCT
Punctuation
SCONJ
Subordinating conjunction
SYM
Symbol
VERB
Verb
Implementations§
Source§impl UPOS
impl UPOS
pub fn from_conllu(other: UPOS) -> Option<Self>
pub fn is_nominal(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UPOS
impl<'de> Deserialize<'de> for UPOS
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
Source§impl Ord for UPOS
impl Ord for UPOS
Source§impl PartialOrd for UPOS
impl PartialOrd for UPOS
impl Copy for UPOS
impl Eq for UPOS
impl StructuralPartialEq for UPOS
Auto Trait Implementations§
impl Freeze for UPOS
impl RefUnwindSafe for UPOS
impl Send for UPOS
impl Sync for UPOS
impl Unpin for UPOS
impl UnwindSafe for UPOS
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
Compare self to
key
and return true
if they are equal.