python - Use tag as attibute in crfsuite -


i'm new in crf , want use crfsuite tag words. read crfsuite's manual , understand format of training data, if want add features have tags of "near words", what's training data file like?

i have google around found nothing problem.

the short answer supply attributes of word coffee (like w[-1]=drank indicate previous word) , label (noun), , crfsuite generates actual indicator functions compose crf model (including feature indicates label of previous word verb). knows because uses "1st-order markov crf dyad features," described on manual page linked to.

one distinction that's important make (and documentation more precise about) difference between "features" , "attributes" features links in model represent either (attribute, label) or (label, label) pairs.

so in example, w[-1]=drank attribute supply. combination of w[-1]=drank, noun state feature , transition between labels verb --> noun transition feature, both of generated crfsuite.

i recommend tutorial, discusses in more detail.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -