public class WikiUtils extends Object
Constructor and Description |
---|
WikiUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
cleanText(String text)
Clean a string from left-over WikiMarkup (most parsers do not work 100% correct).
|
static de.tudarmstadt.ukp.wikipedia.api.Wikipedia |
getWikipedia(DBConfig confAnnotation)
Creates a Wikipedia object from a DBConfig annotation without the need to
manually create the intermediary DatabaseConfiguration.
|
static String |
jwplLanguage2dkproLanguage(de.tudarmstadt.ukp.wikipedia.api.WikiConstants.Language jwplLanguage) |
public static String cleanText(String text)
text
- A string with rests of WikiMarkup.public static de.tudarmstadt.ukp.wikipedia.api.Wikipedia getWikipedia(DBConfig confAnnotation) throws de.tudarmstadt.ukp.wikipedia.api.exception.WikiApiException
confAnnotation
- annotation containing the db credentialsde.tudarmstadt.ukp.wikipedia.api.exception.WikiApiException
- if the Wikipedia object could not be createdpublic static String jwplLanguage2dkproLanguage(de.tudarmstadt.ukp.wikipedia.api.WikiConstants.Language jwplLanguage)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.