|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ISSearch.ISParser
This mandatory class must implement all functions prescribed by ISParserInterface
Constructor Summary | |
ISParser()
Creates a new instance of ISParser |
Method Summary | |
boolean |
isStopword(String who)
Decides whether the given token is claimed as stopword or not. |
ISDocumentInterface |
parse(Reader input)
Performs the input analysis. |
String |
stem(String who)
Applies the Porter stemming algorithm and returns the resulting word stem. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ISParser()
Method Detail |
public boolean isStopword(String who)
isStopword
in interface ISParserInterface
who
- The String to be checked.
public ISDocumentInterface parse(Reader input)
parse
in interface ISParserInterface
input
- the input of the parser (e.g., text file or HTTP connection), represented by the Reader
public String stem(String who)
stem
in interface ISParserInterface
who
- The word to be stemmed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |