public class EventPattern extends Object
| Modifier and Type | Field and Description |
|---|---|
int |
matchScore |
| Constructor and Description |
|---|
EventPattern(BufferedReader reader)
creates an EventPattern from a sequence of lines read from
reader, as written by write. |
EventPattern(EventPattern ep)
create a shallow copy of EventPattern ep.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
empty()
returns true if this is a pattern which can never match: a syntax or
PA pattern with no syntactic relations.
|
boolean |
equals(Object o) |
int |
getMatchScore() |
int |
hashCode() |
static void |
main(String[] args) |
AceEvent |
match(Span anchorExtent,
String anchor,
Document doc,
SyntacticRelationSet relations,
AceDocument aceDoc)
match an anchor and its context against the event patterns; if the
match is successful, build and return an AceEvent.
|
String |
toString()
produce a readable, one-line representation of the entire pattern
|
void |
write(PrintWriter pw)
write the event pattern to
w in a form which can easily
be reloaded |
public EventPattern(EventPattern ep)
public EventPattern(BufferedReader reader) throws IOException
reader, as written by write.IOExceptionpublic boolean empty()
public AceEvent match(Span anchorExtent, String anchor, Document doc, SyntacticRelationSet relations, AceDocument aceDoc)
public int getMatchScore()
public String toString()
public void write(PrintWriter pw)
w in a form which can easily
be reloadedpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2016 New York University. All rights reserved.