GithubHelp home page GithubHelp logo

deadsg / spacy-lookups-data Goto Github PK

View Code? Open in Web Editor NEW

This project forked from explosion/spacy-lookups-data

0.0 0.0 0.0 136.34 MB

๐Ÿ“‚ Additional lookup tables and data resources for spaCy

Home Page: https://github.com/explosion/spaCy

License: MIT License

Shell 1.48% Python 98.52%

spacy-lookups-data's Introduction

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.

spacy-lookups-data's People

Contributors

ines avatar adrianeboyd avatar honnibal avatar petergilles avatar bdura avatar borijang avatar ckoppelman avatar gtoffoli avatar jvass avatar jsalbr avatar jimregan avatar nimbusaeta avatar mirfan899 avatar polm avatar robertsipek avatar c-armentano avatar jmyerston avatar kadarakos avatar

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.