1. A method for building a language model, adapted to an electronic apparatus, the method comprising: receiving a plurality of candidate sentences; and obtaining a plurality of phonetic spellings matching each of words in each of the candidate sentences and a plurality of word probabilities according to a text corpus, so as to obtain a candidate sentence table corresponding to the candidate sentences.