This module provides the paoding-analysis analyzer for Chinese as bundle extending the default Apache Stanbol Commons Solr core module.
This modules includes an fork from revision 154 of the the paoding-analysis projects svn repository.
The last commit to this projects repository was in Nov 15, 2010. The project is under the Apache License 2.0.
This provides an overview on all changes made to the paoding source code (anything in the net.paoding.* packages)
The dictionary is included in the module in an ZIP archive. The org.apache.stanbol.commons.solr.extras.paoding.Activator class can be used to initialize the dictionary. When using this module in OSGI this will be done automatically by the Bundle Activator. Outside of OSGI (e.g. for unit test) this needs to be done manually by calling:
:::java File paodingDict; //the directory for the dict if(!paodingDict.isDirectory()){ Activator.initPaodingDictionary(paodingDict, getClass().getClassLoader().getResourceAsStream( Activator.DICT_ARCHIVE)); } Activator.initPaodingDictHomeProperty(paodingDict);
All initialization methods supported by paoding are still supported. In addition the dictionary location can now also be parsed as Java system property (e.g. by adding ‘-DPAODING_DIC_HOME={path}’ when starting the JVM).
This module also includes an default ‘paoding-analysis.properties’ file that sets the default dictionary path to ‘.’ (the working directory). Users can use their own dictionary file if they place it in the classpath in front of this module.