public class WikokitToJWKTL extends Object
Constructor and Description |
---|
WikokitToJWKTL()
Initializes the converter and its part of speech and relation type
mappings.
|
Modifier and Type | Method and Description |
---|---|
void |
addTranslationsToPosEntry(WTranslation[] translations,
WiktionaryEntry posEntry)
Add Wikokit translations to the Wiktionary entry.
|
ILanguage |
convertLang(LanguageType wikoLang)
Converts a Wikokit language to JWKTL.
|
WiktionarySense |
convertMeaningToSenseEntry(WiktionaryEntry entry,
String pageTitle,
WMeaning wikoMeaning,
Map<Relation,WRelation[]> wikoRelations,
WTranslation[] translations,
int meaningNr)
Converts a Wikokit sense to JWKTL.
|
PartOfSpeech |
convertPOS(POS wikoPos)
Converts a Wikokit part of speech to JWKTL.
|
public WikokitToJWKTL()
public PartOfSpeech convertPOS(POS wikoPos)
public ILanguage convertLang(LanguageType wikoLang)
public WiktionarySense convertMeaningToSenseEntry(WiktionaryEntry entry, String pageTitle, WMeaning wikoMeaning, Map<Relation,WRelation[]> wikoRelations, WTranslation[] translations, int meaningNr)
public void addTranslationsToPosEntry(WTranslation[] translations, WiktionaryEntry posEntry)
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.