public class MultipleLexicon extends Lexicon
| Constructor and Description |
|---|
MultipleLexicon()
create an empty multi lexicon
|
MultipleLexicon(Lexicon... lexicons)
create a multi lexicon with the specified lexicons
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFinalLexicon(Lexicon lex)
add lexicon at end of list (is searched last)
|
void |
addInitialLexicon(Lexicon lex)
add lexicon at beginning of list (is searched first)
|
void |
close()
close the lexicon (if necessary) if lexicon does not need to be closed,
this does nothing
|
List<WordElement> |
getWords(String baseForm,
LexicalCategory category)
returns all Words which have the specified base form and category
|
List<WordElement> |
getWordsByID(String id)
returns a List of WordElement which have this ID.
|
List<WordElement> |
getWordsFromVariant(String variant,
LexicalCategory category)
returns Words which have an inflected form and/or spelling variant that
matches the specified variant, and are in the specified category.
|
boolean |
isAlwaysSearchAll() |
void |
setAlwaysSearchAll(boolean alwaysSearchAll) |
createWord, createWord, getDefaultLexicon, getWord, getWord, getWordByID, getWordFromVariant, getWordFromVariant, getWords, getWordsFromVariant, hasWord, hasWord, hasWordByID, hasWordFromVariant, hasWordFromVariant, lookupWord, lookupWordpublic MultipleLexicon()
public MultipleLexicon(Lexicon... lexicons)
public void addInitialLexicon(Lexicon lex)
public void addFinalLexicon(Lexicon lex)
public boolean isAlwaysSearchAll()
public void setAlwaysSearchAll(boolean alwaysSearchAll)
alwaysSearchAll - the alwaysSearchAll to setpublic List<WordElement> getWords(String baseForm, LexicalCategory category)
Lexiconpublic List<WordElement> getWordsByID(String id)
LexicongetWordsByID in class Lexiconid - - internal lexicon ID for a wordpublic List<WordElement> getWordsFromVariant(String variant, LexicalCategory category)
LexicongetWordsFromVariant in class Lexiconvariant - - base form, inflected form, or spelling variant of wordcategory - - syntactic category of word (ANY for unknown)Copyright © 2020. All Rights Reserved.