|
Jacson | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.app.jacson.PluginBase de.spieleck.app.jacson.filter.FilterBase de.spieleck.app.jacson.filter.StemmingFilter
Filter to stemm a chunk. The returned chunks are either Strings representing the stemms or the String corresponding to the first word found connected with this particular stemm.
Nested Class Summary | |
static class |
StemmingFilter.Stat
|
Field Summary | |
protected boolean |
returnWord
Shall we return chunks which are words or stemms |
protected java.util.Map |
stats
Map the equivalence classes of words to stemms. |
protected Stemmer |
stemmer
The Stemmer to be used by this filter as a class |
static java.lang.String |
STEMMER_NODE
Config node to choose the stemmer |
static java.lang.String |
STEMMER_PCK
Defaultpackage for stemmers |
protected java.lang.String |
stemmerName
The Stemmer to be used by this filter as a name |
static java.lang.String |
WORD_NODE
Config node to tell the stemmer to return representatives not stems |
Fields inherited from class de.spieleck.app.jacson.filter.FilterBase |
drain |
Constructor Summary | |
StemmingFilter()
|
Method Summary | |
boolean |
accept(ConfigNode node)
|
Stemmer |
getStemmer(ConfigNode node,
JacsonRegistry registry)
|
void |
init(ConfigNode config,
JacsonRegistry registry)
|
void |
putChunk(java.lang.String chunk)
Feed a single chunk into this filter |
protected java.lang.String |
statistic(java.lang.String old,
java.lang.String stem)
|
void |
summary()
Do nothing default implementation |
Methods inherited from class de.spieleck.app.jacson.filter.FilterBase |
setDrain |
Methods inherited from class de.spieleck.app.jacson.PluginBase |
getRegReport, getRegState, registerReport, registerState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.spieleck.app.jacson.JacsonStately |
registerState |
Methods inherited from interface de.spieleck.app.jacson.JacsonReporting |
registerReport |
Field Detail |
public static final java.lang.String STEMMER_NODE
public static final java.lang.String WORD_NODE
public static final java.lang.String STEMMER_PCK
protected java.lang.String stemmerName
protected Stemmer stemmer
protected java.util.Map stats
protected boolean returnWord
Constructor Detail |
public StemmingFilter()
Method Detail |
public void init(ConfigNode config, JacsonRegistry registry) throws JacsonConfigException
init
in interface JacsonRegistrable
JacsonConfigException
public boolean accept(ConfigNode node)
accept
in interface ConfigVerify.Acceptor
public void putChunk(java.lang.String chunk) throws JacsonException
JacsonChunkDrain
putChunk
in interface JacsonChunkDrain
JacsonException
protected java.lang.String statistic(java.lang.String old, java.lang.String stem)
public void summary()
PluginBase
summary
in interface JacsonReporting
summary
in class PluginBase
public Stemmer getStemmer(ConfigNode node, JacsonRegistry registry) throws JacsonConfigException
JacsonConfigException
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |