Learning on Heterogeneous Tag Sets using Tag Hierarchy
NiteshMethani opened this issue · 1 comments
NiteshMethani commented
Hi,
Could you suggest edits on how to extend this repository to do NER on disjoint or heterogeneous tag sets as described in this paper: https://aclanthology.org/P19-1014/
The basic idea is to create a tag hierarchy and train the NER architecture where CRF is replaced with Marginal CRF (https://aclanthology.org/D18-1306/).
Any ideas around its implementation would be highly appreciated.
Thanks!
allanj commented
I think they are pretty straightforward.
-
You can create different linear layers for different tag set.
-
For the marginal CRF, it is also not complicated, but you just need to use the forward unlabel function
-
Probably use a mask to denote what are the valid tags, and what are the invalid tags