GithubHelp home page GithubHelp logo

n-best tagging results about crfsuite HOT 5 CLOSED

chokkan avatar chokkan commented on June 24, 2024
n-best tagging results

from crfsuite.

Comments (5)

kmike avatar kmike commented on June 24, 2024

Hey @usptact,

CRFsuite doesn't currently support n-best tagging.

It seems the relevant code is

floatval_t crf1dc_viterbi(crf1d_context_t* ctx, int *labels)

from crfsuite.

usptact avatar usptact commented on June 24, 2024

kmike,

Thank you a lot for a pointer! I read elsewhere that for Vitterbi based algorithms one needs to increase the beam size. I am not sure what it means.

from crfsuite.

kmike avatar kmike commented on June 24, 2024

Currently the function computes a single max_score, stores a single backward link at each j, and finds a single best label sequence using these backwads links.

If I'm not mistaken, for n-best parsing you need to keep top-n max_score values, n best backward links at each position j and use them to compute n best label sequences.

There are also more efficient algorithms for n-best decoding, see e.g. http://www.keerthis.com/P12-1064.pdf for an overview.

from crfsuite.

kmike avatar kmike commented on June 24, 2024

As a side not, Wapiti CRF toolkit supports n-best decoding.
Implementation is not optimal though (see Jekub/Wapiti#2).

from crfsuite.

usptact avatar usptact commented on June 24, 2024

Thank you very much, kmike! I am playing with Wapiti right now and trying to assess the top n-best results. Up to this moment I was always relying on the top-1 result which was not the best in all the cases. I am curios whether good tagging is in the n-best results list.

from crfsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.