NER with electra
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
2021-03-09T10:37:16Z
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 thepipelineabstraction:Summary of the tasks — transformers 4.3.0 documentationYou can specify the model name toelectra-large-discriminator-finetuned-conll03-englishwhich should download the model from the hub and load it in the pipeline for tagging.
2021-03-09T10:58:51Z
Thanks a lot@lewtun. Got the stuff.