# NER with electra

**URL:** <https://discuss.huggingface.co/t/ner-with-electra/4262>\
**Category:** Beginners\
**Created:** [March 9, 2021, 10:23am UTC](https://discuss.huggingface.co/t/ner-with-electra/4262 "2021-03-09T10:23:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swaraj](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@swaraj](https://discuss.huggingface.co/u/swaraj)\
**Post date:** [March 9, 2021, 10:23am UTC](https://discuss.huggingface.co/t/ner-with-electra/4262/1 "2021-03-09T10:23:08Z")

</div>

Hello Everyone,  
I am new to hugging face models. I would like to use electra (electra-large-discriminator-finetuned-conll03-english) for entity recognition. I was unable to find the code to do it. Pointing me in the right direction would be a great help.

Thanks

---

<div class="post-metadata">

**Author:** ![lewtun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lewtun/32/30995_2.png) [@lewtun](https://discuss.huggingface.co/u/lewtun)\
**Post date:** [March 9, 2021, 10:37am UTC](https://discuss.huggingface.co/t/ner-with-electra/4262/2 "2021-03-09T10:37:16Z")

</div>

Hello @swaraj, if I understand correctly you’d like to use Electra for inference right? If yes, then the simplest thing would be to use the `pipeline` abstraction: [Summary of the tasks — transformers 4.3.0 documentation](https://huggingface.co/transformers/task_summary.html#named-entity-recognition)

You can specify the model name to `electra-large-discriminator-finetuned-conll03-english` which should download the model from the hub and load it in the pipeline for tagging.

---

<div class="post-metadata">

**Author:** ![swaraj](https://avatars.discourse-cdn.com/v4/letter/s/977dab/32.png) [@swaraj](https://discuss.huggingface.co/u/swaraj)\
**Post date:** [March 9, 2021, 10:58am UTC](https://discuss.huggingface.co/t/ner-with-electra/4262/3 "2021-03-09T10:58:51Z")

</div>

Thanks a lot @lewtun. Got the stuff. 😇
