End-to-End text sumarization, QAs generation using flask.
Python
22
91 commits
updated Oct 11, 2021
A web application created with Flask + BootStrap + HuggingFace🤗 to generate summary and question-answer from given input text. It uses T5 (Text-To-Text Transfer Transformer) for summaries and 'Question Generation using transformers' for question answer generation. For deployment gunicorn(python wsgi server) is used.
This application is created with flask(a python microframework), for NLP models HuggingFace is used and for styling and other purposses HTML+CSS+Javascript is used. The goal was to help user read their text, it can be a blog text, some long passage etc. This application takes advantage of multitask model such as T5 to generate abstractive summary, generate questions from the given text and verify thier answers using a NLP technique called Semantic textual similarity (MRPC in short). To get started, user needs to input some text they want to read, then can summarize the given text or also can generate questions based on the texts summary. User can later attend the questions generated to verify their knowledge about the text and can also get results of they did from the model. Models are quantized to save space and increase performance.
python 3.9 or above
pytorch 1.8.1 or above
transformers 4.4.2 or above
$ conda create --name helpmeread_env$ conda activate helpmeread_env$ pip install -U pip$ pip install -r requirements.txt --no-cache-dir$ python -m nltk.downloader punktgunicorn --bind 0.0.0.0:5000 wsgi:apppython wsgi.pydocker build --tag helpmeread:1.3 .docker run --publish 5000:5000 --detach --name hmr helpmeread:1.3localhost:5000

End-to-End text sumarization, QAs generation using flask.
Python
22
91 commits
updated Oct 11, 2021
A web application created with Flask + BootStrap + HuggingFace🤗 to generate summary and question-answer from given input text. It uses T5 (Text-To-Text Transfer Transformer) for summaries and 'Question Generation using transformers' for question answer generation. For deployment gunicorn(python wsgi server) is used.
This application is created with flask(a python microframework), for NLP models HuggingFace is used and for styling and other purposses HTML+CSS+Javascript is used. The goal was to help user read their text, it can be a blog text, some long passage etc. This application takes advantage of multitask model such as T5 to generate abstractive summary, generate questions from the given text and verify thier answers using a NLP technique called Semantic textual similarity (MRPC in short). To get started, user needs to input some text they want to read, then can summarize the given text or also can generate questions based on the texts summary. User can later attend the questions generated to verify their knowledge about the text and can also get results of they did from the model. Models are quantized to save space and increase performance.
python 3.9 or above
pytorch 1.8.1 or above
transformers 4.4.2 or above
$ conda create --name helpmeread_env$ conda activate helpmeread_env$ pip install -U pip$ pip install -r requirements.txt --no-cache-dir$ python -m nltk.downloader punktgunicorn --bind 0.0.0.0:5000 wsgi:apppython wsgi.pydocker build --tag helpmeread:1.3 .docker run --publish 5000:5000 --detach --name hmr helpmeread:1.3localhost:5000
