Examples of StanbolResourceLoader


Examples of org.apache.stanbol.commons.solr.utils.StanbolResourceLoader

        log.info("activating smartcn tokenizing engine");
        super.activate(ce);
        //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);
View Full Code Here

Examples of org.apache.stanbol.commons.solr.utils.StanbolResourceLoader

    private LanguageConfiguration langConf = new LanguageConfiguration(SUPPORTED_LANUAGES, new String[]{});

    @Activate
    protected void activate(ComponentContext ctx) throws ConfigurationException {
        //init the Solr ResourceLoader used for initialising the components
        resourceLoader = new StanbolResourceLoader(parentResourceLoader);
        //init the Solr CharFilterFactory (optional)
        Object value = ctx.getProperties().get(PROPERTY_CHAR_FILTER_FACTORY);
        if(value != null && !value.toString().isEmpty() && !DEFAULT_CLASS_NAME_CONFIG.equals(value)){
            Entry<String,Map<String,String>> charFilterConfig = parseConfigLine(
                PROPERTY_CHAR_FILTER_FACTORY, value.toString());
View Full Code Here

Examples of org.apache.stanbol.commons.solr.utils.StanbolResourceLoader

    private LanguageConfiguration langConf = new LanguageConfiguration(SUPPORTED_LANUAGES, new String[]{});
   
    @Activate
    protected void activate(ComponentContext ctx) throws ConfigurationException {
        //init the Solr ResourceLoader used for initialising the components
        resourceLoader = new StanbolResourceLoader(parentResourceLoader);
        //init the Solr CharFilterFactory (optional)
        Object value = ctx.getProperties().get(PROPERTY_CHAR_FILTER_FACTORY);
        if(value != null && !value.toString().isEmpty() && !DEFAULT_CLASS_NAME_CONFIG.equals(value)){
            Entry<String,Map<String,String>> charFilterConfig = parseConfigLine(
                PROPERTY_CHAR_FILTER_FACTORY, value.toString());
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.