10. A method of performing speech recognition, the method comprising: obtaining speech data to perform speech recognition; detecting at least one segment of the speech data by performing speech recognition based on a grammar model comprising appearance probability information of the at least one segment and its hint; and recombining the detected at least one segment into a word based on the hint of the detected at least one segment, wherein the grammar model includes the at least one segment split from the word in a prescribed number, wherein the prescribed number is determined based on a size of the grammar model.
10. A method of performing speech recognition, the method comprising: obtaining speech data to perform speech recognition; detecting at least one segment of the speech data by performing speech recognition based on a grammar model comprising appearance probability information of the at least one segment and its hint; and recombining the detected at least one segment into a word based on the hint of the detected at least one segment, wherein the grammar model includes the at least one segment split from the word in a prescribed number, wherein the prescribed number is determined based on a size of the grammar model. 12. The method of claim 10 , wherein the grammar model comprises a class-based grammar model, and the method comprises: performing speech recognition based on a grammar model of a class to which an entry token belongs when the word or the detected segment comprises the entry token; and performing speech recognition based on the class-based grammar model when the word or the segment comprises an exit token.