public class AParseTreeFactory
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
AParseTreeFactory.ATree
Adapter (adapts Stanford tree to ITree interface)
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<edu.stanford.nlp.trees.Tree,MutableAParseTree> |
nodeMap
Node map (Stanford parse tree node to artifact node)
|
| Constructor and Description |
|---|
AParseTreeFactory()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Test
|
AParseTree |
make(edu.stanford.nlp.trees.Tree treeRoot)
Make parse tree artifact from stanford tree
|
private static MutableAParseTree |
makeNode(edu.stanford.nlp.trees.Tree tree)
Make artifact node from stanford tree node
|
private final java.util.Map<edu.stanford.nlp.trees.Tree,MutableAParseTree> nodeMap
public AParseTree make(edu.stanford.nlp.trees.Tree treeRoot)
treeRoot - stanford treeprivate static MutableAParseTree makeNode(edu.stanford.nlp.trees.Tree tree)
tree - stanford tree nodepublic static void main(java.lang.String[] args)
args - arguments