|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.extjwnl.dictionary.morph.DefaultMorphologicalProcessor
public class DefaultMorphologicalProcessor
Default implementation of MorphologicalProcessor
. This isn't a true
morphological 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 concatenation.
Field Summary | |
---|---|
static String |
CACHE_CAPACITY
Parameter that determines the size of the base form cache. |
static String |
OPERATIONS
Parameter that determines the operations this morphological processor will perform. |
Constructor Summary | |
---|---|
DefaultMorphologicalProcessor(Dictionary dictionary,
Map<String,Param> params)
|
Method Summary | |
---|---|
Dictionary |
getDictionary()
|
List<String> |
lookupAllBaseForms(POS pos,
String derivation)
Return all the base forms of derivation. |
IndexWord |
lookupBaseForm(POS pos,
String derivation)
Lookup the base form of a word. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CACHE_CAPACITY
public static final String OPERATIONS
Constructor Detail |
---|
public DefaultMorphologicalProcessor(Dictionary dictionary, Map<String,Param> params) throws JWNLException
JWNLException
Method Detail |
---|
public IndexWord lookupBaseForm(POS pos, 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
- JWNLExceptionpublic List<String> lookupAllBaseForms(POS pos, String derivation) throws JWNLException
MorphologicalProcessor
lookupAllBaseForms
in interface MorphologicalProcessor
pos
- part of speechderivation
- derivation
JWNLException
- JWNLExceptionpublic Dictionary getDictionary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |