public class UniversalGrammaticalStructure extends GrammaticalStructure
GrammaticalStructure.Extras
allTypedDependencies, CoNLLX_FieldCount, CoNLLX_GovField, CoNLLX_POSField, CoNLLX_RelnField, CoNLLX_WordField, puncFilter, tagFilter, typedDependencies
Constructor and Description |
---|
UniversalGrammaticalStructure(java.util.List<TypedDependency> projectiveDependencies,
TreeGraphNode root) |
Modifier and Type | Method and Description |
---|---|
static void |
addCaseMarkerForConjunctions(SemanticGraph sg)
Post-process graph and copy over case markers in case the PP-complement
is conjoined.
|
static void |
addCaseMarkerInformation(SemanticGraph sg) |
static void |
addConjInformation(SemanticGraph sg)
Adds the type of conjunction to all conjunct relations.
|
static void |
addExtraNSubj(SemanticGraph sg) |
static void |
addRef(SemanticGraph sg,
java.util.regex.Pattern relativizingWordPattern) |
static void |
collapseReferent(SemanticGraph sg) |
static void |
propagateConjuncts(SemanticGraph sg) |
addEnhancements, allTypedDependencies, buildCoNLLXGrammaticalStructure, collapseDependencies, collapseDependenciesTree, correctDependencies, extraTreeDepFilter, fromStringReps, getExtras, getGrammaticalRelation, getGrammaticalRelation, getRoots, getTreeDeps, isConnected, main, postProcessDependencies, readCoNLLXGrammaticalStructureCollection, root, toString, typedDependencies, typedDependencies, typedDependencies, typedDependenciesCCprocessed, typedDependenciesCCprocessed, typedDependenciesCCprocessed, typedDependenciesCollapsed, typedDependenciesCollapsed, typedDependenciesCollapsed, typedDependenciesCollapsedTree, typedDependenciesEnhanced, typedDependenciesEnhancedPlusPlus
public UniversalGrammaticalStructure(java.util.List<TypedDependency> projectiveDependencies, TreeGraphNode root)
public static void addRef(SemanticGraph sg, java.util.regex.Pattern relativizingWordPattern)
public static void collapseReferent(SemanticGraph sg)
public static void addExtraNSubj(SemanticGraph sg)
public static void propagateConjuncts(SemanticGraph sg)
public static final void addCaseMarkerInformation(SemanticGraph sg)
public static void addCaseMarkerForConjunctions(SemanticGraph sg)
sg
- public static void addConjInformation(SemanticGraph sg)
cc(Marie, and)
, conj(Marie, Chris)
and conj(Marie, John)
become cc(Marie, and)
, conj:and(Marie, Chris)
and conj:and(Marie, John)
.
sg
- A SemanticGraph from a sentence