GitXplorerGitXplorer
e

spacy-lookups-data

public
99 stars
51 forks
1 issues

Commits

List of commits on branch master.
Verified
f8c87d5f0c7cad5527cbe39f62edaf2d5907748c

Update CI (#40)

aadrianeboyd committed 2 years ago
Verified
1c4a01b84ffa64d8e7851928fdda7b39a6822873

Update README (#39)

aadrianeboyd committed 2 years ago
Verified
5aa91c2b2b8a2e948c9f7712163892edaed90fec

Add rules for verbs like "espiar" and "actuar" (#38)

nnimbusaeta committed 2 years ago
Verified
77ce8d98dda96f76a4fdbd48b1f8c03cf3ed9577

Added Kerb => curb normalization (#37)

cckoppelman committed 3 years ago
Verified
992d3cecbd9d8b1559abaa430e371d1757f50aa3

rimane is 3rd person singular of rimanere (#36)

kkadarakos committed 3 years ago
Verified
2f98c24775218da5ac272957f376d5b580d85571

Add Korean orth variants (#35)

aadrianeboyd committed 3 years ago

README

The README file for this repository.

spaCy lookups data

This repository contains additional data files to be used with spaCy v2.2+. When it's installed in the same environment as spaCy, this package makes the resources for each language available as an entry point, which spaCy checks when setting up the Vocab and Lookups.

Feel free to submit pull requests to update the data. For issues related to the data, lookups and integration, please use the spaCy issue tracker.

tests Current Release Version pypi Version conda Version

FAQ

Why does this exist?

The main purpose of this package is to make the default spaCy installation smaller and not force every user to download large data files for all languages by default. Lookups data is now either provided via the pre-trained models (which serialize out their vocabulary and lookup tables) or by explicitly installing this package or spacy[lookups].

When should I install this?

You should install this package if you want to use lemmatization for languages that don't yet have a pretrained model available for download and don't rely on third-party libraries for lemmatization – for example for Serbian or Turkish (see data files).

If you are training new models with spaCy, you should probably install this, since it contains lemmatization and normalization data for 25+ languages that is no longer included as part of the main spaCy library. In particular, you should install it if you're creating a blank model and you want it to include lemmatization and normalization data. Once you've saved out the model (e.g. via nlp.to_disk), it will include the lookup tables as part of its Vocab.

Is this package only for lemmatization?

This package used to only be for lemmatization, but it has been extended to include normalization data for many languages. As of v0.3.1 it also includes optional probability and Brown cluster data that used to be distributed with provided models in spaCy v2.2 but is no longer included in spaCy v2.3. In the future it may include other lookup lists and tables as well, e.g. large tokenizer exception files.

Running tests

This package now also includes all data-specific tests. The test suite depends on spaCy.

pip install -r requirements.txt
python -m pytest spacy_lookups_data

If you've installed the package in your spaCy environment, you can also run the tests like this:

python -m pytest --pyargs spacy_lookups_data

Bug reports and other issues

Please use spaCy's issue tracker to report a bug, or open a new thread on the discussion board for any other issue.