# Training a NER model with en\_trf\_robertabase\_lg

**URL:** <https://support.prodi.gy/t/training-a-ner-model-with-en-trf-robertabase-lg/2433>\
**Category:** Uncategorized\
**Tags:** usage, spacy, solved, transformers\
**Created:** [January 16, 2020, 8:46pm UTC](https://support.prodi.gy/t/training-a-ner-model-with-en-trf-robertabase-lg/2433 "2020-01-16T20:46:26Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [January 19, 2020, 12:37pm UTC](https://support.prodi.gy/t/training-a-ner-model-with-en-trf-robertabase-lg/2433/4 "2020-01-19T12:37:37Z")

</div>

> [@edu](#):
>
> Is training a simple textcat model with Transformers also not supported? Or did I install something incorrectly?

See my comment on [this thread](https://support.prodi.gy/t/error-using-xlnet-for-text-classification-no-component-trf-tok2vec-found-in-pipeline/2416/2) for more details on training a text classifier with transformer weights. TL;DR: You can do it, but you should probably use a separate training script, since the transformer models need pretty specific settings.

> [@Error using XLNet for text classification: No component 'trf\_tok2vec' found in pipeline](https://support.prodi.gy/t/error-using-xlnet-for-text-classification-no-component-trf-tok2vec-found-in-pipeline/2416/2):
>
> This is currently expected – the transformers classifier is a different text classifier implementation with its own component and component dependencies (token-vector-encoding, tokenization alignment etc.). The underlying problem here is that the train recipe disables all components except for the one you train (which makes sense, because that's the only one you want to update). But that doesn't work for this component, since it has other component dependencies. You can probably work around it …

---

_[View the full topic](https://support.prodi.gy/t/training-a-ner-model-with-en-trf-robertabase-lg/2433)._
