Comments (3)
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 tosimple_preprocess()
, it shouldn't be necessary to applystr()
to it. On the other hand, if it's not already a string, usingstr()
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 intosimple_preprocess()
. (Does that error really come from exactly the code shown above, or other code?) TheSystemError
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.
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.
After restarting and running again, I got the following error.
SystemError: error return without exception set
from gensim.
Related Issues (20)
- is the summarization module removed in the newest version of gensim, i find it nowhere in the documentation? HOT 1
- Vocabulary size is much smaller than requested HOT 2
- Docs still reference fasttext.build_vocab sentences parameter HOT 1
- EnsembleLDA with pyLDAvis visualisation
- library stubs are missing HOT 1
- Installation Error: Failed building wheel for gensim HOT 4
- Support for python3.12 HOT 2
- It fails to convert non-ascii characters in Turkish wikipedia dump. HOT 1
- Doc2Vec on Wikipedia articles HOT 1
- SyntaxError: future feature annotations is not defined HOT 4
- How can we fix this issue when i use python 3.6? HOT 2
- Please do not hardcode `libc++` HOT 4
- Where are pre-trained doc2vec model w/ recent version of Gensim
- bug about remove_markup HOT 2
- Where are pre-trained doc2vec model w/ recent version of Gensim? HOT 1
- Out-of-Period Terms in LdaSeqModel
- Gensim broken with SciPy 1.13.0 HOT 12
- The triu function is now removed from scipy module HOT 1
- Wrong parameter information in `gensim.models.keyedvectors.KeyedVectors.save()` docstring.
- Bug on Import gensim HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gensim.