A method, system, and computer readable storage medium including a computer readable program are provided. The method includes storing a set of sentences in a memory device. The method further includes receiving an input translated phrase and searching the set of sentences for a subset of sentences closest to the input translated phrase based on a set of respective distances to the sentences in the set with respect to the input translated phrase. The method also includes calculating and outputting a language model score for the subset of sentences based on a function of a subset of respective distances pertaining to the subset of sentences.
展开▼