I am trying to train HuggingFace Transformers NER on custom dataset with custom entities. Is it possible to define custom entities in HuggingFace?
For examples, simpletransformers NERModel offers to define custom labels while training.
`custom_labels = ["O", "B-SPELL", "I-SPELL", "B-PER", "I-PER", "B-ORG", "I-ORG", "B-PLACE", "I-PLACE"]
model = NERModel( "bert", "bert-cased-base", labels=custom_labels )`
Do we have something similar in HuggingFace Transformers? Or I have to look for alternatives like Spacy or SparkNLP? I really prefer HuggingFace Transformers way due to possibility to easily switch between different models.