Skip to content

Need makedirs call for .vector_cache when path to custom embeddings is passed to Vectors init #291

Open
@zhzhang

Description

@zhzhang

os.makedirs(cache)

The makedirs call here needs to be moved to just before the cache is written to. Otherwise, if you specify a custom pre-trained embeddings file, it will error with

No such file or directory: u'.vector_cache/wiki_en.emb.pt'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions