thunlp / Fast-TransX

An Efficient implementation of TransE and its extended models for Knowledge Representation Learning
MIT License
402 stars 108 forks source link

I meet Segmentation fault when I run your code on linux #1

Closed wangdsh closed 7 years ago

wangdsh commented 7 years ago

I use gdb to debug in line 184 sum += fabs(entityVec[last2 + ii] - entityVec[last1 + ii] - relationVec[lastr + ii]); once last2 is too big(for examble: 1775403720), I print entityVec[1775403720] there is a tip: Cannot access memory at address 0x80019e18db30

I want to know how to fix this bug

THUCSTHanxu13 commented 7 years ago

I have fixed bugs. The problem is not in the main body of the program but in the processing of data input. Please accept my apologies for my oversight.