public class PatternSet extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
limit
applies the rules in the PatternSet to the specified span of the document.
|
InternalPatternNode |
rootNode |
| Constructor and Description |
|---|
PatternSet()
creates an empty PatternSet (with no rules)
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(PatternRule rule)
adds a rule to a PatternSet
|
void |
apply(Document doc)
applies the rules in the PatternSet to the entire document.
|
void |
apply(Document doc,
Span span) |
void |
makePatternGraph(PatternCollection collection)
converts the set of rules in this pattern set into
a graph.
|
public InternalPatternNode rootNode
public static int limit
public void addRule(PatternRule rule)
public void makePatternGraph(PatternCollection collection)
public void apply(Document doc)
Copyright © 2016 New York University. All rights reserved.