edu.stanford.nlp.trees.GrammaticalStructureFactory.java Source code

Java tutorial

Introduction

Here is the source code for edu.stanford.nlp.trees.GrammaticalStructureFactory.java

Source

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);
}