taissirboukrouba / Structured-Information-Retrieval-with-LLMs

Academic Sequence Labelling Between DistillBERT & Encoder-only Transformer
1 stars 0 forks source link

Custom NER not returning custom label ! #4

Closed taissirboukrouba closed 2 months ago

taissirboukrouba commented 2 months ago

Custom NER should be returning MATH_FUNC for mathematical functions but it's returning GPE instead

taissirboukrouba commented 2 months ago

Issue Resolved !

The custom NER had to be put before the original SpaCy NER in the pipeline so it doesn't overlap. code : nlp.add_pipe("parsing_math_entities",before="ner")