question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Conditional Random Field (CRF) Sequence Decoder

See original GitHub issue

The current example for Name Entity Extraction is given as the following model definition:

input_features:
    -
        name: utterance
        type: text
        level: word
        encoder: rnn
        cell_type: lstm
        reduce_output: null
        preprocessing:
          word_format: space

output_features:
    -
        name: tag
        type: sequence
        decoder: tagger

This works ok, but if Ludwig had a CRF-Decoding layer, one could build state-of-the-art Bi-LSTM+CRF models (like https://arxiv.org/pdf/1508.01991.pdf) in a single simple Ludwig model definition. Any chance CRF decoding is coming to Ludwig any time soon?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jenishahcommented, Feb 6, 2020

Working on it

1reaction
w4nderlustcommented, Feb 1, 2020

Add a class CRFTagger in sequence_decoders ?

Yes that would be great. Consider that we are planning to move to TF2 soon, so at the moment you can use the contrib package, but make sure that you’ll be able to port to the addons package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exploring Conditional Random Fields for NLP Applications
In this blog post, ML Engineer Arnaud Stiegler explores conditional random fields, a widely-used modeling technique for many NLP tasks.
Read more >
Conditional Random Fields · TextAnalysis
This algorithm decodes for the label sequence with lowest loss value in polynomial time. Currently the Viterbi Decode only support cpu arrays. When...
Read more >
Conditional random field - Wikipedia
Conditional random fields (CRFs) are a class of statistical modeling methods often applied in pattern recognition and machine learning and used for ...
Read more >
CRF: Conditional Random Fields
Details. Exact decoding for chain-structured graphs with the Viterbi algorithm. Value. This function will return the most likely configuration, ...
Read more >
Implementing a linear-chain Conditional Random Field (CRF ...
Disclaimer: CRFs are a generalization of any undirected graph structure, such as sequences, trees, or graphs. In this post, I'll focus on sequential...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found