Asking help regarding usage

#1
by pranav-dabre - opened

Hello,
I wanted to use this BERT model in spaCy. Can you please guide regarding how do I do that. I figured out I need to use transformers, How do I do that?

Hi Pranav,

It might not be straightforward to use this in spacy, see the discussion here: https://github.com/explosion/spaCy/discussions/10768
However, for ease of usage, this model is also wrapped in the mahaNLP library and the usage is as follows:

!pip install mahaNLP

from mahaNLP.tagger import EntityRecognizer
ner_model = EntityRecognizer()
text = 'भारताचे दुसरे राष्ट्रपती डॉ. सर्वपल्ली राधाकृष्णन यांचा जन्मदिवस म्हणजेच, ५ सप्टेंबर हा दिवस शिक्षक दिन म्हणून साजरा करण्यात येतो.'
tok_labels = ner_model.get_token_labels(text)

More details are documented here: https://github.com/l3cube-pune/MarathiNLP

l3cube-pune changed discussion status to closed
l3cube-pune changed discussion status to open

Sign up or log in to comment