/** * Generate a list of {@link 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. * * @param aJCas * a {@link JCas} * @return a list of {@link LexicalPhrase} arrays * @throws FeaturePathException * if there was a problem creating the feature path. */ public List<LexicalPhrase[]> tokenSequences(JCas aJCas) throws FeaturePathException { return useCharacters ? characterSequences(aJCas) : annotationSequences(aJCas); }
/** * Generate a list of {@link 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. * * @param aJCas * a {@link JCas} * @return a list of {@link LexicalPhrase} arrays * @throws FeaturePathException * if there was a problem creating the feature path. */ public List<LexicalPhrase[]> tokenSequences(JCas aJCas) throws FeaturePathException { return useCharacters ? characterSequences(aJCas) : annotationSequences(aJCas); }