|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.tudarmstadt.ukp.jwktl.JWKTL
public class JWKTL
Main entry point of the JWKTL API. Use this class to initiate the parsing of a Wiktionary XML dump file and for accessing already parsed dump files.
Constructor Summary | |
---|---|
JWKTL()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JWKTL()
Method Detail |
---|
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)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |