Comments (3)
I've also run into this problem. My machine is running Linux Mint 16, 64-bit. I feel like this should be a priority to fix since it prevents analyzing large datasets (e.g. data from the internet) that (presumably) contain weird formatting that result in empty string tokens. In my case, it was due to a sample being exactly the empty string so it was exactly like doing this:
from spacy.en import English
nlp = English()
nlp(u"")
from spacy.
Thanks for the report, and sorry it took me a while to get to it. The fix should be published in master and on pip.
I'd intended this to be the behaviour for empty strings, but left a temporary assertion in the parser.
from spacy.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
from spacy.
Related Issues (20)
- CUDA Runtime Error during Spacy Transformers NER Model Training HOT 2
- Spacy-LLM code sample produces no output HOT 14
- Working with the new `._.trf_data` object (3.7+) HOT 7
- spacy.load error decorative function HOT 1
- The en_core_web_trf model results in zero output HOT 2
- No such command 'fill-curated-transformer' HOT 4
- MemoryError: Unable to allocate 29.7 GiB for an array with shape (86399, 4, 4, 2880, 2) and data type float32 HOT 2
- Issue when calling spacy info HOT 3
- Spcay recoginize similar words into different entities
- Publish `requirements.txt` or `environment.yml` for installing latest versions of spacy and other dependencies HOT 1
- Downloading model error: ModuleNotFoundError: No module named 'spacy.symbols' HOT 1
- README.md Link Suggestions HOT 1
- English models' Accuracy Evaluation values HOT 1
- Spacy high memory consumption issue HOT 1
- Spacy dependency requirements are not met for pydantic versions ^2 HOT 1
- bus error upon existing the program after using spacy on mac M1 HOT 7
- DocBin.to_bytes fails with a "ValueError: bytes object is too large" Spacy v 3.7.2
- max_length of nlp pipline for e.g. japanese HOT 4
- Doc Report HOT 2
- Text tokenizer is classifying the letter "O" as punctuation. 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 spacy.