-
公开(公告)号:US11244108B2
公开(公告)日:2022-02-08
申请号:US16452439
申请日:2019-06-25
Applicant: HUAWEI TECHNOLOGIES CO., LTD.
Inventor: Zhaopeng Tu , Longyue Wang , Jinhua Du
IPC: G06F40/20 , G06F40/237 , G06K9/62 , G06F40/58 , G06F40/30 , G06F40/40 , G06F40/51 , G06F40/295
Abstract: 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.