xssstory / SeqCo

Code for "Sequence Level Contrastive Learning for Text Summarization"
MIT License
21 stars 1 forks source link

Could you share the complete fairseq package? I can not run it #3

Open KpKqwq opened 2 years ago

xssstory commented 2 years ago

Could you please show me some more details about the problems you encounter?

KpKqwq commented 2 years ago

Traceback (most recent call last): File "/home/user/anaconda3/lib/python3.8/runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/home/user/anaconda3/lib/python3.8/runpy.py", line 111, in _get_module_details import(pkg_name) File "/home/user/SeqCo-master/examples/init.py", line 8, in import examples.noisychannel # noqa File "/home/user/SeqCo-master/examples/noisychannel/init.py", line 6, in from .rerank_options import * # noqa File "/home/user/SeqCo-master/examples/noisychannel/rerank_options.py", line 6, in from fairseq import options File "/home/user/SeqCo-master/fairseq/init.py", line 15, in import fairseq.tasks # noqa File "/home/user/SeqCo-master/fairseq/tasks/init.py", line 60, in importlib.import_module('fairseq.tasks.' + task_name) File "/home/user/anaconda3/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/user/SeqCo-master/fairseq/tasks/back_summarization.py", line 27, in from fairseq.data.bart_dataset import BartDataset ModuleNotFoundError: No module named 'fairseq.data.bart_dataset' I could not find the fairseq.data folder

xssstory commented 2 years ago

Thanks for your feedback! Now fairseq.data is added.

KpKqwq commented 2 years ago

thank you very much!