
edu.stanford.nlp.parser.lexparser.GrammarProjection 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.parser.lexparser;
/** Maps between the states of a more split and less split grammar.
* (Sort of a precursor to the idea of "coarse-to-fine" parsing.)
*
* @author Dan Klein
*/
public interface GrammarProjection {
int project(int state);
UnaryGrammar sourceUG();
BinaryGrammar sourceBG();
UnaryGrammar targetUG();
BinaryGrammar targetBG();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy