# spaCy init-model with word vectors - ValueError

**URL:** https://support.prodi.gy/t/spacy-init-model-with-word-vectors-valueerror/737
**Category:** Uncategorized
**Tags:** solved, usage, spacy
**Created:** [August 9, 2018, 4:21pm UTC](https://support.prodi.gy/t/spacy-init-model-with-word-vectors-valueerror/737 "2018-08-09T16:21:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![blume](https://avatars.discourse-cdn.com/v4/letter/b/f6c823/32.png) [@blume](https://support.prodi.gy/u/blume)
#### Post date: [August 9, 2018, 4:21pm UTC](https://support.prodi.gy/t/spacy-init-model-with-word-vectors-valueerror/737/1 "2018-08-09T16:21:35Z")

</div>

I created word vectors with fastText and tried to convert them into a spaCy model with the command  
`python -m spacy init-model de C:\my\output\dir --vectors-loc de-vec.vec`

But I get a `ValueError: could not broadcast input array from shape (99) into shape (100)`:

![grafik](https://us1.discourse-cdn.com/flex020/uploads/prodigy/original/1X/d391d74bb4e6f6ecb0631fa7210d7e14a16c620b.png)

What shall I do?

EDIT: I solved this problem, it was in my fastText vectors. There was one vector for a single space.

---

<div class="post-metadata">

### Author: ![ines](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/ines/32/3_2.png) [@ines](https://support.prodi.gy/u/ines)
#### Post date: [August 11, 2018, 11:04am UTC](https://support.prodi.gy/t/spacy-init-model-with-word-vectors-valueerror/737/2 "2018-08-11T11:04:33Z")

</div>

> [@blume](#):
>
> EDIT: I solved this problem, it was in my fastText vectors. There was one vector for a single space.

Thanks for updating with your solution! I remember that something similar came up a while ago on the spaCy issue tracker. Usually, a shape mismatch of `99` vs `100` is a pretty good indicator that there's something wrong in the data or that the header isn't parsed correctly (and read in like vector or something like that). Encoding issues are also a common problem, e.g. if the encoding isn't set correctly on the vectors file.
