Package edu.stanford.nlp.trees.tregex

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

See:
          Description

Class Summary
Macros This defines how to use macros from a file in Tregex.
TregexMatcher A TregexMatcher can be used to match a TregexPattern against a Tree.
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.
TregexParseException A runtime exception that indicates something went wrong parsing a tregex expression.
 

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