|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.nutch.analysis.NutchAnalysis
The JavaCC-generated Nutch lexical analyzer and query parser.
Field Summary | |
net.nutch.analysis.Token |
jj_nt
|
boolean |
lookingAhead
|
net.nutch.analysis.Token |
token
|
NutchAnalysisTokenManager |
token_source
|
Fields inherited from interface net.nutch.analysis.NutchAnalysisConstants |
ACRONYM, APOSTROPHE, ATSIGN, CJK, COLON, DEFAULT, DIGIT, DOT, EOF, LETTER, MINUS, PLUS, QUOTE, SIGRAM, SLASH, tokenImage, WHITE, WORD, WORD_PUNCT |
Constructor Summary | |
NutchAnalysis(net.nutch.analysis.CharStream stream)
|
|
NutchAnalysis(NutchAnalysisTokenManager tm)
|
Method Summary | |
ArrayList |
compound(String field)
Parse a compound term that is interpreted as an implicit phrase query. |
void |
disable_tracing()
|
void |
enable_tracing()
|
net.nutch.analysis.ParseException |
generateParseException()
|
net.nutch.analysis.Token |
getNextToken()
|
net.nutch.analysis.Token |
getToken(int index)
|
void |
infix()
Characters which can be used to form compound terms. |
static boolean |
isStopWord(String word)
True iff word is a stop word. |
static void |
main(String[] args)
For debugging. |
void |
nonOpInfix()
Parse infix characters except plus and minus. |
void |
nonOpOrTerm()
Parse anything but a term or an operator (plur or minus or quote). |
void |
nonTerm()
Parse anything but a term or a quote. |
Query |
parse()
Parse a query. |
static Query |
parseQuery(String queryString)
Construct a query parser for the text in a reader. |
ArrayList |
phrase(String field)
Parse an explcitly quoted phrase query. |
void |
ReInit(net.nutch.analysis.CharStream stream)
|
void |
ReInit(NutchAnalysisTokenManager tm)
|
String |
term()
Parse a single term. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public NutchAnalysisTokenManager token_source
public net.nutch.analysis.Token token
public net.nutch.analysis.Token jj_nt
public boolean lookingAhead
Constructor Detail |
public NutchAnalysis(net.nutch.analysis.CharStream stream)
public NutchAnalysis(NutchAnalysisTokenManager tm)
Method Detail |
public static boolean isStopWord(String word)
public static Query parseQuery(String queryString) throws IOException
IOException
public static void main(String[] args) throws Exception
Exception
public final Query parse() throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final ArrayList phrase(String field) throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final ArrayList compound(String field) throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final String term() throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final void nonTerm() throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final void nonOpOrTerm() throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final void infix() throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public final void nonOpInfix() throws net.nutch.analysis.ParseException
net.nutch.analysis.ParseException
public void ReInit(net.nutch.analysis.CharStream stream)
public void ReInit(NutchAnalysisTokenManager tm)
public final net.nutch.analysis.Token getNextToken()
public final net.nutch.analysis.Token getToken(int index)
public net.nutch.analysis.ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |