Package org.apache.uima.lucas.indexer.test.util

Examples of org.apache.uima.lucas.indexer.test.util.DummyTokenStream


  private MultimapFileReader multimapFileReader;
  private Map<String, List<String>> hypernyms;
 
  @Before
  public void setUp(){
    tokenStream = new DummyTokenStream("dummy", 1, 1, 0);
    hypernyms = new HashMap<String, List<String>>();
    hypernyms.put("token1", Lists.newArrayList("id1", "id2", "id3"));
   
    multimapFileReader = createMock(MultimapFileReader.class);
    multimapFileReaderFactory = createMock(MultimapFileReaderFactory.class);
View Full Code Here


  private ConcatFilterFactory concatFilterFactory;
  private TokenStream tokenStream;
 
  @Before
  public void setUp(){
    tokenStream = new DummyTokenStream("dummy", 1, 1, 0);
    concatFilterFactory = new ConcatFilterFactory();
  }
View Full Code Here

public class TokenStreamMergerTest extends TestCase {
  private TokenStreamMerger merger;
  @Override
  protected void setUp() throws Exception {
    List<TokenStream> streams = new ArrayList<TokenStream>();
    streams.add(new DummyTokenStream("1111", 1, 4, 0));
    streams.add(new DummyTokenStream("2222", 2, 2, 1));
    streams.add(new DummyTokenStream("3333", 3, 1, 2));
    merger = new TokenStreamMerger(streams);
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.lucas.indexer.test.util.DummyTokenStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.