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

execute author disambiguation task fail #64

Open
MandyWang666 opened this issue Jul 27, 2024 · 1 comment
Open

execute author disambiguation task fail #64

MandyWang666 opened this issue Jul 27, 2024 · 1 comment

Comments

@MandyWang666
Copy link

I follow the Readme file ,download the preproccessed data graph_CS.pk file and run the command 'python train_author_disambiguation.py' successfully.However , console reports as follows:

Traceback (most recent call last):
File "C:\Users\wmmsl\Documents\DDI\pyHGT\OAG\train_author_disambiguation.py", line 72, in
graph = renamed_load(open(args.data_dir + '/graph%s.pk' % args.domain, 'rb'))
File "C:\Users\wmmsl\Documents\DDI\pyHGT\OAG\pyHGT\data.py", line 269, in renamed_load
return RenameUnpickler(file_obj).load()
File "C:\Users\wmmsl\miniconda3\lib\site-packages\dill_dill.py", line 525, in load
obj = StockUnpickler.load(self)
TypeError: an integer is required (got type bytes)

it seems that data.py can not load the .pk file and why it has to be renamed?May I know why and how to solve this issue?Thanks.

@shairal1
Copy link

shairal1 commented Sep 15, 2024

Hi , I am facing same issue , were you able to solve it ? (i have same dill version)

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

2 participants