@Test public void testGetDefaultFilterFactories() { Map<String, TokenFilterFactory> registry = defaultFilterFactoryRegistry.getDefaultRegistry(); assertEquals(13, registry.size()); TokenFilterFactory filterFactory = registry.get(DefaultFilterFactoryRegistry.ADDITION_FILTER_FACTORY_NAME); assertEquals(AdditionFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.HYPERNYM_FILTER_FACTORY_NAME); assertEquals(HypernymFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.POSITION_FILTER_FACTORY_NAME); assertEquals(PositionFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.REPLACE_FILTER_FACTORY_NAME); assertEquals(ReplaceFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.SNOWBALL_FILTER_FACTORY_NAME); assertEquals(SnowballFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.SPLITTER_FILTER_FACTORY_NAME); assertEquals(SplitterFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.CONCAT_FILTER_FACTORY_NAME); assertEquals(ConcatFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.STOPWORD_FILTER_FACTORY_NAME); assertEquals(StopwordFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.UNIQUE_FILTER_FACTORY_NAME); assertEquals(UniqueFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.UPPERCASE_FILTER_FACTORY_NAME); assertEquals(UpperCaseFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.LOWERCASE_FILTER_FACTORY_NAME); assertEquals(LowerCaseFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.SELECT_FILTER_FACTORY_NAME); assertEquals(SelectFilterFactory.class, filterFactory.getClass()); filterFactory = registry.get(DefaultFilterFactoryRegistry.REGEXP_FILTER_FACTORY_NAME); assertEquals(RegExpFilterFactory.class, filterFactory.getClass()); }
public Map<String, TokenFilterFactory> getDefaultRegistry(){ Map<String, TokenFilterFactory> registry = new HashMap<String, TokenFilterFactory>(); registry.put(ADDITION_FILTER_FACTORY_NAME, new AdditionFilterFactory()); registry.put(HYPERNYM_FILTER_FACTORY_NAME, new HypernymFilterFactory(new MultimapFileReaderFactory())); registry.put(POSITION_FILTER_FACTORY_NAME, new PositionFilterFactory()); registry.put(REPLACE_FILTER_FACTORY_NAME, new ReplaceFilterFactory(new MapFileReaderFactory())); registry.put(SNOWBALL_FILTER_FACTORY_NAME, new SnowballFilterFactory()); registry.put(SPLITTER_FILTER_FACTORY_NAME, new SplitterFilterFactory()); registry.put(CONCAT_FILTER_FACTORY_NAME, new ConcatFilterFactory()); registry.put(STOPWORD_FILTER_FACTORY_NAME, new StopwordFilterFactory(new PlainFileReaderFactory())); registry.put(UNIQUE_FILTER_FACTORY_NAME, new UniqueFilterFactory()); registry.put(UPPERCASE_FILTER_FACTORY_NAME, new UpperCaseFilterFactory()); registry.put(LOWERCASE_FILTER_FACTORY_NAME, new LowerCaseFilterFactory()); registry.put(SELECT_FILTER_FACTORY_NAME, new SelectFilterFactory()); registry.put(REGEXP_FILTER_FACTORY_NAME, new RegExpFilterFactory()); return registry; }
DefaultFilterFactoryRegistry { public Map<String, TokenFilterFactory> getDefaultRegistry(){ Map<String, TokenFilterFactory> registry = new HashMap<String, TokenFilterFactory>(); registry.put(ADDITION_FILTER_FACTORY_NAME, new AdditionFilterFactory()); registry.put(HYPERNYM_FILTER_FACTORY_NAME, new HypernymFilterFactory(new MultimapFileReaderFactory())); registry.put(POSITION_FILTER_FACTORY_NAME, new PositionFilterFactory()); registry.put(REPLACE_FILTER_FACTORY_NAME, new ReplaceFilterFactory(new MapFileReaderFactory())); registry.put(SNOWBALL_FILTER_FACTORY_NAME, new SnowballFilterFactory()); registry.put(SPLITTER_FILTER_FACTORY_NAME, new SplitterFilterFactory()); registry.put(CONCAT_FILTER_FACTORY_NAME, new ConcatFilterFactory()); registry.put(STOPWORD_FILTER_FACTORY_NAME, new StopwordFilterFactory(new PlainFileReaderFactory())); registry.put(UNIQUE_FILTER_FACTORY_NAME, new UniqueFilterFactory()); registry.put(UPPERCASE_FILTER_FACTORY_NAME, new UpperCaseFilterFactory()); registry.put(LOWERCASE_FILTER_FACTORY_NAME, new LowerCaseFilterFactory()); registry.put(SELECT_FILTER_FACTORY_NAME, new SelectFilterFactory()); registry.put(REGEXP_FILTER_FACTORY_NAME, new RegExpFilterFactory()); return registry; } }
DefaultFilterFactoryRegistry { public Map<String, TokenFilterFactory> getDefaultRegistry(){ Map<String, TokenFilterFactory> registry = new HashMap<String, TokenFilterFactory>(); registry.put(ADDITION_FILTER_FACTORY_NAME, new AdditionFilterFactory()); registry.put(HYPERNYM_FILTER_FACTORY_NAME, new HypernymFilterFactory(new MultimapFileReaderFactory())); registry.put(POSITION_FILTER_FACTORY_NAME, new PositionFilterFactory()); registry.put(REPLACE_FILTER_FACTORY_NAME, new ReplaceFilterFactory(new MapFileReaderFactory())); registry.put(SNOWBALL_FILTER_FACTORY_NAME, new SnowballFilterFactory()); registry.put(SPLITTER_FILTER_FACTORY_NAME, new SplitterFilterFactory()); registry.put(CONCAT_FILTER_FACTORY_NAME, new ConcatFilterFactory()); registry.put(STOPWORD_FILTER_FACTORY_NAME, new StopwordFilterFactory(new PlainFileReaderFactory())); registry.put(UNIQUE_FILTER_FACTORY_NAME, new UniqueFilterFactory()); registry.put(UPPERCASE_FILTER_FACTORY_NAME, new UpperCaseFilterFactory()); registry.put(LOWERCASE_FILTER_FACTORY_NAME, new LowerCaseFilterFactory()); registry.put(SELECT_FILTER_FACTORY_NAME, new SelectFilterFactory()); registry.put(REGEXP_FILTER_FACTORY_NAME, new RegExpFilterFactory()); return registry; }  }
DefaultFilterFactoryRegistry { public Map<String, TokenFilterFactory> getDefaultRegistry(){ Map<String, TokenFilterFactory> registry = new HashMap<String, TokenFilterFactory>(); registry.put(ADDITION_FILTER_FACTORY_NAME, new AdditionFilterFactory()); registry.put(HYPERNYM_FILTER_FACTORY_NAME, new HypernymFilterFactory(new MultimapFileReaderFactory())); registry.put(POSITION_FILTER_FACTORY_NAME, new PositionFilterFactory()); registry.put(REPLACE_FILTER_FACTORY_NAME, new ReplaceFilterFactory(new MapFileReaderFactory())); registry.put(SNOWBALL_FILTER_FACTORY_NAME, new SnowballFilterFactory()); registry.put(SPLITTER_FILTER_FACTORY_NAME, new SplitterFilterFactory()); registry.put(CONCAT_FILTER_FACTORY_NAME, new ConcatFilterFactory()); registry.put(STOPWORD_FILTER_FACTORY_NAME, new StopwordFilterFactory(new PlainFileReaderFactory())); registry.put(UNIQUE_FILTER_FACTORY_NAME, new UniqueFilterFactory()); registry.put(UPPERCASE_FILTER_FACTORY_NAME, new UpperCaseFilterFactory()); registry.put(LOWERCASE_FILTER_FACTORY_NAME, new LowerCaseFilterFactory()); registry.put(SELECT_FILTER_FACTORY_NAME, new SelectFilterFactory()); registry.put(REGEXP_FILTER_FACTORY_NAME, new RegExpFilterFactory()); return registry; }  Map<String, TokenFilterFactory> getDefaultRegistry(); }
DefaultFilterFactoryRegistry { public Map<String, TokenFilterFactory> getDefaultRegistry(){ Map<String, TokenFilterFactory> registry = new HashMap<String, TokenFilterFactory>(); registry.put(ADDITION_FILTER_FACTORY_NAME, new AdditionFilterFactory()); registry.put(HYPERNYM_FILTER_FACTORY_NAME, new HypernymFilterFactory(new MultimapFileReaderFactory())); registry.put(POSITION_FILTER_FACTORY_NAME, new PositionFilterFactory()); registry.put(REPLACE_FILTER_FACTORY_NAME, new ReplaceFilterFactory(new MapFileReaderFactory())); registry.put(SNOWBALL_FILTER_FACTORY_NAME, new SnowballFilterFactory()); registry.put(SPLITTER_FILTER_FACTORY_NAME, new SplitterFilterFactory()); registry.put(CONCAT_FILTER_FACTORY_NAME, new ConcatFilterFactory()); registry.put(STOPWORD_FILTER_FACTORY_NAME, new StopwordFilterFactory(new PlainFileReaderFactory())); registry.put(UNIQUE_FILTER_FACTORY_NAME, new UniqueFilterFactory()); registry.put(UPPERCASE_FILTER_FACTORY_NAME, new UpperCaseFilterFactory()); registry.put(LOWERCASE_FILTER_FACTORY_NAME, new LowerCaseFilterFactory()); registry.put(SELECT_FILTER_FACTORY_NAME, new SelectFilterFactory()); registry.put(REGEXP_FILTER_FACTORY_NAME, new RegExpFilterFactory()); return registry; }  Map<String, TokenFilterFactory> getDefaultRegistry(); static final String ADDITION_FILTER_FACTORY_NAME; static final String HYPERNYM_FILTER_FACTORY_NAME; static final String POSITION_FILTER_FACTORY_NAME; static final String REPLACE_FILTER_FACTORY_NAME; static final String SNOWBALL_FILTER_FACTORY_NAME; static final String SPLITTER_FILTER_FACTORY_NAME; static final String STOPWORD_FILTER_FACTORY_NAME; static final String UNIQUE_FILTER_FACTORY_NAME; static final String UPPERCASE_FILTER_FACTORY_NAME; static final String LOWERCASE_FILTER_FACTORY_NAME; static final String UEA_FILTER_FACTORY_NAME; static final String CONCAT_FILTER_FACTORY_NAME; static final String SELECT_FILTER_FACTORY_NAME; static final String REGEXP_FILTER_FACTORY_NAME; }