public class PhraseSequenceGenerator extends Object
LexicalPhrase
s with empty text or a replacement of the text,
if stopwordReplacement
and/or PhraseSequenceGenerator.Builder.filterRegexReplacement
were set.
Initialize with PhraseSequenceGenerator.Builder.build()
.
When strings instead of LexicalPhrase
s should be output, use PhraseSequenceGenerator.Builder.buildStringSequenceGenerator()
.
Modifier and Type | Class and Description |
---|---|
static class |
PhraseSequenceGenerator.Builder
Builder for
PhraseSequenceGenerator s. |
Modifier and Type | Field and Description |
---|---|
static String |
WHITESPACE_CHAR_REPLACEMENT |
Modifier and Type | Method and Description |
---|---|
List<LexicalPhrase[]> |
tokenSequences(org.apache.uima.jcas.JCas aJCas)
Generate a list of
LexicalPhrase sequences where each list element represents phrases
extracted from the covering types, e.g. |
public static final String WHITESPACE_CHAR_REPLACEMENT
public List<LexicalPhrase[]> tokenSequences(org.apache.uima.jcas.JCas aJCas) throws FeaturePathException
LexicalPhrase
sequences where each list element represents phrases
extracted from the covering types, e.g. a sentence. If no covering type was defined, the list
contains one element representing the whole document.aJCas
- a JCas
LexicalPhrase
arraysFeaturePathException
- if there was a problem creating the feature path.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.