bloomsburyai / question-generation

Neural text-to-text question generation
MIT License
217 stars 52 forks source link

Not installing in the requirements.txt #7

Closed tanik4u closed 5 years ago

tanik4u commented 5 years ago

"en-core-web-sm==2.0.0" contained in requirements.txt file is not installing. I want to run this code to generate question given context and answer for my dataset, please help. It's urgent.

Please give me a proper documentation.

tomhosking commented 5 years ago

You can remove that line from requirements.txt - it will be installed by setup.sh but for some reason is included in the output of pip freeze.

Then, run the demo with PYTHONPATH=$PYTHONPATH:./src/ python ./src/demo/app.py --data_path ./data/ $@

TanikSaikh commented 5 years ago

ok, thanks. Finally, when I am running the command "./demo.sh --model_type MALUUBA --context_as_set --glove_vocab", it's giving error like below: The TensorFlow library was compiled to use AVX instructions, but these aren't available on your machine. Please help...

tomhosking commented 5 years ago

You can ignore that message.

tanik4u commented 5 years ago

Ok... When I am running the command "sh train.sh", it gives sh train.sh like below: Illegal instruction (core dumped) please help!!

tomhosking commented 5 years ago

That sounds like an error with TensorFlow, not this code

tanik4u commented 5 years ago

Now after resolving all the previous issues when I am running "./demo.sh --model_type MALUUBA --context_as_set --glove_vocab" command it's is giving the error like below: "ModuleNotFoundError: No module named 'seq2seq_model'" at line 8 in instance.py Is the seq2seq model is not incorporated. please help!!

tomhosking commented 5 years ago

Run the demo using the command in my first comment instead.

tanik4u commented 5 years ago

screenshot from 2018-11-20 20-20-33 Now I am getting the error as shown in the screen shot after running the demo please help!!

tomhosking commented 5 years ago

Make sure you checked out the commit referenced in the readme

TanikSaikh commented 5 years ago

In the starting, there is a line "To use the saved models, checkout commit be134175652204f3bf51cb194454d7b72c8b8105 - breaking changes have been made since then, I will update the models once retrained." But I Can't understand!! What shall I have to do? Please tell me how to do that.

tomhosking commented 5 years ago

Run git checkout commit be134175652204f3bf51cb194454d7b72c8b8105 to use the version compatible with the pre-trained models.

Please note that this is research code, it may not be suitable for your requirements and may require some modification to work in your environment. If you're not familiar with git or TensorFlow it may not be suitable for you.