Package org.apache.lucene.analysis.ja

Examples of org.apache.lucene.analysis.ja.JapaneseTokenizerFactory


        //init the Solr ResourceLoader used for initialising the components
        //first a ResourceLoader for this classloader, 2nd one using the commons.solr.core classloader
        //and third the parentResourceLoader (if present).
        resourceLoader = new StanbolResourceLoader(KuromojiNlpEngine.class.getClassLoader(),
            new StanbolResourceLoader(parentResourceLoader));
        tokenizerFactory = new JapaneseTokenizerFactory(TOKENIZER_FACTORY_CONFIG);
        ((ResourceLoaderAware) tokenizerFactory).inform(resourceLoader);
        //base form filter
        TokenFilterFactory baseFormFilterFactory =  new JapaneseBaseFormFilterFactory(BASE_FORM_FILTER_CONFIG);
        filterFactories.add(baseFormFilterFactory);
        //POS filter
View Full Code Here

TOP

Related Classes of org.apache.lucene.analysis.ja.JapaneseTokenizerFactory

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.