Skip to content

Allow spacy.en.download to take a file path #637

Closed

Description

@ExplodingCabbage

As noted at #208 (comment), it's possible to install spaCy models to a custom path via sputnik.install, but looking at the code for en/download.py it seems that there's no way to specify a custom path when installing via python -m spacy.en.download.

It would be nice to have this feature, especially since download.py offers niceties like checking whether the model is already installed that sputnik.install doesn't do.

A syntax like python -m spacy.en.download --download-path=/path/to/download/model/to seems like it'd be ideal.

Activity

  1. honnibal commented on Nov 18, 2016

    @honnibal
    Member

    Sounds great. Do you want to make the pull request?

  2. ExplodingCabbage commented on Nov 18, 2016

    @ExplodingCabbage
    ContributorAuthor

    Sure - I'll try to get round to it today, otherwise I'll put something together over the weekend.

  3. honnibal commented on Nov 18, 2016

    @honnibal
    Member

    Btw, I've been trying to improve options for file loading more generally. There's some stuff in spacy.utils that isn't in the docs yet but might be relevant. Specifically, you should be able to set the default data path.

  4. lock commented on May 9, 2018

    @lock

    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.

  5. locked as resolved and limited conversation to collaborators on May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions