The present invention discloses a statistics-based 
machine translation method and apparatus and an electronic device, a 
semantic similarity-degree calculation method and apparatus and an electronic device, and a word quantization method and apparatus and an electronic device. The statistics-based 
machine translation method comprises: according to a feature that affects a translation probability and that is of each candidate translation and a pre-generated translation probability prediction model generating a translation probability of a 
sentence to be translated into each candidate translation, wherein the feature that affects the translation probability at least comprises a 
semantic similarity-degree between the 
sentence to be translated and the candidate translation; and selecting a preset number of candidate translations whose translation probabilities rank top as a translation of the 
sentence to be translated. By adoption of the statistics-based 
machine translation method provided by the present application, the semantic level of the 
natural language can be reached deeply when the 
machine translation model is constructed, and the deviation of 
semantics between the translation and the 
source text is avoided, so as to achieve the effect of improving translation quality.