1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/// A single word token.
pub type Token = String;
/// A POS tag string (e.g. "NOUN", "VERB", "ADJ").
pub type Tag = String;
/// A token paired with its POS tag.
pub type TaggedToken = ;
/// An ordered list of tokens representing one sentence.
pub type Sentence = ;
/// A sentence where every token carries its POS tag.
pub type TaggedSentence = ;
/// An IOB tag for chunking (e.g. "B-NP", "I-VP", "O").
pub type IobTag = String;
/// A token with its POS tag and IOB chunk tag.
pub type ChunkedToken = ;
/// A full sentence of chunked tokens.
pub type ChunkedSentence = ;
/// A word entry from the lexicon: (frequency, part-of-speech tags).
/// Parsed verb roots: past stem and present stem.