Given the pinyin input A, the task is to find the best output hanzi sequence W*: In traditional conversion systems which do not consider spelling errors, P(A|W) is usually set to 1 if the word is found in a dictionary of wordpronunciation pairs, which also defines GEN(A).
the ranking of the candidates relies exclusively on the language model probability P(W).