public class MalletLdaTopicProportionsWriter extends JCasFileWriter_ImplBase
[<docId>\t]<topic_1>\t<topic_2>\t...<topic_n>
This writer depends on the TopicDistribution
annotation which needs to be created by
MalletLdaTopicModelInferencer
before.
JCasFileWriter_ImplBase.NamedOutputStream
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_FILENAME_EXTENSION
If
JCasFileWriter_ImplBase.PARAM_SINGULAR_TARGET is set to false (default), this extension will be appended to the output
files. |
static String |
PARAM_WRITE_DOCID
If set to true (default), each output line is preceded by the document id.
|
JAR_PREFIX, PARAM_COMPRESSION, PARAM_ESCAPE_DOCUMENT_ID, PARAM_OVERWRITE, PARAM_SINGULAR_TARGET, PARAM_STRIP_EXTENSION, PARAM_TARGET_LOCATION, PARAM_USE_DOCUMENT_ID
Constructor and Description |
---|
MalletLdaTopicProportionsWriter() |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.uima.jcas.JCas aJCas) |
collectionProcessComplete, getCompressionMethod, getOutputStream, getOutputStream, getRelativePath, getTargetLocation, isStripExtension, isUseDocumentId
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_WRITE_DOCID
public static final String PARAM_FILENAME_EXTENSION
JCasFileWriter_ImplBase.PARAM_SINGULAR_TARGET
is set to false (default), this extension will be appended to the output
files. Default: .topics
.public void process(org.apache.uima.jcas.JCas aJCas) throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process
in class org.apache.uima.analysis_component.JCasAnnotator_ImplBase
org.apache.uima.analysis_engine.AnalysisEngineProcessException
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.