Patent attributes
Embodiments of the present invention provide a translation method and apparatus, and relate to the field of machine translation. The method includes: obtaining a to-be-translated sentence, where the to-be-translated sentence is a sentence expressed in a first language; determining a first named entity set in the to-be-translated sentence, and an entity type of each first named entity in the first named entity set; determining, based on the first named entity set and the entity type of each first named entity, a second named entity set expressed in a second language; determining a source semantic template of the to-be-translated sentence, and obtaining a target semantic template corresponding to the source semantic template from a semantic template correspondence; and determining a target translation sentence based on the second named entity set and the target semantic template.