public class StringSequenceGenerator extends Object
PhraseSequenceGenerator.Builder.buildStringSequenceGenerator()
to create class instances.
Either create a single token sequence from the whole document, or multiple sequences based on covering annotations, e.g. one sequence for each sentence.
By default, the sequences are created from Token
s found in the input document. In order
to use other annotations, e.g. lemmas, specify the feature path in
PhraseSequenceGenerator.Builder.featurePath(String)
.
Modifier | Constructor and Description |
---|---|
protected |
StringSequenceGenerator(PhraseSequenceGenerator.Builder builder) |
Modifier and Type | Method and Description |
---|---|
List<String[]> |
tokenSequences(org.apache.uima.jcas.JCas aJCas)
Generate a list of String sequences.
|
protected StringSequenceGenerator(PhraseSequenceGenerator.Builder builder) throws IOException
IOException
public List<String[]> tokenSequences(org.apache.uima.jcas.JCas aJCas) throws FeaturePathException
aJCas
- the JCas
to generate sequences from.FeaturePathException
- if there was a problem creating the feature path.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.