Giter Club home page Giter Club logo

Comments (6)

dmmiller612 avatar dmmiller612 commented on June 10, 2024 2

Hello Shuntera,

I would verify that the module is correct. We frequently get issues around wrong imports of the summarizer (there is another package that also has a package summarize).

from bert-extractive-summarizer.

J-E-J-S avatar J-E-J-S commented on June 10, 2024 1

Seems likely that @shuntera might have named the file summarizer.py which will cause problem with imports. See https://stackoverflow.com/questions/64807163/importerror-cannot-import-name-from-partially-initialized-module-m. Try rename the file to somthing different if this is the case.

from bert-extractive-summarizer.

usamahameedx avatar usamahameedx commented on June 10, 2024

I am also getting same Error

ImportError: cannot import name 'BartModel' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/init.py)

from bert-extractive-summarizer.

bnaismith avatar bnaismith commented on June 10, 2024

I am also getting same Error

ImportError: cannot import name 'BartModel' from 'transformers' (/usr/local/lib/python3.7/dist-packages/transformers/init.py)

I am also getting the same error message, but only after updating my Mac OS to Monterey, so I'm guessing it's related to that. Trying different things, but no luck yet.

from bert-extractive-summarizer.

dmmiller612 avatar dmmiller612 commented on June 10, 2024

Note the two errors above are different than the original message. The errors above are related to the transformers package. What version of transformers are you running?

from bert-extractive-summarizer.

bnaismith avatar bnaismith commented on June 10, 2024

Apologies, you're right - I was only responding to the comment, not the original post. I am using the updated transformers, version 4.15

from bert-extractive-summarizer.

Related Issues (20)

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.