|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.tregex.TregexPatternCompiler
public class TregexPatternCompiler
A class for compiling TregexPatterns with specific HeadFinders and or basicCategoryFunctions.
Field Summary | |
---|---|
static TregexPatternCompiler |
defaultCompiler
|
Constructor Summary | |
---|---|
TregexPatternCompiler()
|
|
TregexPatternCompiler(Function basicCatFunction)
A compiler that uses this basicCatFunction and the default headfinder. |
|
TregexPatternCompiler(HeadFinder headFinder)
A compiler that uses this HeadFinder and the default basicCategoryFunction |
|
TregexPatternCompiler(HeadFinder headFinder,
Function basicCatFunction)
A compiler that uses this HeadFinder and this basicCategoryFunction |
Method Summary | |
---|---|
TregexPattern |
compile(String tregex)
Create a TregexPattern from this tregex string using the headFinder and basicCat function this TregexPatternCompiler was created with |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static TregexPatternCompiler defaultCompiler
Constructor Detail |
---|
public TregexPatternCompiler()
public TregexPatternCompiler(Function basicCatFunction)
basicCatFunction
- the function mapping Strings to Stringspublic TregexPatternCompiler(HeadFinder headFinder)
headFinder
- the HeadFinderpublic TregexPatternCompiler(HeadFinder headFinder, Function basicCatFunction)
headFinder
- the HeadFinderbasicCatFunction
- hthe function mapping Strings to StringsMethod Detail |
---|
public TregexPattern compile(String tregex) throws ParseException
tregex
- the pattern to parse
ParseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |