public class SemanticGraphEnhancer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static SemgrexPattern |
QUANT_MOD_PATTERN |
static SemgrexPattern |
QUANT_MOD_PATTERN2 |
static SemgrexPattern |
QUANT_MOD_PATTERN3 |
Constructor and Description |
---|
SemanticGraphEnhancer() |
Modifier and Type | Method and Description |
---|---|
static void |
collapseCompounds(SemanticGraph sg) |
static void |
collapseParticles(SemanticGraph sg)
Collapses verbs with verbal particles.
|
static void |
enhance(SemanticGraph sg)
Performs all the enhancements in the following order:
Process quantificational modifiers
Collapse verbs with particles, and compound nouns.
Resolve pronouns.
Resolve plural nouns.
|
static void |
main(java.lang.String[] args) |
static void |
processQuanftificationModifiers(SemanticGraph sg)
Turns quantifier-like expressions such as "a lot of" into
multi-word expressions and promotes the original nominal modifier
to the head of phrase.
|
static void |
resolvePlurals(SemanticGraph sg)
Creates copies of plural nodes which match any of the above defined patterns.
|
static void |
resolvePronouns(SemanticGraph sg)
Resolves pronouns in the semantic graph and replaces
the pronominal node in the semantic graph with the node
of its antecedent.
|
public static final SemgrexPattern QUANT_MOD_PATTERN
public static final SemgrexPattern QUANT_MOD_PATTERN2
public static final SemgrexPattern QUANT_MOD_PATTERN3
public static void processQuanftificationModifiers(SemanticGraph sg)
public static void resolvePlurals(SemanticGraph sg)
sg
- public static void collapseCompounds(SemanticGraph sg)
public static void collapseParticles(SemanticGraph sg)
sg
- public static void resolvePronouns(SemanticGraph sg)
sg
- A SemanticGraph.public static void enhance(SemanticGraph sg)
sg
- public static void main(java.lang.String[] args) throws java.io.IOException
args
- java.io.IOException