Package org.apache.stanbol.commons.solr.utils

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


   
    @Before
    public void setUpServices() throws IOException , ConfigurationException {
        engine = new KuromojiNlpEngine();
        //we need to set some fields that would otherwise be injected by the container
        engine.parentResourceLoader = new DataFileResourceLoader(dataFileProvider);
        engine.analysedTextFactory = AnalysedTextFactory.getDefaultInstance();
        Dictionary<String,Object> config = new Hashtable<String,Object>();
        config.put(EnhancementEngine.PROPERTY_NAME, "gosen-nlp");
        engine.activate(new MockComponentContext(config));
        contentItem = contentItemFactory.createContentItem(id, new StringSource(text));
View Full Code Here

TOP

Related Classes of org.apache.stanbol.commons.solr.utils.DataFileResourceLoader

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.