Registry / ai-ml / spacy-lookups-data

spacy-lookups-data

JSON →
library1.0.5pypypiunverified

Additional lookup tables, lemmatization data, and other language resources for spaCy. Version 1.0.5 is the latest stable release. The package provides supplementary data that spaCy loads on demand; it is updated infrequently but follows spaCy's major releases.

pip install spacy-lookups-data
INSTALL
IMPORT
SIG · SPACY-LOOKUPS-DATA
S
spacy-lookups-data
ai-mlpythonv1.0.5
Install
3.2s avg
Import
Disk
118MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.5 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 116.6MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.2s · import 0.000s · 117MB
118MB installed
● package 118MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Lookups
from spacy_lookups_data import Lookups
from spacy.lookups import Lookups

Verify that lookups data is available in a spaCy model. The package itself is not imported directly; its data is used transparently by spaCy.

import spacy from spacy.lookups import Lookups # Load a small model that uses lookups nlp = spacy.load('en_core_web_sm') # Access lookups table (if available for the model) # The package provides data automatically; no explicit import needed. # Check if a table is present: lookups = nlp.vocab.lookups print(lookups.get_table('lemma_rules')[:2]) # example, may be empty
Debug
Known issues
breakingspaCy v3+ changed the way lookup tables are loaded. spacy-lookups-data 1.0.x is compatible with spaCy v3 only. Older versions (0.x) are for spaCy v2. Do not mix versions.
fix
Ensure spaCy version is >=3.0 and <4.0 when using spacy-lookups-data 1.x.
affects: >=1.0.0
gotchaThe package does not need to be imported in your code. Installing it is sufficient — spaCy will discover it automatically. Trying to import it directly (import spacy_lookups_data) will raise ModuleNotFoundError.
fix
Do not import spacy_lookups_data; just pip install it.
affects: all
deprecatedspacy-lookups-data is in maintenance mode. Future spaCy versions may reduce reliance on external lookup packages. Consider using spaCy's built-in data or bundled models instead.
fix
Check spaCy release notes for alternative data sources.
affects: >=1.0.0
Upgrade
Version history
1.0.5latest on PyPI · released Jul 28, 2023
Audit
Dependencies
spacyrequiredRun-time dependency, spacy-lookups-data is loaded via spacy's lookup tables mechanism.
Agent activity
14 hits · last 30 days
node
10
Amazon
1
Bingbot
1
OpenAI (training)
1
Resources
spacy-lookups-data — pip install spacy-lookups-data · libregistry