Encoding start of a sentence

22 views
Skip to first unread message

Kunal Singhal

unread,
Dec 30, 2014, 9:05:34 AM12/30/14
to berkeleyl...@googlegroups.com
Hi, 

How do I encode the start of a sentence symbol (<s>)? For instane I need to calculate probabilities like P("<s>" , "the"). I am trying to find out how <s> is to be encoded while giving input. 


Thanks, 
Kunal

Adam Pauls

unread,
Dec 30, 2014, 2:03:55 PM12/30/14
to berkeleyl...@googlegroups.com
lm.getWordIndexer().getStartSymbol().
Reply all
Reply to author
Forward
0 new messages