# How to change the parameters of model

**URL:** <https://support.prodi.gy/t/how-to-change-the-parameters-of-model/677>\
**Category:** Uncategorized\
**Tags:** usage, spacy\
**Created:** [July 6, 2018, 8:08pm UTC](https://support.prodi.gy/t/how-to-change-the-parameters-of-model/677 "2018-07-06T20:08:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yusun](https://avatars.discourse-cdn.com/v4/letter/y/7993a0/32.png) [@yusun](https://support.prodi.gy/u/yusun)\
**Post date:** [July 6, 2018, 8:08pm UTC](https://support.prodi.gy/t/how-to-change-the-parameters-of-model/677/1 "2018-07-06T20:08:33Z")

</div>

Hi all,

When I start with a blank spacy model, create and add `textcat` to pipeline , then use `nlp.begin_training()` , a default Textcategorizer model with input dimension of 300 would be generated. But can I modify the parameters ? For example, if I load pre-trained embeddings of 100 dimension, where can I modify the input size of model from 300(default) to 100?

It seems that I could use `use_params`, but I could not figure out the format of arguments of this function.

Could anyone help me with this problem? Thank you!

---

<div class="post-metadata">

**Author:** ![honnibal](https://sea2.discourse-cdn.com/flex020/user_avatar/support.prodi.gy/honnibal/32/35_2.png) [@honnibal](https://support.prodi.gy/u/honnibal)\
**Post date:** [July 9, 2018, 10:06pm UTC](https://support.prodi.gy/t/how-to-change-the-parameters-of-model/677/2 "2018-07-09T22:06:15Z")

</div>

Apologies that this isn’t well documented. I had to look up the code myself to figure it out, but the following should work:

```python

from spacy.pipeline import TextCategorizer

textcat = TextCategorizer(nlp.vocab, width=64, pretrained_dims=100)

```
