Skip to content

execute author disambiguation task fail  #64

@MandyWang666

Description

@MandyWang666

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions