koreyou / listnet_chainer

a Chainer implementation of "Learning to rank: from pairwise approach to listwise approach" by Cao et al..
Creative Commons Zero v1.0 Universal
25 stars 7 forks source link

I am getting problem while running this code #2

Open rahashwini opened 6 years ago

rahashwini commented 6 years ago

Hello, I am trying to execute your uploaded code with all required pre-requisite. INFO:root:Loading dataset Traceback (most recent call last): File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\bin\train.py", line 51, in run(args) File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\bin\train.py", line 15, in run train = dataset.create_dataset(args.train) File "G:\Implementation of the Project\Learning to Rank Algorithms\Python\ListNet+Chainer\listnet_chainer-master\listnet_chainer-master\listnet\dataset.py", line 28, in create_dataset with open(path, mode='r') as fin: FileNotFoundError: [Errno 2] No such file or directory: 'build/MQ2007/Fold1/train.txt'

Please help me to sort out this error

koreyou commented 6 years ago

Did you download files from http://research.microsoft.com/en-us/um/beijing/projects/letor/LETOR4.0/Data/MQ2007.rar ?

Your project directories should be structured like the following:

.
├── bin
│   └── train.py
├── build
│   └── MQ2007
│       ├── Fold1
│       │   ├── test.txt
│       │   ├── train.txt
│       │   └── vali.txt
│       ├── readme.txt
│       ├── S1.txt
│       └── ...
├── LICENSE
├── listnet
│   └── ...
├── README.md
└── requirements.txt
rahashwini commented 6 years ago

Yes, I directory hierarchy is same. I have also extracted the rar file that containing MQ2007 dataset

On Sun, Apr 8, 2018 at 9:53 AM, Yuta Koreeda notifications@github.com wrote:

Did you download files from http://research.microsoft.com/ en-us/um/beijing/projects/letor/LETOR4.0/Data/MQ2007.rar .

Your project directories should be structured like the following:

. ├── bin │ └── train.py ├── build │ └── MQ2007 │ ├── Fold1 │ │ ├── test.txt │ │ ├── train.txt │ │ └── vali.txt │ ├── readme.txt │ ├── S1.txt │ └── ... ├── LICENSE ├── listnet │ └── ... ├── README.md └── requirements.txt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/koreyou/listnet_chainer/issues/2#issuecomment-379519170, or mute the thread https://github.com/notifications/unsubscribe-auth/AjJ0k-wAriN4SKUaBYXXgTVrWda-UDGmks5tmZC3gaJpZM4TLDx4 .