public class NumberPattern extends PatternItem
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberPattern.Ordinal |
| Constructor and Description |
|---|
NumberPattern() |
NumberPattern(int min,
int max) |
NumberPattern(int min,
int max,
NumberPattern.Ordinal ordinal) |
NumberPattern(NumberPattern.Ordinal ordinal) |
| Modifier and Type | Method and Description |
|---|---|
PatternMatchResult |
match(Document doc,
List<Annotation> tokens,
int offset)
if tokens[offset] matches the Pattern Item, return a PatternMatchResult
containing the normalized value of the matched token along with
the span of the matched token, else
null. |
public NumberPattern(int min,
int max,
NumberPattern.Ordinal ordinal)
public NumberPattern(int min,
int max)
public NumberPattern(NumberPattern.Ordinal ordinal)
public NumberPattern()
public PatternMatchResult match(Document doc, List<Annotation> tokens, int offset)
PatternItemnull.match in class PatternItemCopyright © 2016 New York University. All rights reserved.