public class AcePatternNode extends Object
| Constructor and Description |
|---|
AcePatternNode(AceMention mention) |
AcePatternNode(String s)
create an AcePatternNode from a line produced by the 'write' method.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AceMention |
getMatchedMention() |
int |
hashCode() |
int |
match(AceMention m)
returns a score reflecting the degree of match (similarity) between
this node and mention 'm'.
|
AceMention |
matchFromLeft(int posn,
Document doc,
AceDocument aceDoc)
looks for an entity mention matching the AcePatternNode starting at position
posn in Document doc. |
AceMention |
matchFromRight(int posn,
Document doc,
AceDocument aceDoc)
looks for an entity mention matching the AcePatternNode ending at position
posn in Document doc. |
int |
matchOnHead(int posn,
Document doc,
AceDocument aceDoc)
looks for an entity mention matching the AcePatternNode whose head
begins at position
posn in Document doc. |
String |
toString() |
void |
write(PrintWriter pw) |
public AcePatternNode(AceMention mention)
public AcePatternNode(String s)
public void write(PrintWriter pw)
public int match(AceMention m)
public AceMention matchFromLeft(int posn, Document doc, AceDocument aceDoc)
posn in Document doc. Returns the entity mention
if one is found (in the AceDocument aceDoc), otherwise null.public AceMention matchFromRight(int posn, Document doc, AceDocument aceDoc)
posn in Document doc. Returns the entity mention
if one is found (in the AceDocument aceDoc), otherwise null.public int matchOnHead(int posn,
Document doc,
AceDocument aceDoc)
posn in Document doc.
Returns the entity mention if one is found (in the AceDocument
aceDoc), otherwise null.public AceMention getMatchedMention()
Copyright © 2016 New York University. All rights reserved.