Closed vsbogd closed 5 years ago
@linas, fast look shows that this functionality is used iff storeSense
option is enabled in LGConfig
. And it in turn is enabled by do_apply_algs
flag: https://github.com/opencog/relex/blob/2f71dc0f62a83d59ec3677d2c64a7b77813b93af/src/java/relex/RelationExtractor.java#L155-L159 which is true
by default: https://github.com/opencog/relex/blob/2f71dc0f62a83d59ec3677d2c64a7b77813b93af/src/java/relex/RelationExtractor.java#L114-L127
So it looks like removing this method is breaking change for Relex
.
the sense stuff should be stripped out of relex. It has not worked in .. a decade?
someone removed build.xml
from relex, making it impossible to build, without having to install maven. wtf.
We need to figure out how to stop using relex.
I removed that one line with pull req #285 -- and merged it. Tests now build, for me. Tested with ant
-- re-open or open a new bug if it doesn't work with maven
.
Oh. looks like there's more to be done. another pull req will follow shortly...
Pull req #286 removes the rest. Oddly enough, I did not get any errors when this was accidentally left in...
Thanks!
Unit tests fail (see the log below) because
LinkGrammar.getLinkageSense
andLinkGrammar.getLinkageSenseScore
java API method implementations were removed by commit https://github.com/opencog/link-grammar/commit/5249ddb99fb8fd33731b518029c31f316c1c552c#diff-acf5e8f599bb0954fb0aa69ba6293ce1The error cannot be found at the compilation stage because Java API still contains the methods declarations: https://github.com/opencog/link-grammar/blob/c304c4398557b8849da42e5a40c72cdb13db0758/bindings/java/org/linkgrammar/LinkGrammar.java#L120-L122
Build log: