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
//! Traits defining the standard Persian NLP pipeline interfaces.
//!
//! Implementing these traits lets components be used generically — e.g. a
//! function that accepts `impl Tokenizer` works with both `WordTokenizer` and
//! `SentenceTokenizer`.
use crate;
/// Any component that normalizes Persian text.
/// Any component that splits text into tokens.
/// Any component that produces the base form (lemma) of a word.
/// Any component that assigns POS tags to a tokenized sentence.