public class JWKTL extends Object
| Constructor and Description |
|---|
JWKTL() |
| Modifier and Type | Method and Description |
|---|---|
static void |
deleteEdition(File parsedData)
Deletes all files from a previously parsed Wiktionary from the
specified directory.
|
static String |
getVersion()
Returns the software version.
|
static IWiktionaryCollection |
openCollection(File... parsedDumps)
Opens the parsed Wiktionary language edition stored at the given
locations and aggregated them in a
IWiktionaryCollection. |
static IWiktionaryCollection |
openCollection(Long cacheSize,
File... parsedDumps)
Opens the parsed Wiktionary language edition stored at the given
locations and aggregated them in a
IWiktionaryCollection. |
static IWiktionaryEdition |
openEdition(File parsedDump)
Opens the parsed Wiktionary language edition stored at the given
location.
|
static IWiktionaryEdition |
openEdition(File parsedDump,
Long cacheSize)
Opens the parsed Wiktionary language edition stored at the given
location.
|
static void |
parseWiktionaryDump(File dumpFile,
File targetDirectory,
boolean overwriteExisting)
Parses the given XML dump file of Wiktionary and stores the parsed data
within the specified target directory.
|
static void |
parseWiktionaryDump(File dumpFile,
File targetDirectory,
boolean overwriteExisting,
boolean parseWikiSaurus)
Parses the given XML dump file of Wiktionary and stores the parsed data
within the specified target directory.
|
public static String getVersion()
public static IWiktionaryCollection openCollection(File... parsedDumps)
IWiktionaryCollection.
This method uses a default cache size for the Berkeley DB.WiktionaryException - in case of any JWKTL-related error.public static IWiktionaryCollection openCollection(Long cacheSize, File... parsedDumps)
IWiktionaryCollection.
This method uses the given cache size for connecting to the
Berkeley DB.WiktionaryException - in case of any JWKTL-related error.public static IWiktionaryEdition openEdition(File parsedDump)
WiktionaryException - in case of any JWKTL-related error.public static IWiktionaryEdition openEdition(File parsedDump, Long cacheSize)
WiktionaryException - in case of any JWKTL-related error.public static void parseWiktionaryDump(File dumpFile, File targetDirectory, boolean overwriteExisting)
WiktionaryDumpParser.parse(File) using
a registered WiktionaryArticleParser. The parsing does not
include information from Wikisaurus.dumpFile - file name of the Wiktionary dump in XML format.targetDirectory - directory for storing the parsed data.overwriteExisting - if true, previously parsed
Wiktionary data files are removed from the targetDirectory.WiktionaryException - in case of any parser errors.public static void parseWiktionaryDump(File dumpFile, File targetDirectory, boolean overwriteExisting, boolean parseWikiSaurus)
WiktionaryDumpParser.parse(File) using
a registered WiktionaryArticleParser. Optionally, information
from Wikisaurus is added to the parsed database using the
WikisaurusArticleParser.dumpFile - file name of the Wiktionary dump in XML format.targetDirectory - directory for storing the parsed data.overwriteExisting - if true, previously parsed
Wiktionary data files are removed from the targetDirectory.parseWikiSaurus - parses Wikisaurus pages and adds the parsed
information to the corresponding articles.WiktionaryException - in case of any parser errors.public static void deleteEdition(File parsedData)
BerkeleyDBWiktionaryEdition.deleteParsedWiktionary(File).Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.