Skip to content

Different ways of loading data model #684

@pokey

Description

@pokey

I get different word vectors depending how I load the data model. For example:

import spacy.en
import spacy
import numpy

nlp1 = spacy.en.English()
nlp2 = spacy.load('en')

word = 'shop'

# The following assert fails:
assert(numpy.allclose(nlp1.vocab[word].vector, nlp2.vocab[word].vector))

My Environment

  • OS X 10.11.6
  • Python 3.5.2
  • spacy 1.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs and behaviour differing from documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions