public class SimpleParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
digit |
protected static int |
dot |
protected static int |
letter |
protected static int |
punctuation |
protected static int |
returnc |
| Constructor and Description |
|---|
SimpleParser() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<Span> |
tokenize2Spans(String text,
boolean includePunctuation)
Tokenize to an ArrayList of Spans, regardless of sentences or paragraphs
|
protected static final int punctuation
protected static final int letter
protected static final int digit
protected static final int dot
protected static final int returnc
public static ArrayList<Span> tokenize2Spans(String text, boolean includePunctuation)
text - The input text string for tokenizationincludePunctuation - Whether include punctuations when tokenizingCopyright © 2017 The Department of Biomedical Informatics, University of Utah. All rights reserved.