gpl.pierrick.brihaye.aramorph.lucene
Class ArabicGrammaticalFilter
java.lang.Object
org.apache.lucene.analysis.TokenStream
org.apache.lucene.analysis.TokenFilter
gpl.pierrick.brihaye.aramorph.lucene.ArabicGrammaticalFilter
- public class ArabicGrammaticalFilter
- extends org.apache.lucene.analysis.TokenFilter
A filter that will filter arabic tokens regarding to their grammatical category.
- Author:
- Pierrick Brihaye, 2003
|
Field Summary |
protected boolean |
debug
Whether or not the analyzer should output debug messages |
| Fields inherited from class org.apache.lucene.analysis.TokenFilter |
input |
|
Constructor Summary |
ArabicGrammaticalFilter(org.apache.lucene.analysis.TokenStream input)
Constructs a filter that will filter arabic tokens regarding to their grammatical category. |
ArabicGrammaticalFilter(org.apache.lucene.analysis.TokenStream input,
boolean debug)
Constructs a filter that will filter arabic tokens regarding to their grammatical category. |
|
Method Summary |
org.apache.lucene.analysis.Token |
next()
Returns the next token in the stream, or null at EOS. |
| Methods inherited from class org.apache.lucene.analysis.TokenFilter |
close |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
protected boolean debug
- Whether or not the analyzer should output debug messages
ArabicGrammaticalFilter
public ArabicGrammaticalFilter(org.apache.lucene.analysis.TokenStream input)
- Constructs a filter that will filter arabic tokens regarding to their grammatical category.
- Parameters:
input - The token stream from a tokenizer
ArabicGrammaticalFilter
public ArabicGrammaticalFilter(org.apache.lucene.analysis.TokenStream input,
boolean debug)
- Constructs a filter that will filter arabic tokens regarding to their grammatical category.
- Parameters:
input - The token stream from a tokenizerdebug - Whether or not the tokenizer should display convenience messages on System.out
next
public final org.apache.lucene.analysis.Token next()
throws java.io.IOException
- Returns the next token in the stream, or
null at EOS.
- Returns:
- The token
- Throws:
java.io.IOException - If a problem occurs