public class TopicIndexer
extends org.apache.uima.analysis_component.JCasAnnotator_ImplBase
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_NUM_DISPLAYED_TOPIC_WORDS
Number of the top topic words that can be used e.g.
|
static String |
PARAM_STORE_IN_MODEL_INDEX
Whether or not to store the processed labels in the index of the model object
|
static String |
PARAM_TOPIC_MODEL_CONFIG
XML configuration file for model training, labeling, and search
|
static String |
RESOURCE_KEY_MODEL_FILE_NAME
Serialized file containing a de.julielab.topicmodeling.Model object
that includes fields for name, version, ID map for Pubmed-IDs and Mallet-IDs,
index, and the Mallet model object
|
| Constructor and Description |
|---|
TopicIndexer() |
| Modifier and Type | Method and Description |
|---|---|
void |
collectionProcessComplete() |
void |
initialize(org.apache.uima.UimaContext aContext)
Loads model configuration and serialized model and checks whether to populate the
model's index
|
void |
process(org.apache.uima.jcas.JCas aJCas)
Infers labels and stores them in the CAS; if toModelIndex is set true, information is to stored
into the model's index
|
getRequiredCasInterface, processgetCasInstancesRequired, hasNext, nextpublic static final String PARAM_TOPIC_MODEL_CONFIG
public static final String RESOURCE_KEY_MODEL_FILE_NAME
public static final String PARAM_NUM_DISPLAYED_TOPIC_WORDS
public static final String PARAM_STORE_IN_MODEL_INDEX
public void initialize(org.apache.uima.UimaContext aContext)
throws org.apache.uima.resource.ResourceInitializationException
initialize in interface org.apache.uima.analysis_component.AnalysisComponentinitialize in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.resource.ResourceInitializationExceptionpublic void process(org.apache.uima.jcas.JCas aJCas)
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
process in class org.apache.uima.analysis_component.JCasAnnotator_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionpublic void collectionProcessComplete()
throws org.apache.uima.analysis_engine.AnalysisEngineProcessException
collectionProcessComplete in interface org.apache.uima.analysis_component.AnalysisComponentcollectionProcessComplete in class org.apache.uima.analysis_component.AnalysisComponent_ImplBaseorg.apache.uima.analysis_engine.AnalysisEngineProcessExceptionCopyright © 2019 JULIE Lab Jena, Germany. All rights reserved.