dkpro-core icon indicating copy to clipboard operation
dkpro-core copied to clipboard

I would like to know if there is anyway to include custom taggers such as flair or allennlp?

Open pidugusundeep opened this issue 5 years ago • 1 comments

I would like to use the NER tagger from allennlp or flair. Please let me know how to implement the same in DKpro.

pidugusundeep avatar May 25 '20 23:05 pidugusundeep

You'd have to implement an UIMA wrapper that maps the data from the CAS to the data required for the tool in question, invokes the tool, and maps the data back to the CAS afterwards.

Examples of how to build a Java-based UIMA component communicating with Flair can be found in e.g. https://github.com/JULIELab/jcore-base .

reckart avatar Jan 17 '21 13:01 reckart