@Override public void collectionProcessComplete() throws AnalysisEngineProcessException { Segmentation segmentation; for (Word word : termIndexResource.getTermIndex().getWords()) { segmentation = manualCompositions.getSegmentation(word.getLemma()); if (segmentation != null) if (segmentation.size() <= 1) word.resetComposition(); } }