主权项 |
1. An apparatus comprising:
one or more processors; one or more memories communicatively coupled to the one or more processors; and a language translation service executing on the apparatus and configured to:
receive a request to translate an electronic document, wherein the request to translate the electronic document specifies that the electronic document is to be translated from a first language to a second language that is different than the first language, and wherein the request to translate the electronic document further specifies a particular template from a plurality of templates to be used to translate the electronic document from the first language to the second language, wherein each template from the plurality of templates corresponds to a different context and at least two different templates, from the plurality of templates, have, for one or more keywords in a first language, different corresponding keywords in a second language, and wherein the particular template corresponds to a particular context and includes at least a first plurality of keywords in the first language and a corresponding second plurality of keywords in the second language, andgenerate a translated electronic document by processing the electronic document using the first plurality of keywords in the first language and the corresponding second plurality of keywords in the second language included in the particular template. |