@Test public void testCreateTokenFilter() throws Exception{ Properties properties = new Properties(); properties.setProperty(SnowballFilterFactory.STEMMER_NAME_PARAMETER, PORTER); SnowballFilter snowballFilter = (SnowballFilter) snowballFilterFactory.createTokenFilter(tokenStream, properties ); assertNotNull(snowballFilter); }
public TokenFilter createTokenFilter(TokenStream tokenStream, Properties properties) throws IOException { String stemmerName = properties.getProperty(STEMMER_NAME_PARAMETER); if( stemmerName == null ) stemmerName = DEFAULT_STEMMER_NAME; return new SnowballFilter(tokenStream, stemmerName); }
SnowballFilterFactory implements TokenFilterFactory { public TokenFilter createTokenFilter(TokenStream tokenStream, Properties properties) throws IOException { String stemmerName = properties.getProperty(STEMMER_NAME_PARAMETER); if( stemmerName == null ) stemmerName = DEFAULT_STEMMER_NAME; return new SnowballFilter(tokenStream, stemmerName); } }
SnowballFilterFactory implements TokenFilterFactory { public TokenFilter createTokenFilter(TokenStream tokenStream, Properties properties) throws IOException { String stemmerName = properties.getProperty(STEMMER_NAME_PARAMETER); if( stemmerName == null ) stemmerName = DEFAULT_STEMMER_NAME; return new SnowballFilter(tokenStream, stemmerName); }  }
SnowballFilterFactory implements TokenFilterFactory { public TokenFilter createTokenFilter(TokenStream tokenStream, Properties properties) throws IOException { String stemmerName = properties.getProperty(STEMMER_NAME_PARAMETER); if( stemmerName == null ) stemmerName = DEFAULT_STEMMER_NAME; return new SnowballFilter(tokenStream, stemmerName); }  TokenFilter createTokenFilter(TokenStream tokenStream,
			Properties properties); void preloadResources(Properties properties); }
SnowballFilterFactory implements TokenFilterFactory { public TokenFilter createTokenFilter(TokenStream tokenStream, Properties properties) throws IOException { String stemmerName = properties.getProperty(STEMMER_NAME_PARAMETER); if( stemmerName == null ) stemmerName = DEFAULT_STEMMER_NAME; return new SnowballFilter(tokenStream, stemmerName); }  TokenFilter createTokenFilter(TokenStream tokenStream,
			Properties properties); void preloadResources(Properties properties); static final String STEMMER_NAME_PARAMETER; }