GithubHelp home page GithubHelp logo

Comments (6)

Geethi2020 avatar Geethi2020 commented on July 21, 2024 1

That worked. Thank you so much.

from transformersum.

Usama3627 avatar Usama3627 commented on July 21, 2024

Experiencing the same issue when trying to import extractive from ExtractiveSummary
Initially, the ModuleNotFoundError: No module named 'extractive' error was experienced (as mentioned in issue #59 but it was resolved after changing the directory to src.

from transformersum.

Geethi2020 avatar Geethi2020 commented on July 21, 2024

Same issue for me as well, with import extractive from ExtractiveSummary. It used to work a couple of weeks ago. Anything changed recently ?

from transformersum.

HHousen avatar HHousen commented on July 21, 2024

This should now be resolved by 1395f37. Please let me know if this didn't work.

from transformersum.

Geethi2020 avatar Geethi2020 commented on July 21, 2024

Thank you for fixing "_LazyAutoMapping" issue.

But now it triggers a ValueError though (which seems to have originally resolved a while back)

summary         = extrSumm_model.predict(context, raw_scores=False, num_summary_sentences=6)

Error message is

ValueError: [E003] Not a valid pipeline component. Expected callable, but got 'sentencizer' (name: 'None').[E004] If you meant to add a built-in component, use `create_pipe`: `nlp.add_pipe(nlp.create_pipe('sentencizer'))`

Log is

/content/transformersum/src/extractive.py in predict(self, input_text, raw_scores, num_summary_sentences)
   1174         """
   1175         nlp = English()
-> 1176       nlp.add_pipe("sentencizer")
   1177         doc = nlp(input_text)

/usr/local/lib/python3.7/dist-packages/spacy/language.py in add_pipe(self, component, name, before, after, first, last)
    325             if isinstance(component, basestring_) and component in self.factories:
    326                 msg += Errors.E004.format(component=component)
--> 327             raise ValueError(msg)
    328         if name is None:
    329             name = util.get_component_name(component)

Tried making the change as mentioned in the error message; but no luck. Would you please check ?

from transformersum.

HHousen avatar HHousen commented on July 21, 2024

Looks like you're using an old version of Spacy (probably v2). Please try upgrading to v3 with pip install -U spacy. Some services (ex: Google Colab) come with v2 installed by default but this library is updated to work with v3.

from transformersum.

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.