public class StanfordDependencyConverter
extends org.apache.uima.fit.component.JCasAnnotator_ImplBase
Modifier and Type | Field and Description |
---|---|
protected String |
language |
protected StanfordParser.DependenciesMode |
mode |
protected boolean |
originalDependencies |
static String |
PARAM_LANGUAGE
Use this language instead of the document language to resolve the model and tag set mapping.
|
static String |
PARAM_MODE
Sets the kind of dependencies being created.
|
static String |
PARAM_ORIGINAL_DEPENDENCIES
Create original dependencies.
|
Constructor and Description |
---|
StanfordDependencyConverter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doCreateDependencyTags(org.apache.uima.jcas.JCas aJCas,
edu.stanford.nlp.trees.TreebankLanguagePack aLP,
edu.stanford.nlp.trees.Tree parseTree,
List<Token> tokens) |
void |
process(org.apache.uima.jcas.JCas aJCas) |
protected edu.stanford.nlp.ling.CoreLabel |
tokenToWord(Token aToken) |
getLogger, initialize
getRequiredCasInterface, process
getCasInstancesRequired, hasNext, next
public static final String PARAM_MODE
Default: TREE
protected StanfordParser.DependenciesMode mode
public static final String PARAM_LANGUAGE
protected String language
public static final String PARAM_ORIGINAL_DEPENDENCIES
protected boolean originalDependencies
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
protected void doCreateDependencyTags(org.apache.uima.jcas.JCas aJCas, edu.stanford.nlp.trees.TreebankLanguagePack aLP, edu.stanford.nlp.trees.Tree parseTree, List<Token> tokens)
protected edu.stanford.nlp.ling.CoreLabel tokenToWord(Token aToken)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.