Document translation method and apparatus, storage medium, and electronic device
The document translation method and apparatus address the inefficiencies and quality issues in traditional MTPE by providing translation suggestions and allowing user confirmation, thereby improving translation efficiency and quality.
Patent Information
- Application Number
- JP2022545064
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-23
- Filing Date
- 2021-06-09
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2041-06-09
AI Technical Summary
Traditional machine translation post-editing (MTPE) technologies face challenges in compatibility with manual proofreading, resulting in inferior translation quality, and are limited by low efficiency and slow speed, especially in high-accuracy translation scenarios.
A document translation method and apparatus that displays an original text area, a translation area, and an editing area, providing translation suggestions from a reference translation based on user input, allowing users to confirm suggestions as translation results, or input different translations, thereby improving efficiency and quality.
The method reduces user input time by allowing direct confirmation of translation suggestions, enhances translation efficiency by combining manual accuracy with machine efficiency, and improves translation quality by leveraging both human judgment and machine translation capabilities.
Smart Images

Figure 0007683984000001 
Figure 0007683984000002 
Figure 0007683984000003
Abstract
Description
[Technical field]
[0001] This application claims priority to a Chinese patent application filed with the State Intellectual Property Office of the People's Republic of China on June 23, 2020, bearing application number 202010584747.1, and entitled "Document translation method and apparatus, storage medium, and electronic device," the entire contents of which are incorporated herein by reference.
[0002] Technical Field The present disclosure relates to the field of machine translation, and in particular to a document translation method and apparatus, a storage medium, and an electronic device. [Background technology]
[0003] With the current development of machine translation, simple translation tasks can already be performed in the mode of machine translation and manual proofreading, that is, in the mode of MTPE (Machine Translation Post-Editing). However, in the traditional MTPE technology, machine translation is not very compatible with manual proofreading, so the quality of document translation is still inferior to manual translation, and these problems severely limit the development of MTPE. In translation scenarios with high requirements for the accuracy of the translation results, documents are generally translated in the manner of manual translation, but the problems of low efficiency and slow speed of manual translation have not yet been solved. Summary of the Invention [Problem to be solved by the invention]
[0004] This "Summary" section is provided to introduce in a general form concepts that are described in more detail in the "Description of the Invention" section below. This "Summary" section is not intended to identify key features or required features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution. [Means for solving the problem]
[0005] According to a first aspect, the present disclosure provides a document translation method, comprising: displaying an original text display area, a translation area, and an editing area, in which the original text display area displays text content in a document to be translated, and the translation area displays a reference translation corresponding to the text content; providing translation suggestions from the reference translation in accordance with user input within the editing area; When detecting a user's operation to confirm the translation suggestion, displaying the translation suggestion in the editing area as a translation result, or If a user's operation to confirm the proposed translation is not detected and a translation input by the user that is different from the proposed translation is accepted, the translation input by the user is displayed in the editing area as the translation result.
[0006] According to a second aspect, the present disclosure provides a document translation apparatus, an exhibition module for displaying an original text display area, a translation text area, and an editing area, the original text display area displaying a text content of a document to be translated, and the translation text area displaying a reference translation corresponding to the text content; a suggestion module for providing translation suggestions from the reference translation according to user input within the editing area; The suggestion module further detects a user's operation to confirm the suggested translation and displays the suggested translation in the editing area as the translation result; or, if the suggestion module does not detect a user's operation to confirm the suggested translation and accepts a translation input by the user that is different from the suggested translation, displays the translation input by the user in the editing area as the translation result.
[0007] According to a third aspect, the present disclosure provides a computer readable medium having stored thereon a computer program which, when executed by a processing device, implements the steps of the method according to the first aspect of the present disclosure.
[0008] According to a fourth aspect, the present disclosure provides an electronic device, comprising: A storage device in which a computer program is stored; and a processing unit for executing the computer program in the storage device to implement the steps of the method according to the first aspect of the present disclosure. Effect of the Invention
[0009] According to the above technical solution, at least the following technical effects can be achieved: based on user input, translation suggestions from the reference translation can be provided, and the user can directly use the translation suggestions as the translation result through a confirmation operation, thereby reducing the user's input time; and the present disclosure can improve translation efficiency and translation quality by combining manual accuracy and machine efficiency.
[0010] Other features and advantages of the present disclosure are described in detail in the following specific embodiments section. [Brief description of the drawings]
[0011] The above and other features, advantages, and aspects of each embodiment of the present disclosure will become more apparent by reference to the following specific embodiments in conjunction with the accompanying drawings, in which the same or similar reference numerals refer to the same or similar elements throughout the drawings, where the drawings are schematic and parts and elements are not necessarily drawn to scale. [Figure 1] 1 is a flow chart of a method for translating a document according to an exemplary disclosed embodiment. [Diagram 2] FIG. 2 is a schematic diagram of a translation interface according to an exemplary disclosed embodiment; [Diagram 3]FIG. 2 is a schematic diagram of a translation interface according to an exemplary disclosed embodiment; [Figure 4] 1 is a block diagram of a document translation device according to an exemplary disclosed embodiment; [Diagram 5] FIG. 1 is a block diagram of an electronic device according to an exemplary disclosed embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be realized in various forms and should not be construed as being limited to the embodiments described herein, but rather these embodiments are provided to provide a deeper and more complete understanding of the present disclosure. It should also be understood that the drawings and embodiments of the present disclosure are used for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0013] It should be understood that the steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. Also, method embodiments may include additional steps and / or omit the performance of steps that are illustrated. The scope of the present disclosure is not limited in this respect.
[0014] As used herein, the term "including" and variations thereof mean open-ended inclusion, i.e., "including but not limited to." The term "based on" means "based at least in part on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one alternative embodiment," and the term "some embodiments" means "at least some embodiments." Relevant definitions of other terms are provided below.
[0015] It should be noted that the concepts of "first", "second", etc. referred to in this disclosure are used only to distinguish different devices, modules, or units, and are not intended to limit the order or interdependence of functions performed by these devices, modules, or units.
[0016] Herein, the modifications "one" and "multiple" referred to in the present disclosure are exemplary rather than limiting, and should be understood as "one or more" unless otherwise indicated herein, as would be understood by one of ordinary skill in the art.
[0017] The names of messages or information exchanged between devices in the embodiments of the present disclosure are not intended to limit the scope of these messages or information, but are for illustrative purposes only.
[0018] 1 is a flowchart of a document translation method according to an exemplary disclosed embodiment, which can be applied to a terminal, a server and other independent electronic devices, or a translation system, in which case each step of the method can be completed by the cooperation of multiple devices in the translation system, for example, S11 shown in FIG. 1 can be performed by a terminal, and S12 can be performed by a server. As shown in FIG. 1, the document translation method includes the following steps: S11: Display an original text display area, a translation area, and an editing area. The original text display area displays text content in a document to be translated, and the translation area displays a reference translation corresponding to the text content. S12: Providing translation suggestions from the reference translation according to user input in the editing area.
[0019] Based on the proposed translation, the method provided by the embodiment of the present disclosure includes: when detecting a user's confirmation operation of the proposed translation, displaying the proposed translation in the editing area as a translation result; and when detecting a user's non-confirmation operation of the proposed translation, accepting a translation input by the user that is different from the proposed translation, and displaying the translation input by the user in the editing area as the translation result. Optionally, the method further includes updating a reference translation in the translation area based on the translation input by the user.
[0020] In a specific implementation, the confirmation operation may be a user's operation of a predetermined shortcut key. For example, the user indicates an intention to accept the translation suggestion by clicking the shortcut key, so when the operation of the user clicking the shortcut key is detected, the translation suggestion is displayed in the editing area as the translation result. Note that the operation of displaying the translation suggestion in the editing area as the translation result is the user's input in the editing area described in step S12, that is, in this case, step S12 means the following: the method provided by the embodiment of the present disclosure next provides a next translation suggestion from the reference translation in response to displaying the currently provided translation suggestion in the editing area as the translation result (the next translation suggestion is a subsequent translation in the reference translation of the provided translation suggestion).
[0021] Optionally, when a user's non-confirmation operation of the translation suggestion is detected, it is detected that the translation input by the user does not match the currently provided translation suggestion. In this case, the method provided by the embodiment of the present disclosure can accept a translation input by the user different from the translation suggestion, and display the translation input by the user in the editing area as a translation result, and the method can further update the reference translation in the translation area based on the translation input by the user. Note that the translation input by the user different from the translation suggestion is the user's input in the editing area described in step S12, that is, in this case, step S12 means the following, that is, the method provided by the embodiment of the present disclosure provides a next translation suggestion from the updated reference translation based on the translation input by the user in response to the user inputting a translation different from the translation suggestion into the editing area. For example, if the proposed translation provided this time is "my" and it is detected that the translation entered by the user is "I", which is different from the proposed translation "my", then the reference translation is updated based on the translation "I" and the next proposed translation for the translation "I" is provided from the updated reference translation.
[0022] According to the above method, it is possible to provide a translation suggestion from a reference translation based on a user's input, and the user can confirm the translation suggestion as the translation result, thereby reducing the user's input time. The present disclosure can improve the efficiency and quality of translation by combining manual accuracy and machine efficiency.
[0023] In order for those skilled in the art to better understand the technical solution provided by the embodiments of the present disclosure, the document translation method provided by the embodiments of the present disclosure will be described in detail below.
[0024] Optionally, the document to be translated in step S11 may be text content directly copied and pasted by the user, or may be a text document, a picture document, etc. uploaded by the user, and the present disclosure does not limit the format of the document to be translated. When a document in a format such as a picture document is targeted, character recognition can be performed on the picture document to obtain the text content in the picture document.
[0025] Optionally, providing the translation suggestion described in step S12 may include highlighting the translation suggestion from the reference translation in the translation area, where the highlighting of the translation suggestion in the translation area may be cancelled when a user confirms the translation suggestion.
[0026] The highlighting may be a display form capable of highlighting the translation suggestion, such as a bold font, a highlight font, a different colored character, a different colored background, a shading effect, etc. In a possible embodiment, the highlighting may be a display form different from the display form of the input translation, for example, in the editing area, the input translation may be in a bold font and the translation suggestion may be in a normal font, or the input translation may be in black characters and the translation suggestion may be in gray characters, etc. When a user's confirmation operation of the translation suggestion is detected, the display form of the translation suggestion may be adjusted to be the same as the display form of the input translation. For example, when the input translation is in a bold font and the translation suggestion is in a normal font, and a user's confirmation operation is detected, the translation suggestion is adjusted to be displayed in a bold font.
[0027] In a possible embodiment, the confirmation operation is a shortcut key input operation of the electronic device by the user. For example, the electronic device may be a mobile phone, the shortcut key may be a virtual key or a physical key (e.g., a volume key) in a display area of the mobile phone, and the user accepts the translation suggestion by operating the shortcut key. When the trigger operation of the shortcut key by the user is detected, the translation suggestion can be displayed in an editing area as a translation result. The electronic device may be a computer, and the shortcut key may be a designated or custom button on the computer's keyboard or mouse (e.g., the alt key on the keyboard, a side button on the mouse, etc.).
[0028] The confirmation operation may be, for example, a posture confirmation operation such as a nod, a wink, or a specified gesture that is captured by a camera and then recognized, or a voice confirmation operation that is captured by a microphone and then recognized.
[0029] In possible embodiments, the translation suggestions from the reference translation include at least one of a word, a phrase, and a sentence.
[0030] The following describes in detail how to submit translation suggestions. When translating text content, a user can refer to a reference translation displayed in the translation area, enter text in the editing area (note that entering text here includes entering characters, such as English letters or words, and also includes entering text using key operations, such as clicking in the editing area), and provide a translation suggestion from the reference translation.
[0031] For example, if the text content is "When the bell rang,Allie entered the school" and the reference translation is "When the bell rang,Allie entered the school", a translation suggestion "When" from the reference translation (or a rougher translation suggestion such as "When the bell rang") can be provided after the user clicks in the editing area or types the letter "W" in the editing area.
[0032] The user accepts the translation suggestion by performing a confirmation operation, and the confirmation operation is treated as an input operation in the editing area, and translation suggestions from the reference translation are continuously provided. For example, when a confirmation operation of "When" by the user is detected, "When" is displayed in the editing area as the translation result, and the next translation suggestion "the" is provided to the user.
[0033] When a non-confirmation operation of the translation suggestion by the user is detected, a translation input by the user that is different from the translation suggestion is accepted, and the reference translation in the translation area is updated based on the translation input by the user. The non-confirmation operation may be a preset operation that represents non-confirmation (e.g., clicking a preset button, executing a preset operation, etc.), or may be other than the confirmation operation described above. For example, the non-confirmation operation may be not performing a confirmation operation within a predetermined time, or an operation of continuing input.
[0034] In some embodiments, the reference translation of the text content "When the bell rang, Allie entered the school." is "When the bell rang, Allie entered the school.", and when a click input operation by the user in the editing area is accepted, a translation suggestion "When" from the reference translation is provided, and based on a confirmation operation by the user, the translation suggestion "When" is displayed in the editing area as the translation result, and the next translation suggestion "the" is subsequently provided to the user. When providing the translation suggestion "entered," if a user input "c" different from the translation suggestion is accepted, based on the translation entered by the user, the reference translation is updated to "When the bell rang, Allie came in the school.", and the translation suggestion "came" is provided to the user.
[0035] The reference translation and the suggested translation are provided by machine translation (e.g., a deep learning translation model, etc.). If a reference translation conforming to the text content cannot be generated based on the translation input by the user in the editing area, the translation characters input by the user can be error-corrected based on pre-stored dictionary content, and the reference translation can be updated based on the error-corrected translation.
[0036] Note that, although the present disclosure takes as an example a case in which the translation language is English and the original text is Chinese, the present disclosure does not limit the translation language and the original text language, and the present disclosure may be various combinations, such as an original text in classical Chinese and a translation in vernacular Chinese, or an original text in Japanese and an English translation.
[0037] In a possible embodiment, the source text display area is an editable area, i.e. the text content in the source text display area is editable, and accordingly the method further comprises updating the reference translation in the translation area in response to a user's manipulation of modifying the text content in the source text display area.
[0038] In some embodiments, the reference translation of the text content "When the bell rang, Allie entered the school" is "When the bell rang, Allie entered the school.", and after the user accepts the modification of the text content "school" to "classroom" in the original text display area, the reference translation in the translation area can be updated to "When the bell rang, Allie entered the classroom."
[0039] In a possible embodiment, the text content in the document to be translated is segmented to obtain a plurality of segment contents, and for each of the segment contents, a source text display area, a translation area and an editing area are displayed, where the source text display area displays the corresponding segment content, and the translation area displays a reference translation of the corresponding segment content.
[0040] In some implementations, a user manually segments the text content, for example by inserting paragraph breaks where segmentation is required. The text content may be segmented based on semantic information and / or paragraph break information of the text content in the document to be translated. For example, a semantic segmentation model may segment based on character content, and sentences with the same semantic are displayed as one paragraph. Optionally, if the character distribution in a picture document meets a predetermined format, the text content may be segmented in a predetermined manner. For example, if the characters in a picture document are arranged into multiple clusters, the characters in the picture document may be recognized, and the characters in the same place in the picture may be displayed as one paragraph.
[0041] Figure 2 is a schematic diagram of a possible translation interface. The text content of a document to be translated is displayed in a source text display area, which is displayed above the translation area and the editing area, with different paragraphs exhibiting different source text display areas, translation areas and editing areas. Each area in each paragraph can be translated independently without being updated by modifications to other areas. The user may enter a translation in the editing area or modify the text content in the source text display area.
[0042] As shown in the display frame for paragraph 2 at the bottom of FIG. 2, in a possible embodiment, an editing area can be displayed in response to a user selecting a paragraph, and the editing area can be hidden before the user selects the paragraph.
[0043] FIG. 3 is a schematic diagram of a possible translation interface. As shown in the topmost area of FIG. 3, the source text display area is above the translation area and the editing area. After retrieving the text content, the source text display area is translated, the reference translation is displayed in the translation area, and a translation suggestion from the reference translation is provided in the editing area according to the user's input in the editing area. The confirmed translation suggestion as a translation result or the translation input by the user is displayed in bold font, and the displayed translation suggestion is displayed in gray normal font, as shown in the middle area of FIG. 3. If a non-confirmed operation of the user inputting a translation in the editing area (e.g., inputting a translation different from the translation suggestion in the editing area) is detected, the reference translation is updated based on the translation input by the user (the bold and underlined characters are the characters input by the user), and the updated translation suggestion from the reference translation is displayed to the user. As shown in the bottommost area of FIG. 3, the user adopts the updated translation suggestion from the reference translation, and then the translation suggestion is displayed in the editing area as a translation result. When the user edits the text content of the source text display area (the bold and underlined text is the text that the user has modified), update the reference translation based on the text content edited by the user and provide translation suggestions from the reference translation.
[0044] In a possible embodiment, the text content and the translation result of the text content by the user can be used as training samples, and the training samples are used to train a deep learning translation model corresponding to the user so that the deep learning translation model conforms to the user's usage habits, and to update the deep learning translation model. For example, if a user is accustomed to translating the word "telephone" as "phone" instead of "telephone", after using it many times, the user can update the deep learning translation model corresponding to the user based on the user's translation result, so that in subsequent use, the word "telephone" is translated as "phone" instead of "telephone" to conform to the user's usage habits.
[0045] In a possible embodiment, the translation result can be exported as a translation document in the document format specified by the user, and a download service can be provided to the user. The method may generate a translation document that matches the typesetting format based on the typesetting format in the document to be translated uploaded by the user, thereby achieving the effect of saving the user's typesetting time. For example, when generating a translation document, if the page margins in the document to be translated are 3 cm at the top, 2.5 cm at the bottom, 2.8 cm on the left, and 2 cm on the right, the size of the title is centered in bold size 2, the subtitle is bold size 3, and the main text is Song typeface size 4 in Chinese, set the margins to match the document to be translated, adjust the translation result corresponding to the text content of the title to be centered in bold size 2, adjust the text content of the subtitle to bold size 3, adjust the main text to the default English font size 4, and adjust the segmentation format, carriage return number, page number, header, etc. to match the document to be translated, and export it in the document format specified by the user, such as word, pdf, etc.
[0046] Based on the above technical solution, at least the following technical effects can be achieved: translation suggestions from the reference translation can be provided based on user input; the user can directly use the translation suggestions as the translation result through a confirmation operation, thereby reducing the user's input time; and the present disclosure can improve translation efficiency and translation quality by combining manual accuracy and machine efficiency.
[0047] FIG. 4 is a block diagram of a document translation device according to an exemplary disclosed embodiment. As shown in FIG. 4, the document translation device 400 includes: an exhibition module 410 for displaying an original text display area, a translation text area, and an editing area, the original text display area displaying text content in a document to be translated, and the translation text area displaying a reference translation corresponding to the text content; and a suggestion module 420 for providing translation suggestions from the reference translations according to user input within the editing area.
[0048] The suggestion module 420 further detects a user's confirmation operation of the translation suggestion and displays the translation suggestion in the editing area as the translation result; or, if the suggestion module 420 detects a user's non-confirmation operation of the translation suggestion, accepts a translation input by the user that is different from the translation suggestion and displays the translation input by the user in the editing area as the translation result.
[0049] Optionally, the suggestion module updates a reference translation in the translation domain based on the translation entered by a user.
[0050] Optionally, the suggestion module further includes a display sub-module for highlighting a translation suggestion from the reference translation in the translation area and canceling the highlighting of the translation suggestion in the translation area when a user confirmation operation of the translation suggestion is detected.
[0051] Optionally, the display submodule displays the suggested translation in the editing area in a display format different from that of the input translation, and when it detects a user's operation to confirm the suggested translation, it displays the suggested translation as a translation result in the editing area in the same display format as the input translation.
[0052] Optionally, said translation suggestions include at least one of a word, a phrase, or a sentence.
[0053] Optionally, the suggestion module is further configured to display the translation suggestion in the editing area as a translation result in response to a user triggering a shortcut key on the electronic device.
[0054] Optionally, the apparatus further comprises a correction module for updating a reference translation in the translation area in response to a user's modification operation of the text content in the source text display area.
[0055] Optionally, the display module further includes a segmentation sub-module for segmenting text content in the document to be translated to obtain a plurality of segment contents, and the display module further displays, for each of the segment contents, a corresponding original text display area, a translation area and an editing area, in which the corresponding segment content is displayed in the original text display area and a reference translation of the corresponding segment content is displayed in the translation area.
[0056] Optionally, the segmentation sub-module segments the text content in the document to be translated based on semantic information and / or paragraph delimitation information of the text content to obtain a plurality of segment contents.
[0057] The functions of each of the above modules have been described in detail in the method steps of the previous embodiments, so they will not be repeated here.
[0058] Based on the above technical solution, at least the following technical effects can be achieved: translation suggestions from the reference translation can be provided based on user input; the user can directly use the translation suggestions as the translation result through a confirmation operation, thereby reducing the user's input time; and the present disclosure can improve translation efficiency and translation quality by combining manual accuracy and machine efficiency.
[0059] Hereinafter, referring to FIG. 5, a schematic diagram of an electronic device (e.g., the terminal device or server in FIG. 1) 500 suitable for implementing the embodiments of the present disclosure is shown. The terminal device of the embodiments of the present disclosure includes, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable media players), and in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device of FIG. 5 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0060] 5, the electronic device 500 includes a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 501, which executes various appropriate operations and processes based on a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. The RAM 503 also stores various programs and data necessary for the operation of the electronic device 500. The processing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0061] In general, the following devices can be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyro, etc.; output devices 507 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 508 including, for example, a magnetic tape, hard disk, etc.; and communication devices 509. The communication devices 509 allow the electronic device 500 to communicate and exchange data with other devices, wirelessly or by wire. Although FIG. 5 illustrates the electronic device 500 having various devices, it should be understood that it is not necessary for the electronic device 500 to implement or include all of the devices shown. Alternatively, more or fewer devices may be implemented or included.
[0062] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowcharts may be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product having a computer program carried on a non-transitory computer-readable medium, the computer program including program code for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network via a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above functions defined in the method according to the embodiment of the present disclosure are performed.
[0063] Here, the above computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above. The computer-readable storage medium may be, for example, but is not limited to, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to, an electrical connection having one or more wires, a portable computer magnetic disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact magnetic disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium includes a data signal propagated in baseband or as part of a carrier wave, carrying the computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may be any computer-readable medium other than a computer-readable storage medium that transmits, propagates, or transmits a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained in the computer-readable medium may be transmitted over any suitable medium, including, but not limited to, electrical wires, optical cables, RF (radio frequency), or the like, or any suitable combination of the above.
[0064] In some embodiments, the client terminals and servers may communicate using any network protocol now known or later developed, such as HyperText Transfer Protocol (HTTP), and may be interconnected by any form or medium of digital data communication (e.g., a communications network). Examples of communications networks include a local network ("LAN"), a wide area network ("WAN"), the World Wide Web (e.g., the Internet), an end-to-end network (e.g., an ad-hoc end-to-end network), and any other network now known or later developed.
[0065] The computer-readable medium may be included in the electronic device or may be separate from and not located on the electronic device.
[0066] The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the following steps: displaying an original text display area, a translation area, and an editing area, where the original text display area displays text content of a document to be translated and the translation area displays a reference translation corresponding to the text content; and providing a translation suggestion from the reference translation in accordance with a user's input in the editing area, and when a confirmation operation of the translation suggestion by the user is detected, the translation suggestion is displayed in the editing area as a translation result; or when a non-confirmation operation of the translation suggestion by the user is detected, a translation input by the user that is different from the translation suggestion is accepted and the translation input by the user is displayed in the editing area as the translation result.
[0067] Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages or combinations thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and the like, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be entirely executed on the user's computer, partially executed on the user's computer, executed as a stand-alone software package, partially executed on the user's computer and partially executed on a remote computer, or entirely executed on a remote computer or server. When a remote computer is involved, the remote computer may be connected to the user's computer by any type of network, including a local network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., connected by the Internet using an Internet Service Provider).
[0068] The flowcharts and block diagrams in the drawings illustrate possible system architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, program segment, or part of code, which includes one or more executable instructions for implementing a certain logical function. It should be noted that in some alternative implementations, the functions shown in the blocks may occur in a different order from the order shown in the figures. For example, two blocks shown in succession may actually be executed essentially in parallel, or in some cases in the reverse order, depending on the related functions. Also, each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts may be implemented in a dedicated system by hardware, or in a combination of dedicated hardware and computer instructions, for implementing a certain function or operation.
[0069] The modules or units described in the embodiments of the present disclosure may be implemented in the form of software or hardware. In some cases, the names of the modules or units do not form limitations on the units themselves, for example, the display module may be further described as "a module for displaying an original text display area, a translation text area, and an editing area."
[0070] The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, but not limited to, exemplary types of hardware logic components that may be utilized include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0071] In this disclosure, a machine-readable medium may be a tangible medium that contains or stores a program that may be used by or in combination with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium includes, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of machine-readable storage media include an electrical connection by one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact magnetic disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0072] According to one or more embodiments of the present disclosure, Example 1 provides a method for translating a document, comprising the steps of: displaying an original text display area, a translation area, and an editing area, in which a text content of a document to be translated is displayed in the original text display area, and a reference translation corresponding to the text content is displayed in the translation area; and providing a translation suggestion from the reference translation according to a user input in the editing area, wherein if a user operation to confirm the translation suggestion is detected, the translation suggestion is displayed in the editing area as a translation result; and if a user operation to confirm the translation suggestion is not detected and a translation input by the user that is different from the translation suggestion is accepted, the translation input by the user is displayed in the editing area as the translation result.
[0073] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, further comprising updating a reference translation in the translation area based on the translation input by the user.
[0074] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein providing the translation suggestions from the reference translation includes highlighting the translation suggestions from the reference translation in the translation area, and the method further includes canceling the highlighting of the translation suggestions in the translation area when a user confirms the translation suggestions.
[0075] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 3, wherein providing a translation suggestion from the reference translation includes displaying the translation suggestion in the editing area in a form different from a display form of the input translation, and when detecting a confirmation operation of the translation suggestion by the user, displaying the translation suggestion in the editing area as the translation result includes displaying the translation suggestion in the editing area as the translation result in the same form as the display form of the input translation when detecting a confirmation operation of the translation suggestion by the user.
[0076] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 1, wherein the translation suggestions include at least one of a word, a phrase, or a sentence.
[0077] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 1, where when detecting a confirmation operation of the translation suggestion by the user, displaying the translation suggestion in the editing area as the translation result includes displaying the translation suggestion in the editing area as the translation result in response to the user triggering an operation of a shortcut key on an electronic device.
[0078] According to one or more embodiments of the present disclosure, Example 7 provides the method of Examples 1 to 6, further comprising updating a reference translation in the translation area in response to a user's operation to modify text content in the original text display area.
[0079] According to one or more embodiments of the present disclosure, Example 8 provides the method of Examples 1 to 6, wherein the step of displaying the original text display area, the translation area, and the editing area includes the steps of: segmenting text content in the document to be translated to obtain a plurality of segment contents; and displaying a corresponding original text display area, the translation area, and the editing area for each of the segment contents, wherein the corresponding segment content is displayed in the original text display area, and the reference translation of the corresponding segment content is displayed in the translation area.
[0080] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 8, in which the step of segmenting text content in the document to be translated to obtain a plurality of segment contents includes the step of segmenting the text content to obtain a plurality of segment contents based on semantic information and / or paragraph break information of the text content in the document to be translated.
[0081] According to one or more embodiments of the present disclosure, Example 10 provides a document translation device, comprising: an exhibition module for displaying an original text display area, a translation area, and an editing area, in which a text content in a document to be translated is displayed in the original text display area, and a reference translation corresponding to the text content is displayed in the translation area; and a suggestion module for providing a translation suggestion from the reference translation according to a user's input in the editing area, wherein the suggestion module is further configured to, if it detects a user's confirmation operation of the translation suggestion, display the translation suggestion in the editing area as a translation result; and, if it does not detect a user's confirmation operation of the translation suggestion and accepts a translation input by the user that is different from the translation suggestion, display the translation input by the user in the editing area as the translation result.
[0082] According to one or more embodiments of the present disclosure, Example 11 provides the apparatus of Example 10, wherein the suggestion module further updates a reference translation in the translation domain based on the translation input by the user.
[0083] According to one or more embodiments of the present disclosure, Example 12 provides the device of Example 10, wherein the suggestion module further includes a display sub-module for highlighting a translation suggestion from the reference translation in the translation area and canceling the highlighting of the translation suggestion in the translation area when a user confirms the translation suggestion.
[0084] According to one or more embodiments of the present disclosure, Example 13 provides the device of Example 12, wherein the display submodule displays the translation suggestion in the editing area in a display form different from a display form of an input translation, and when a confirmation operation of the translation suggestion by the user is detected, displays the translation suggestion as a translation result in the editing area in the same display form as the input translation.
[0085] According to one or more embodiments of the present disclosure, Example 14 provides the apparatus of Example 10, wherein the translation suggestions include at least one of a word, a phrase, or a sentence.
[0086] According to one or more embodiments of the present disclosure, Example 15 provides the apparatus of Example 10, wherein the suggestion module further displays the translation suggestion in the editing area as a translation result in response to a user triggering a shortcut key on an electronic device.
[0087] According to one or more embodiments of the present disclosure, Example 16 provides the device of Examples 10 to 15, wherein the device further includes a correction module for updating a reference translation in the translation area in response to a user's correction operation of the text content in the original text display area.
[0088] According to one or more embodiments of the present disclosure, Example 17 provides the device of Examples 10 to 15, wherein the display module further includes a segmentation sub-module for segmenting text content in the document to be translated to obtain a plurality of segment content, and the display module further displays a corresponding original text display area, a translation area and an editing area for each of the segment content, wherein the original text display area displays the corresponding segment content and the translation area displays a reference translation of the corresponding segment content.
[0089] According to one or more embodiments of the present disclosure, Example 18 provides the device of Example 17, wherein the segmentation submodule segments the text content to obtain a plurality of segment contents based on semantic information and / or paragraph break information of the text content in the document to be translated.
[0090] The above description is merely a description of the preferred embodiments of the present disclosure and the technical principles applied thereto. It is understood by those skilled in the art that the disclosure scope of the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but also includes other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the technical solution is formed by mutually replacing the above features with technical features having similar functions disclosed in the present disclosure (but not limited thereto).
[0091] Also, although operations have been described employing a particular order, this should not be construed as requiring that these operations be performed in the particular order or sequence shown. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, the above discussion includes some specific implementation details, but these should not be construed as limitations on the scope of the disclosure. Some features that are described in the context of separate embodiments may be implemented in a single embodiment in combination. Conversely, various features that are described in the context of a single embodiment may be implemented in multiple embodiments separately or in any suitable subcombination.
[0092] Although the subject matter has been described in language specific to configuration features and / or logical operations of a method, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or operations described above. Rather, the specific features and operations described above are merely example forms for implementing the claims. The specific forms in which each module performs operations in the apparatus of the above embodiments are described in detail in the related method embodiments, and therefore will not be described in detail here.
Claims
1. A document translation method applied to an electronic device including a processing device, comprising: displaying a source text display area, a translated text area, and an editing area, wherein text content in a document to be translated is displayed in the source text display area, and a reference translation corresponding to the text content is displayed in the translated text area; displaying a translation proposal from the reference translation in the editing area according to user input in the editing area. When the user input is a confirmation operation of the translation proposal by the user, the step of displaying the translation proposal from the reference translation in the editing area includes displaying the translation proposal in the editing area as a translation result; When the user input is not a confirmation operation of the translation proposal by the user, the step of displaying the translation proposal from the reference translation in the editing area includes receiving a translation different from the translation proposal input by the user, and displaying the translation input by the user in the editing area as the translation result; updating the reference translation in the translated text area based on the translation input by the user, wherein the updated reference translation includes the translation input by the user; displaying the updated reference translation in the editing area. The method is characterized by the above.
2. The step of displaying the translation proposal from the reference translation in the editing area includes highlighting the translation proposal from the reference translation in the translated text area. The method further includes: when the user input is a confirmation operation of the translation proposal by the user, canceling the highlighting of the translation proposal in the translated text area. The method according to claim 1 is characterized by the above.
3. The step of displaying the translation proposal from the reference translation in the editing area includes displaying the translation proposal in the editing area in a form different from the display form of the input translation. When the user input is a confirmation operation of the translation proposal by the user, displaying the translation proposal in the editing area as a translation result The method according to claim 1, characterized in that when the input of the user is a confirmation operation of the translation proposal by the user, the translation proposal is displayed in the editing area as a translation result in the same form as the display form of the input translation.
4. The method according to claim 1, characterized in that the translation proposal includes at least one of a word, a phrase, and a sentence.
5. When the input of the user is a confirmation operation of the translation proposal by the user, displaying the translation proposal in the editing area as a translation result The method according to claim 1, characterized in that it includes displaying the translation proposal in the editing area as a translation result in response to a trigger operation of a shortcut key on an electronic device by the user.
6. The method according to any one of claims 1 to 5, further comprising the step of updating the reference translation in the translation area in response to a correction operation of text content in the original text display area by the user, wherein the updated reference translation includes a reference translation of the corrected text content.
7. The step of displaying the original text display area, the translation area, and the editing area The step of segmenting text content in the document to be translated to obtain a plurality of segment contents For each segment content, the step of displaying a corresponding original text display area, a translation area, and an editing area, wherein the corresponding segment content is displayed in the original text display area, and a reference translation of the corresponding segment content is displayed in the translation area. The method according to any one of claims 1 to 5.
8. The step of segmenting text content in the document to be translated to obtain a plurality of segment contents The method according to claim 7, characterized in that it includes the step of segmenting the text content based on semantic information and / or paragraph delimiter information of the text content in the document to be translated to obtain a plurality of segment contents.
9. A document translation device A display module for displaying a source text area, a translation text area, and an editing area, wherein in the source text area, text content in a document to be translated is displayed, and in the translation text area, a reference translation corresponding to the text content is displayed. A proposal module for displaying a translation proposal from the reference translation in the editing area according to a user input in the editing area. The proposal module further includes: when the user input is a confirmation operation of the translation proposal by the user, displaying the translation proposal in the editing area as a translation result; when the user input is not a confirmation operation of the translation proposal by the user, accepting a translation different from the translation proposal input by the user, and displaying the translation input by the user in the editing area as the translation result, updating the reference translation in the translation text area based on the translation input by the user, the updated reference translation including the translation input by the user, and displaying the updated reference translation in the editing area. The device is characterized by the above.
10. A computer-readable medium storing a computer program, wherein when the computer program is executed by a processing device, it realizes the steps of the method according to any one of claims 1 to 8. The computer-readable medium is characterized by the above.
11. An electronic device, including a storage device storing a computer program, and a processing device for executing the computer program in the storage device to realize the steps of the method according to any one of claims 1 to 8. The electronic device is characterized by the above.
Citation Information
Patent Citations
Patent document creating device, method, computer program, computer-readable recording medium, server and system
WO2020044290A1