public abstract class WikipediaReaderBase
extends org.apache.uima.fit.component.JCasCollectionReader_ImplBase
Modifier and Type | Field and Description |
---|---|
protected de.tudarmstadt.ukp.wikipedia.api.DatabaseConfiguration |
dbconfig |
static String |
PARAM_CREATE_DATABASE_CONFIG_ANNOTATION
Sets whether the database configuration should be stored in the CAS,
so that annotators down the pipeline can access additional data.
|
static String |
PARAM_DB
The name of the database.
|
static String |
PARAM_HOST
The host server.
|
static String |
PARAM_LANGUAGE
The language of the Wikipedia that should be connected to.
|
static String |
PARAM_PASSWORD
The password of the database account.
|
static String |
PARAM_USER
The username of the database account.
|
protected de.tudarmstadt.ukp.wikipedia.api.Wikipedia |
wiki |
Constructor and Description |
---|
WikipediaReaderBase() |
Modifier and Type | Method and Description |
---|---|
void |
getNext(org.apache.uima.jcas.JCas jcas) |
abstract org.apache.uima.util.Progress[] |
getProgress() |
void |
initialize(org.apache.uima.UimaContext context) |
close, getLogger, getNext, initialize
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
getCasManager, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String PARAM_HOST
public static final String PARAM_DB
public static final String PARAM_USER
public static final String PARAM_PASSWORD
public static final String PARAM_LANGUAGE
public static final String PARAM_CREATE_DATABASE_CONFIG_ANNOTATION
protected de.tudarmstadt.ukp.wikipedia.api.DatabaseConfiguration dbconfig
protected de.tudarmstadt.ukp.wikipedia.api.Wikipedia wiki
public void initialize(org.apache.uima.UimaContext context) throws org.apache.uima.resource.ResourceInitializationException
initialize
in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
org.apache.uima.resource.ResourceInitializationException
public void getNext(org.apache.uima.jcas.JCas jcas) throws IOException, org.apache.uima.collection.CollectionException
getNext
in class org.apache.uima.fit.component.JCasCollectionReader_ImplBase
IOException
org.apache.uima.collection.CollectionException
public abstract org.apache.uima.util.Progress[] getProgress()
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.