Methods
| Modifier and Type |
Method and Description |
protected void |
addDependencyPathFeatures(Counter<String> features,
RelationMention rel,
EntityMention arg0,
EntityMention arg1,
List<String> types,
List<String> checklist,
Logger logger) |
boolean |
addFeatures(Counter<String> features,
RelationMention rel,
List<String> types) |
boolean |
addFeatures(Counter<String> features,
RelationMention rel,
List<String> types,
Logger logger)
Creates all features for the datum corresponding to this relation mention
Note: this assumes binary relations where both arguments are EntityMention
|
Datum<String,String> |
createDatum(RelationMention rel) |
Datum<String,String> |
createDatum(RelationMention rel,
Logger logger) |
Datum<String,String> |
createDatum(RelationMention rel,
String positiveLabel) |
static String |
dependencyPath(List<SemanticGraphEdge> edgePath,
IndexedWord node) |
static List<String> |
dependencyPathAsList(List<SemanticGraphEdge> edgePath,
IndexedWord node,
boolean generalize) |
static String |
generalizedDependencyPath(List<SemanticGraphEdge> edgePath,
IndexedWord node) |
String |
getFeature(RelationMention rel,
String featureType) |
Set<String> |
getFeatures(RelationMention rel,
String featureType) |
void |
setDoNotLexicalizeFirstArgument(boolean doNotLexicalizeFirstArg) |