Giter Site home page Giter Site logo

saarthdeshpande / book-summarizer Goto Github PK

View Code? Open in Web Editor NEW
33.0 3.0 13.0 13.92 MB

Using pretrained T5 model for abstractive summarization of books

License: MIT License

Python 70.23% HTML 26.65% CSS 3.12%
book summarization chapter t5 chapterwise

book-summarizer's People

Contributors

dependabot[bot] avatar saarthdeshpande avatar shanayghag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

book-summarizer's Issues

KeyError and smtplib.SMTPAuthenticationError

'Corrections'
Traceback (most recent call last):
File "/content/book-summarizer/model.py", line 107, in summaryGeneration
summary = sentenceCorrection(summary)
File "/content/book-summarizer/model.py", line 43, in sentenceCorrection
sentenceDict = parser.parse(sentence)
File "/usr/local/lib/python3.7/dist-packages/gingerit/gingerit.py", line 27, in parse
return self._process_data(text, data)
File "/usr/local/lib/python3.7/dist-packages/gingerit/gingerit.py", line 39, in _process_data
for suggestion in reversed(data['Corrections']):
KeyError: 'Corrections'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "bsCLI.py", line 20, in
pdfParser(app.config['PDF_UPLOADS'] + '/pdf_file.pdf')
File "/content/book-summarizer/preprocess.py", line 96, in pdfParser
splitChapters(filename, mailid)
File "/content/book-summarizer/preprocess.py", line 75, in splitChapters
summaryGeneration(mailid)
File "/content/book-summarizer/model.py", line 120, in summaryGeneration
send_fail(mailid)
File "/content/book-summarizer/mail.py", line 17, in send_fail
session.login(sender_address, sender_pass) # login with mail_id and password
File "/usr/lib/python3.7/smtplib.py", line 730, in login
raise last_exception
File "/usr/lib/python3.7/smtplib.py", line 721, in login
initial_response_ok=initial_response_ok)
File "/usr/lib/python3.7/smtplib.py", line 642, in auth
raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials v64sm11061838pfc.117 - gsmtp')

importation error

ImportError:
T5Tokenizer requires the SentencePiece library but it was not found in your environment. Checkout the instructions on the
installation page of its repo: https://github.com/google/sentencepiece#installation and follow the ones
that match your environment.

I have checked on the readme I didn't see anything relating to token except when you were explaining the project.

Token indices sequence length is longer than the specified maximum sequence length for this model

Converting PDF to txt file.
Successfully converted PDF to txt.
Total Number of Lines: 13596
No chapters in book! Writing entire book!
Done writing!
pdf_fileChapterAll.txt
Summarising: pdf_fileChapterAll.txt
Token indices sequence length is longer than the specified maximum sequence length for this model (536 > 512). Running this sequence through the model will result in indexing errors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.