CGCL-codes/naturalcc

AttributeError: type object 'SeqIndexedDataset' has no attribute 'Index'

fuchengjie opened this issue · 4 comments

hi,
I want to run GPT-2
After i execute: python -m ncc_dataset.raw_py150.completion.preprocess,got one error as the picture:

AttributeError: type object 'SeqIndexedDataset' has no attribute 'Index'

image

Looking for your reply.
Thanks.

hello, the seq_indexed_dataset.py's SeqIndexedDataset class don't have Index object.
Could you have any solution?
thanks.

If you can't resolve this issue, could you tell me function of SeqIndexedDataset.Index?

You can try to insert the code here to the SeqIndexedDataset class.

If you have any other questions. Please ping them (@wanyao1992).

thank you, i have tried this solution, but something wrong...
@wanyao1992