I found that aggregate.py comments out a function which removes self-linked items and it will trigger java.lang.ArrayIndexOutOfBoundsException when graph.UndirectedGraph loads the resulting file. See the followings.
testfile.txt:
$ java -Xmx24g -cp $CP ca.ualberta.entitylinking.graph.UndirectedGraph el.config testfile.txt
...
java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 32
at it.unimi.dsi.webgraph.BVGraph.updateBins(BVGraph.java:1738)
at it.unimi.dsi.webgraph.BVGraph.storeInternal(BVGraph.java:1844)
at it.unimi.dsi.webgraph.BVGraph.store(BVGraph.java:1687)
at it.unimi.dsi.webgraph.BVGraph.store(BVGraph.java:1715)
at it.unimi.dsi.webgraph.BVGraph.store(BVGraph.java:1727)
at ca.ualberta.entitylinking.graph.WeightedGraph.writeGraph(WeightedGraph.java:66)
at ca.ualberta.entitylinking.graph.UndirectedGraph.storeGraph(UndirectedGraph.java:87)
at ca.ualberta.entitylinking.graph.UndirectedGraph.main(UndirectedGraph.java:204)
Cheers,
I found that
aggregate.pycomments out a function which removes self-linked items and it will trigger java.lang.ArrayIndexOutOfBoundsException when graph.UndirectedGraph loads the resulting file. See the followings.testfile.txt:
Cheers,