sunnweiwei / GenRet

Learning to Tokenize for Generative Retrieval (NeurIPS 2023)
38 stars 4 forks source link

The role of ```doc_code = [0] * len(corpus)``` #5

Closed ntuwork closed 7 months ago

ntuwork commented 7 months ago

Thanks for sharing the code! I have something confusing, in run.py at line 1010, this line doc_code = [0] * len(corpus) changes doc_code all the way to 0. Can you tell me what is the function of this step?

sunnweiwei commented 7 months ago

Hi, Sorry, this is the code for debugging and I forgot to delete it. I have updated the code. Thank you for pointing out this issue.