|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.didion.jwnl.dictionary.morph.DefaultMorphologicalProcessor
public class DefaultMorphologicalProcessor
Default implementation of MorphologicalProcessor
. This isn't a true
morpological analyzer (it doesn't figure out all the characteristics of each word
it processes). This is basically a stemmer that uses WordNet exception files instead
of complex stemming rules. It also tries to be intelligent by removing delimiters and
doing concatanation.
Field Summary | |
---|---|
static java.lang.String |
CACHE_CAPACITY
Parameter that determines the size of the base form cache |
static java.lang.String |
OPERATIONS
Parameter that determines the operations this morphological processor will perform |
Constructor Summary | |
---|---|
DefaultMorphologicalProcessor()
|
|
DefaultMorphologicalProcessor(Operation[] operations)
|
|
DefaultMorphologicalProcessor(Operation[] operations,
int cacheCapacity)
|
Method Summary | |
---|---|
java.lang.Object |
create(java.util.Map params)
|
java.util.List |
lookupAllBaseForms(POS pos,
java.lang.String derivation)
Return all the base forms of derivation |
IndexWord |
lookupBaseForm(POS pos,
java.lang.String derivation)
Lookup the base form of a word. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CACHE_CAPACITY
public static final java.lang.String OPERATIONS
Constructor Detail |
---|
public DefaultMorphologicalProcessor()
public DefaultMorphologicalProcessor(Operation[] operations)
public DefaultMorphologicalProcessor(Operation[] operations, int cacheCapacity)
Method Detail |
---|
public java.lang.Object create(java.util.Map params) throws JWNLException
create
in interface Createable
JWNLException
public IndexWord lookupBaseForm(POS pos, java.lang.String derivation) throws JWNLException
lookupBaseForm
in interface MorphologicalProcessor
pos
- the part-of-speech of the word to look upderivation
- the word to look up
JWNLException
public java.util.List lookupAllBaseForms(POS pos, java.lang.String derivation) throws JWNLException
MorphologicalProcessor
lookupAllBaseForms
in interface MorphologicalProcessor
JWNLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |