public class DefaultMorphologicalProcessor extends Object implements MorphologicalProcessor
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.Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DefaultMorphologicalProcessor() |
DefaultMorphologicalProcessor(Operation[] operations) |
DefaultMorphologicalProcessor(Operation[] operations,
int cacheCapacity) |
Modifier and Type | Method and Description |
---|---|
Object |
create(Map params) |
List |
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.
|
public static final String CACHE_CAPACITY
public static final String OPERATIONS
public DefaultMorphologicalProcessor()
public DefaultMorphologicalProcessor(Operation[] operations)
public DefaultMorphologicalProcessor(Operation[] operations, int cacheCapacity)
public Object create(Map params) throws JWNLException
create
in interface Createable
JWNLException
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 upJWNLException
public List lookupAllBaseForms(POS pos, String derivation) throws JWNLException
MorphologicalProcessor
lookupAllBaseForms
in interface MorphologicalProcessor
JWNLException
Copyright © 2024. All rights reserved.