kmkurn / pytorch-crf

(Linear-chain) Conditional random field in PyTorch.
https://pytorch-crf.readthedocs.io
MIT License
935 stars 151 forks source link

Multi-label results? #34

Closed cinjon closed 5 years ago

cinjon commented 5 years ago

Hi, I have a use case where I need to compute multi-label results, i.e. each token could be a part of multiple sequences. Does this library support that?

kmkurn commented 5 years ago

Hi, I am afraid not. Sorry. If those sequences are independent, you may be able to use multiple CRF layers, one for each sequence, I think.

cinjon commented 5 years ago

Aye ok.