public class NIHDBLexicon extends Lexicon
| Constructor and Description |
|---|
NIHDBLexicon(String filename)
set up lexicon using file which contains downloaded lexAccess HSQL DB and
default passwords
|
NIHDBLexicon(String driver,
String url,
String username,
String password)
set up lexicon using general DB parameters; DB must be NIH specialist
lexicon from lexAccess
|
| Modifier and Type | Method and Description |
|---|---|
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 |
isKeepStandardInflections()
reports whether Words include standard (derivable) inflections
|
void |
setKeepStandardInflections(boolean keepStandardInflections)
set whether Words should include standard (derivable) inflections
|
createWord, createWord, getDefaultLexicon, getWord, getWord, getWordByID, getWordFromVariant, getWordFromVariant, getWords, getWordsFromVariant, hasWord, hasWord, hasWordByID, hasWordFromVariant, hasWordFromVariant, lookupWord, lookupWordpublic NIHDBLexicon(String filename)
filename - of HSQL DBpublic boolean isKeepStandardInflections()
public void setKeepStandardInflections(boolean keepStandardInflections)
keepStandardInflections - - if true, standard inflections are keptpublic 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.