Author: rwesten
Date: Wed Mar 20 14:12:33 2013
New Revision: 1458843

URL: http://svn.apache.org/r1458843
Log:
STANBOL-980: fixed a bug that prevented the configuration that no POS tags 
should be interpreted as stop tags to be loaded. Also changed the default name 
to kuromoji-nlp

Modified:
    
stanbol/trunk/enhancement-engines/kuromoji-nlp/src/main/java/org/apache/stanbol/enhancer/engines/kuromoji/impl/KuromojiNlpEngine.java

Modified: 
stanbol/trunk/enhancement-engines/kuromoji-nlp/src/main/java/org/apache/stanbol/enhancer/engines/kuromoji/impl/KuromojiNlpEngine.java
URL: 
http://svn.apache.org/viewvc/stanbol/trunk/enhancement-engines/kuromoji-nlp/src/main/java/org/apache/stanbol/enhancer/engines/kuromoji/impl/KuromojiNlpEngine.java?rev=1458843&r1=1458842&r2=1458843&view=diff
==============================================================================
--- 
stanbol/trunk/enhancement-engines/kuromoji-nlp/src/main/java/org/apache/stanbol/enhancer/engines/kuromoji/impl/KuromojiNlpEngine.java
 (original)
+++ 
stanbol/trunk/enhancement-engines/kuromoji-nlp/src/main/java/org/apache/stanbol/enhancer/engines/kuromoji/impl/KuromojiNlpEngine.java
 Wed Mar 20 14:12:33 2013
@@ -110,7 +110,7 @@ import org.slf4j.LoggerFactory;
     policy = ConfigurationPolicy.OPTIONAL) //create a default instance with 
the default configuration
 @Service
 @Properties(value={
-        @Property(name= 
EnhancementEngine.PROPERTY_NAME,value="kuromoji-token"),
+        @Property(name= EnhancementEngine.PROPERTY_NAME,value="kuromoji-nlp"),
         @Property(name=Constants.SERVICE_RANKING,intValue=0) //give the 
default instance a ranking < 0
 })
 public class KuromojiNlpEngine extends 
AbstractEnhancementEngine<IOException,RuntimeException> implements 
ServiceProperties {
@@ -357,7 +357,10 @@ public class KuromojiNlpEngine extends A
         log.info("activating smartcn tokenizing engine");
         super.activate(ce);
         //init the Solr ResourceLoader used for initialising the components
-        resourceLoader = new StanbolResourceLoader(parentResourceLoader);
+        //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();
         tokenizerFactory.init(TOKENIZER_FACTORY_CONFIG);
         tokenizerFactory.setLuceneMatchVersion(LUCENE_VERSION);


Reply via email to