.stopwordsReplacement(stopwordsReplacement) .featurePath(tokenFeaturePath) .filterRegex(filterRegex) .filterRegexReplacement(filterRegexReplacement) .coveringType(coveringAnnotationType)
@Override public void initialize(UimaContext context) throws ResourceInitializationException { super.initialize(context); try { sequenceGenerator = new PhraseSequenceGenerator.Builder() .featurePath(featurePath) .filterRegex(numberRegex) .filterRegexReplacement(NUMBER_REPLACEMENT) .stopwordsFile(stopwordsFile) .stopwordsReplacement(STOPWORD_REPLACEMENT) .coveringType(coveringType) .buildStringSequenceGenerator(); } catch (IOException e) { throw new ResourceInitializationException(e); } }