Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph.UndirectedGragh causes error when it faces self link #4

Open
titsuki opened this issue Jun 12, 2019 · 0 comments
Open

graph.UndirectedGragh causes error when it faces self link #4

titsuki opened this issue Jun 12, 2019 · 0 comments

Comments

@titsuki
Copy link

titsuki commented Jun 12, 2019

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:

a       a       1
$ 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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant