public abstract class PatternItem extends Object
| Constructor and Description |
|---|
PatternItem() |
| Modifier and Type | Method and Description |
|---|---|
abstract 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 abstract PatternMatchResult match(Document doc, List<Annotation> tokens, int offset)
null.Copyright © 2016 New York University. All rights reserved.