edu.stanford.nlp.trees.international.pennchinese
Class ChineseGrammaticalStructure

java.lang.Object
  extended by edu.stanford.nlp.trees.TreeGraph
      extended by edu.stanford.nlp.trees.GrammaticalStructure
          extended by edu.stanford.nlp.trees.international.pennchinese.ChineseGrammaticalStructure
All Implemented Interfaces:
Serializable

public class ChineseGrammaticalStructure
extends GrammaticalStructure

A GrammaticalStructure for Chinese.

Author:
Galen Andrew, Pi-Chuan Chang
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.trees.GrammaticalStructure
allTypedDependencies, dependencies, typedDependencies
 
Fields inherited from class edu.stanford.nlp.trees.TreeGraph
root
 
Constructor Summary
ChineseGrammaticalStructure(Tree t)
          Construct a new GrammaticalStructure from an existing parse tree.
ChineseGrammaticalStructure(Tree t, Filter<String> puncFilter)
           
 
Method Summary
protected  void collapseDependencies(Collection<TypedDependency> list)
           
static void main(String[] args)
          Just for testing.
 
Methods inherited from class edu.stanford.nlp.trees.GrammaticalStructure
allTypedDependencies, collapseDependencies, correctDependencies, dependencies, getAllDependents, getDependencyPath, getDependencyPath, getDependents, getDeps, getGovernor, getGrammaticalRelation, getGrammaticalRelation, getListGrammaticalRelation, getNodeInRelation, toString, typedDependencies, typedDependencies, typedDependenciesCCprocessed, typedDependenciesCollapsed, typedDependenciesCollapsed
 
Methods inherited from class edu.stanford.nlp.trees.TreeGraph
addNodeToIndexMap, getNodeByIndex, getNodes, root
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChineseGrammaticalStructure

public ChineseGrammaticalStructure(Tree t)
Construct a new GrammaticalStructure from an existing parse tree. The new GrammaticalStructure has the same tree structure and label values as the given tree (but no shared storage). As part of construction, the parse tree is analyzed using definitions from GrammaticalRelation to populate the new GrammaticalStructure with as many labeled grammatical relations as it can.


ChineseGrammaticalStructure

public ChineseGrammaticalStructure(Tree t,
                                   Filter<String> puncFilter)
Method Detail

collapseDependencies

protected void collapseDependencies(Collection<TypedDependency> list)

main

public static void main(String[] args)
Just for testing. Usage:
java edu.stanford.nlp.trees.ChineseGrammaticalStructure -treeFile [treeFile]
java ChineseGrammaticalStructure -sentFile [sentenceFile]



Stanford NLP Group