|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IWritableWiktionaryEdition
Generic interface for writable Wiktionary language editions used by the parsers to store the extracted entries and information types. Implementations of this class may provide a database or file system connection to persistently store the extracted information.
Method Summary | |
---|---|
void |
commit()
Force a database commit of the pages saved so far. |
WiktionaryPage |
getPageForId(long id)
Returns the page with the given unique id. |
WiktionaryPage |
getPageForWord(String word)
Returns the page with the given title. |
void |
savePage(WiktionaryPage page)
Adds the given page to the Wiktionary edition (e.g., storing it in a database). |
void |
saveProperties(IDumpInfo dumpInfo)
Hotspot called after parsing has finished to save the metadata of the dump file and the basic parsing statistics. |
void |
setEntryIndexByTitle(boolean entryIndexByTitle)
Sorts the entries by word form before assigning an ID to them. |
void |
setLanguage(ILanguage language)
Assigns the given language to the Wiktionary edition. |
Methods inherited from interface de.tudarmstadt.ukp.jwktl.api.IWiktionaryEdition |
---|
getDBPath, getEntryForId, getEntryForId, getEntryForWord, getLanguage, getSenseForId, getSenseForId, getSenseForKey, getSensesForWord, getSensesForWord |
Methods inherited from interface de.tudarmstadt.ukp.jwktl.api.IWiktionary |
---|
close, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllEntries, getAllPages, getAllPages, getAllPages, getAllPages, getAllPages, getAllPages, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getAllSenses, getEntriesForWord, getEntriesForWord, getEntriesForWord, getEntriesForWord, getPagesForWord, getPagesForWord, getSensesForWord, getSensesForWord, getSensesForWord, getSensesForWord, isClosed |
Method Detail |
---|
WiktionaryPage getPageForId(long id)
IWiktionaryEdition
getPageForId
in interface IWiktionaryEdition
WiktionaryPage getPageForWord(String word)
IWiktionaryEdition
IWiktionary.getPagesForWord(String, boolean)
for case insensitive and
string-normalized matching.
getPageForWord
in interface IWiktionaryEdition
void saveProperties(IDumpInfo dumpInfo) throws WiktionaryException
WiktionaryException
void savePage(WiktionaryPage page)
void commit()
void setLanguage(ILanguage language)
void setEntryIndexByTitle(boolean entryIndexByTitle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |