haitian-sun / GraftNet

BSD 2-Clause "Simplified" License
268 stars 56 forks source link

ValueError: could not convert string to float: 'name@domain.com' #16

Closed CindyTing closed 3 years ago

CindyTing commented 3 years ago

Hi, Dr. Sun When I am running step2_relation_embeddings.py in preprocessing folder, it always has this error. There is the log: Traceback (most recent call last): File "step2_relation_embeddings.py", line 39, in [float(vv) for vv in vec.split()]) File "step2_relation_embeddings.py", line 39, in [float(vv) for vv in vec.split()]) ValueError: could not convert string to float: 'name@domain.com' And I found it was because glove embedding ,it has some word and vec liks "to name@domain.com vec", so should I remove this "name@domain.com" words?

Just-For-Fun77 commented 2 years ago

Hello, have you solved this problem? I have the same problem.