public class XMLLexicon extends Lexicon
| Constructor and Description |
|---|
XMLLexicon() |
XMLLexicon(File file)
Load an XML Lexicon from a File
|
XMLLexicon(String filename)
Load an XML Lexicon from a named file
|
XMLLexicon(URI lexiconURI)
Load an XML Lexicon from a URI
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
close, createWord, createWord, getDefaultLexicon, getWord, getWord, getWordByID, getWordFromVariant, getWordFromVariant, getWords, getWordsFromVariant, hasWord, hasWord, hasWordByID, hasWordFromVariant, hasWordFromVariant, lookupWord, lookupWordpublic XMLLexicon(String filename)
public XMLLexicon(File file)
public XMLLexicon(URI lexiconURI)
public XMLLexicon()
public 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.