Epic structured SVM/Perceptron

27 views
Skip to first unread message

Omid

unread,
Aug 27, 2014, 12:50:00 PM8/27/14
to scalanlp...@googlegroups.com
Hi,

Can you give illustrate example an example of using Epic structured SVM or Perceptron? 


Thanks,

David Hall

unread,
Aug 28, 2014, 2:38:58 AM8/28/14
to scalanlp...@googlegroups.com
I never finished Structured SVM, so that's out.

StructuredPerceptron (I'm not 100% sure I ever debugged it): 

1) Make a Model (e.g. a CRFModel by making a TaggedSequenceModelFactory)
2) Wrap the model in a OneBestModelAdaptor
3) new StructuredPerceptron(oneBestModel).train(data)

-- David

Omid

unread,
Aug 28, 2014, 2:19:54 PM8/28/14
to scalanlp...@googlegroups.com, dl...@cs.berkeley.edu
Thanks, is there any reason that you didn't keep the generality in TaggedSequenceModelFactory? because instead of type W, you use String ... So words should be alwayse string in makeModel(data).

David Hall

unread,
Aug 28, 2014, 6:04:07 PM8/28/14
to scalanlp...@googlegroups.com
Um, laziness, mostly.  You can make your own CRFModel however you want. The TaggedSequenceModelFactory is a convenience class that is currently inconveniently specialized to Strings...

-- David
Reply all
Reply to author
Forward
0 new messages