Here's the problem:

Word POS

AB'C' NNP
DEF' CC
GH'I' NNP
JKL ' CD
MN'O' CG

->In this input the first column consists of words and the second column depicts the Parts Of Speech(POS) of each word. ' used as the syllabic boundary. So a word might be just one syllable or more than one syllables. [Our language does not have word boundaries just like in English...