crfsuite icon indicating copy to clipboard operation
crfsuite copied to clipboard

Question about CRF model

Open TompsonL opened this issue 8 years ago • 5 comments

Hi ,

Can I use the crfsuite to implement the model in the attached image? Thanks a lot.

crf

TompsonL avatar Jul 30 '17 13:07 TompsonL

If you can extract a "sequence" from your image, and expect sequence labels + one global label, I suggest you to look at TriCRF instead. https://github.com/minwoo/TriCRF

The implemented model by TriCRF is:

       y
  /    |   \
h  -   h  -  h
|      |     |
x      x     x

The sequence labels as well as the global image label must be discrete.

usptact avatar Aug 01 '17 03:08 usptact

Thanks for your response. Looks the h nodes in TriCRF are in a chain, Can I use a full connected ?

TompsonL avatar Aug 02 '17 02:08 TompsonL

@TompsonL In principle yes, in practice inference in such graphs would be ahem difficult. Even this triangular chain CRF is fairly expensive (the way it is implemented). Unfortunately I am not familiar well enough with graphical models to suggest or make bigger claims.

usptact avatar Aug 02 '17 05:08 usptact

@TompsonL I would try out a neural architecture - sequence model as for NER for "h" and classification on top of that for "y".

usptact avatar Aug 02 '17 05:08 usptact

Thanks for your effort.

On Wed, Aug 2, 2017 at 1:08 PM, Vladislavs Dovgalecs < [email protected]> wrote:

@TompsonL https://github.com/tompsonl I would try out a neural architecture - sequence model as for NER for "h" and classification on top of that for "y".

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/chokkan/crfsuite/issues/87#issuecomment-319568808, or mute the thread https://github.com/notifications/unsubscribe-auth/AdJ8GJ_yLMltBGAELEObwCAzThRRNDKOks5sUARSgaJpZM4Ono8S .

TompsonL avatar Aug 04 '17 02:08 TompsonL