Georgetown-IR-Lab / cedr

Code for CEDR: Contextualized Embeddings for Document Ranking, accepted at SIGIR 2019.
MIT License
155 stars 28 forks source link

Some problems with indri #45

Open yysirs opened 2 years ago

yysirs commented 2 years ago

Hi, I use indri, run

awk '{print $3}' /data1/liushu/cedr-master/data/robust/*.run | python /data1/liushu/cedr-master/cedr/extract_docs_from_index.py indri /data1/liushu/cedr-master/index-robust04-20220531/ > /data1/liushu/cedr-master/data/robust/documents.tsv

But an error was reported

Traceback (most recent call last):
  File "/data1/liushu/cedr-master/cedr/extract_docs_from_index.py", line 61, in <module>
    main_cli()
  File "/data1/liushu/cedr-master/cedr/extract_docs_from_index.py", line 49, in main_cli
    doc_extractor = INDEX_MAP[args.index_type](args.index_path)
  File "/data1/liushu/cedr-master/cedr/extract_docs_from_index.py", line 8, in indri_doc_extractor
    index = pyndri.Index(path)
  File "/home/ps/anaconda3/envs/aiwin/lib/python3.6/site-packages/pyndri/__init__.py", line 52, in __init__
    super(Index, self).__init__(*args, **kwargs)
OSError: ../src/Parameters.cpp(469): Couldn't open parameter file 'index-robust04-20220531/manifest' for reading.

How to fix it? Thank you very much!