Giter VIP home page Giter VIP logo

Comments (3)

gojomo avatar gojomo commented on May 29, 2024 1

This issue tracker is best-used for reporting bugs or feature-requests, rather than working through usage issues. Either the Gensim project's discussion forum, https://groups.google.com/g/gensim , or StackOverflow are better places to ask for help working through errors in your usage. (Only if you're highly confident you've hit a bug in the library's code, & can describe a reliable complete way to trigger it, should such an error be reported as an issue here.)

That said:

  • If sentence is already a proper text string proper to send to simple_preprocess(), it shouldn't be necessary to apply str() to it. On the other hand, if it's not already a string, using str() may add unwanted extra Python-representation characters. So it's only needed (to force the right type) in exactly the cases where it likely does unintended/unwanted things.
  • The TypeError implies you're passing something other than a plain string into simple_preprocess(). (Does that error really come from exactly the code shown above, or other code?) The SystemError has too little context to understand if it's related to your original question at all.

If you're still facing a problem, ask again in one of the more-appropriate places mentioned above, and be sure to also include:

  • the exact code that triggers the error, including showing what sentences variable contains - ideally, actual data (synthetic if necessary) sufficient to trigger the same error you're getting, every time you try
  • the entire error messages you see, including any 'traceback' info identifying individual involved lines-of-code, & filenames, & order-of-calls – this best helps answerers to be sure of how the problem-line/error is being reached

Closing here but if I see an expanded question those other places will be happy to provide more pointers.

from gensim.

harish2sista avatar harish2sista commented on May 29, 2024 1

Hey, Thanks for the help. The system error does not have anything to do with the gensim library. I think some of my Ubuntu OS C-library files got corrupted during the software update. The reinstallation of the OS fixed the issue for me.

from gensim.

harish2sista avatar harish2sista commented on May 29, 2024

After restarting and running again, I got the following error.

SystemError: error return without exception set

from gensim.

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.