dkpro / dkpro-core

Collection of software components for natural language processing (NLP) based on the Apache UIMA framework.
https://dkpro.github.io/dkpro-core
Other
196 stars 67 forks source link

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

Closed pidugusundeep closed 1 year ago

pidugusundeep commented 4 years ago

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

reckart commented 3 years ago

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 .