SemanticGraph
objects.See: Description
Class | Description |
---|---|
AddDep |
Adds a new dependent node, based off of a prototype IndexedWord, with the given relation.
|
AddEdge |
This adds a given GrammaticalRelation between
two named nodes in the graph.
|
AddNode | |
CollapseSubtree |
Collapses a subtree into a single node.
|
CombineMWT |
Combines two or more words into one MWT
For the most part, the nodes themselves are unchanged, but the nodes now have the CoreAnnotations representing MWTness added This is a convenience operation which exists because the basic version of it using EditNode is a bit of a pain |
DeleteGraphFromNode |
This destroys the subgraph starting from the given node.
|
DeleteLeaf |
This action removes all incoming edges for the given node.
|
EditNode |
Edit an existing node to have new attributes.
|
KillAllIncomingEdges |
This action removes all incoming edges for the given node.
|
KillNonRootedNodes |
This is used to clean up a graph, removing nodes that cannot possibly reach a root.
|
MergeNodes |
Combines two words into one word
This requires one of the nodes to be the head of a phrase of the words, and the dependent words can't have any extra edges in or out of that subgraph The word and lemma will be the combination of the words, squished together. |
ProcessSsurgeonRequest | |
ReattachNamedEdge |
Given a named edge, reconnect that edge elsewhere in the graph, changing either the gov and/or dep.
|
RelabelNamedEdge |
Given a named edge, change that edge from the SemanticGraph,
then put it back with the updated relation.
|
RemoveEdge |
Removes the edge with the given relation type (string name), between
two named nodes in a graph match.
|
RemoveNamedEdge |
Given a named edge, removes that edge from the SemanticGraph.
|
SetRoots |
Forcibly sets the named nodes to be the new roots.
|
Ssurgeon |
This is the primary class for loading and saving out Ssurgeon patterns.
|
Ssurgeon.ArgsBox | |
Ssurgeon.SsurgeonArgs | |
SsurgeonEdit | |
SsurgeonPattern |
This represents a source pattern and a subsequent edit script, or a sequence
of successive in-place edits to perform on a SemanticGraph.
|
SsurgeonUtils | |
SsurgeonWordlist |
This implements an unordered word-list resource for Ssurgeon
|
Enum | Description |
---|---|
Ssurgeon.RUNTYPE |
Exception | Description |
---|---|
SsurgeonParseException |
A runtime exception that indicates something went wrong parsing a
Ssurgeon expression.
|
SsurgeonRuntimeException |
A runtime exception that indicates something went wrong executing a
Ssurgeon expression.
|
A package for performing transformations of dependency trees, SemanticGraph
objects. This is used in conjunction with edu.stanford.nlp.rte.semgrex
, and is intended to mimick Tsurgeon
.