Open kanranmm opened 2 years ago
were you able to solve it?
I encountered the same problem.
Many of the packages in setup.py and requirements.txt are outdated and not compatible with with newer python versions updating packages to last version also causes some other problems
I also have some problems in google colab, it could not run successfully due to the outdated versions of packages and dependecies
At the same time, some package versions have some conflicts
Do you think creating a virtual environment could solve it?
It might help although not the optimal solution, the project doesn't seem abandoned so maybe it can be updated by core team or other contributors . i tried to update packages but just like you the conflicts prevented me. might work on it later but as I'm not familiar with the code it wont be easy.
@Cheng-SQ0716 @Rionarth @kanranmm @whitewhistle fixed problems in forked repo https://github.com/pooyaEst/Questgen.ai , in colab (updated link in readme of https://github.com/pooyaEst/Questgen.ai ) remember to change git repo to https://github.com/pooyaEst/Questgen.ai
This is solved. Close it
I did all these:
pip install git+https://github.com/ramsrigouthamg/Questgen.ai pip install git+https://github.com/boudinfl/pke.git@69337af9f9e72a25af6d7991eaa9869f1322dd72 python -m nltk.downloader universal_tagset python -m spacy download en
Then when I run:
from pprint import pprint import nltk nltk.download('stopwords') from Questgen import main qe= main.BoolQGen() payload = { "input_text": "Sachin Ramesh Tendulkar is a former international cricketer from India and a former captain of the Indian national team. He is widely regarded as one of the greatest batsmen in the history of cricket. He is the highest run scorer of all time in International cricket." } output = qe.predict_boolq(payload) pprint (output)
I get the following error:
`--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last)