opencog / relex

English Dependency Relationship Extractor
http://wiki.opencog.org/w/RelEx
Apache License 2.0
85 stars 68 forks source link

Load RelEx resources (such as *.algs) from .jar if it cannot be found in filesystems #263

Closed vsbogd closed 6 years ago

vsbogd commented 6 years ago

RelEx uses following data files to perform analysis:

By default they are loaded from working folder. Loading path can be changed via JVM properties such as -Dwordnet.configfile or -Drelex.algpath. Also these files are packed into relex.jar but they are not loaded from it which makes it impossible to run relex applications without having these files in place.

This issue is to revisit all places where resources are loaded and implement the following loading sequence:

vsbogd commented 6 years ago

All data is located at https://github.com/opencog/relex/tree/master/data It is packed into .jar file: https://github.com/opencog/relex/blob/8026817a31e3359faadd66b224f836e31dd50abb/pom.xml#L181-L217 But not used from it.

vsbogd commented 6 years ago

Closed by https://github.com/opencog/relex/pull/268