Package edu.stanford.nlp.trees.tregex

A package for tree-pattern expressions and matching these expressions to Tree instances.

See:
          Description

Interface Summary
TregexParserConstants Token literal values and constants.
 

Class Summary
SimpleCharStream An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
Token Describes the input token stream.
TregexMatcher A TregexMatcher can be used to match a TregexPattern against a Tree.
TregexParserTokenManager Token Manager.
TregexPattern A TregexPattern is a tgrep-type pattern for matching tree node configurations.
TregexPattern.TRegexTreeReaderFactory  
TregexPatternCompiler A class for compiling TregexPatterns with specific HeadFinders and or basicCategoryFunctions.
 

Exception Summary
ParseException This exception is thrown when parse errors are encountered.
 

Error Summary
TokenMgrError Token Manager Error.
 

Package edu.stanford.nlp.trees.tregex Description

A package for tree-pattern expressions and matching these expressions to Tree instances. The design is similar to the java.util.regex package. Internally, tree-pattern expressions are parsed using a parser designed with the javacc "compiler compiler" utility.

See TregexPattern for a description of the command-line utility version.

Note that the only classes which should be public are the TregexMatcher, TregexPattern and TregexPatternCompiler classes-- the others were automatically given public access by javacc although really they should be package-private.

Author:
Roger Levy, Galen Andrew


Stanford NLP Group