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
use crateCitation;
use crateTokenizer;
/**!
This is eyecite's main workhorse function. Given a string of text
(e.g., a judicial opinion or other legal document), return a list of
[`eyecite.models.Citation`](models::Citation) objects representing the citations found
in the document.
Args:
plain_text:
The text to parse. You may wish to use the 'eyecite.clean.clean_text'
function to pre-process your text
before passing it here.
remove_ambiguous:
Whether to remove citations that might refer to more
than one reporter and can't be narrowed down by date.
tokenizer:
An instance of a Tokenizer object. See 'eyecite.tokenizers'
for information about available tokenizers. Uses the
'eyecite.tokenizers.AhocorasickTokenizer' by default.
Returns:
A list of 'eyecite.models.CitationBase' objects
*/