edu.stanford.nlp.trees.GrammaticalStructureFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stanford-parser Show documentation
Show all versions of stanford-parser Show documentation
Stanford Parser processes raw text in English, Chinese, German, Arabic, and French, and extracts constituency parse trees.
package edu.stanford.nlp.trees;
/**
* A general factory for {@link GrammaticalStructure} objects.
*
* @author Galen Andrew
* @author John Bauer
*/
public interface GrammaticalStructureFactory {
/**
* Vend a new {@link GrammaticalStructure} based on the given {@link Tree}.
*
* @param t the tree to analyze
* @return a GrammaticalStructure based on the tree
*/
GrammaticalStructure newGrammaticalStructure(Tree t);
}