Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about CRF model #87

Open
TompsonL opened this issue Jul 30, 2017 · 5 comments
Open

Question about CRF model #87

TompsonL opened this issue Jul 30, 2017 · 5 comments

Comments

@TompsonL
Copy link

Hi ,

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


crf

@usptact
Copy link

usptact commented Aug 1, 2017

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.

@TompsonL
Copy link
Author

TompsonL commented Aug 2, 2017

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

@usptact
Copy link

usptact commented Aug 2, 2017

@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
Copy link

usptact commented Aug 2, 2017

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

@TompsonL
Copy link
Author

TompsonL commented Aug 4, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants