Examples of CorpusCreationTask


Examples of org.apache.stanbol.enhancer.engines.lucenefstlinking.CorpusCreationTask

            Assert.assertTrue("Failure in UnitTest - all FST models need to be generate=true",
                corpus.allowCreation);
            if(!corpus.isFstFile()){
                //create a task on the FST corpus creation service
                creationTasks.add(fstConfig.getExecutorService().submit(
                    new CorpusCreationTask(fstConfig, corpus)));
            }
        }
        //and wait until all models are built (should only take some seconds on
        //typical hardware
        for(Future<?> future : creationTasks){
View Full Code Here

Examples of org.apache.stanbol.entityhub.indexing.destination.solryard.fst.CorpusCreationTask

            List<Future<?>> fstCreationTasks = new ArrayList<Future<?>>();
            ExecutorService es = Executors.newFixedThreadPool(fstThreads);
            log.info(" ... build FST models ");
            for(FstConfig config : fstConfigs){
                for(final CorpusCreationInfo corpus : config.getCorpusCreationInfos()){
                    fstCreationTasks.add(es.submit(new CorpusCreationTask(core, corpus)));
                }
            }
            //now wait for the completion of the tasks
            Iterator<Future<?>> taskIt = fstCreationTasks.iterator();
            while(taskIt.hasNext()){
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.