javanlpdkpro-coreflair

How can i use flair NER tagger with DKpro-core


There are already many taggers such as Stanford,opennlp, etc in DKpro but I would like to know how can I implement flair NER tagger in DKpro-core?


Solution

  • Existing DKPro core integrated taggers such as Stanford, OpenNLP, etc. are either Java-based or Java compatible. However, flair NER tagger models are developed in python. Therefore to connect them with DKPro core requires a middleware tool.

    DKPro Cassis, a UIMA CAS processing library is written in Python (also available as pypi project) and can directly use flair components such as flair NER tagger.

    DKPro Cassis can import the Cas objects generated by DKPro core components and annotate the SofA with the tags provided by flair ner. After annotation, the Cas object can be exported back to the DKPro core.

    PoC is in progress for the above analysis and will be updated here soon.