wiki:sample property configuration file

All configurable parameters can be defined in a property file (e.g. production.properties in peregrine-rmi):

### Configuration of DB ontology ###
ontology.jdbc.url=jdbc:mysql://<url>:<port>/<dbname>?autoReconnect=true
ontology.jdbc.user=
ontology.jdbc.pass=
# Optionally, you can define in which language you want to load from the DB ontology, e.g. "en, nl". Keep this field undefined means all language will be loaded.
peregrine.ontology.languages=

### Configuration of File ontology ###
ontology.file.name=

### Configuration of normalizer ###
normalizer.lvg.properties=../../dataset/target/classes/data/config/lvg.properties
normalizer.lvg.binaryCache=../../dataset/target/classes/standardNormCache2006.bin

### Configuration of disambiguator ###
# You could fine tune them for a better disambiguation results.
disambiguator.decisionMaker.disambiguationMinimalWeight=50
disambiguator.decisionMaker.disambiguationAlwaysAcceptedWeight=80
disambiguator.hasSynonymRule.maxSynonymDistance=100
disambiguator.hasSynonymRule.minSynonymWeight=75
disambiguator.hasSynonymRule.maxSynonymWeight=80
disambiguator.isComplexRule.maxTermLength=6
disambiguator.isComplexRule.minTermLength=3
disambiguator.isComplexRule.minTermNumbers=1
disambiguator.isComplexRule.minTermLetters=1
disambiguator.hasKeywordRule.maxKeywordDistance=50
disambiguator.hasKeywordRule.minKeywordWeight=70
disambiguator.hasKeywordRule.maxKeywordWeight=75

### Configuration of Ehcache ###
# Default settings for Ehcache; overwrite this property to provide your own Ehcache settings
ehcache.configLocation=classpath:/org/erasmusmc/data_mining/ontology/impl/cache/ehcache.xml

This property file needs to be included in your Spring configuration file:

<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" scope="singleton">
		<property name="location" value="classpath:/org/erasmusmc/data_mining/peregrine/production.properties" />
	</bean>
Last modified 11 years ago Last modified on Nov 1, 2011, 5:13:58 PM