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

python version? #6

Open
chl-0537 opened this issue Jul 31, 2024 · 3 comments
Open

python version? #6

chl-0537 opened this issue Jul 31, 2024 · 3 comments

Comments

@chl-0537
Copy link

请问你们的python环境版本是多少?
May I ask what is the version of your Python environment?

@chl-0537
Copy link
Author

我按照readme的操作,报错如下

(InfoRag) lihengzhi@dell-t640-204:~/chl/INFO-RAG$ python make_unsupervised_data/make_data.py --psgs_data_path /home/lihengzhi/chl/INFO-RAG/psgs_w100.tsv --uns_data_path /home/lihengzhi/chl/INFO-RAG/save_data
8000000it [01:15, 105718.09it/s]
  0%|                                                                                                | 0/8000000 [00:00<?, ?it/s]0count 0.00030040740966796875s
  0%|                                                                                     | 5/8000000 [00:00<93:10:57, 23.85it/s]
Traceback (most recent call last):
  File "/home/lihengzhi/chl/INFO-RAG/make_unsupervised_data/make_data.py", line 86, in <module>
    data[0] = str(count)
IndexError: list assignment index out of range

@frankjoey2048
Copy link

我感觉是代码那行有问题,把85行改成:

data = ['', '', '', '']

就行。

@frankjoey2048
Copy link

还有第一行也少了引用argparse

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