kmkurn / pytorch-crf

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

START TAG and STOP TAG? #23

Closed A-Rain closed 5 years ago

A-Rain commented 5 years ago

Hello, your job on pytorch-crf impressed me a lot. While I have some questions on whether should my tag including START TAG and STOP TAG? I am confused about that

kmkurn commented 5 years ago

Hi, thank you for your kind words. Yes, in general you want to include all the possible tags in the input. This may include the start and stop tag. But ultimately it depends on your use case.