/** * Generate a list of String sequences. * * @param aJCas * the {@link JCas} to generate sequences from. * @return a list of string arrays. * @throws FeaturePathException * if there was a problem creating the feature path. */ public List<String[]> tokenSequences(JCas aJCas) throws FeaturePathException { return psg.tokenSequences(aJCas).stream() .map(this::phrases2String) .collect(Collectors.toList()); }
/** * Generate a list of String sequences. * * @param aJCas * the {@link JCas} to generate sequences from. * @return a list of string arrays. * @throws FeaturePathException * if there was a problem creating the feature path. */ public List<String[]> tokenSequences(JCas aJCas) throws FeaturePathException { return psg.tokenSequences(aJCas).stream() .map(this::phrases2String) .collect(Collectors.toList()); }