WO2019090781A1 - Language translation method, apparatus and translation device - Google Patents

Language translation method, apparatus and translation device Download PDF

Info

Publication number
WO2019090781A1
WO2019090781A1 PCT/CN2017/110729 CN2017110729W WO2019090781A1 WO 2019090781 A1 WO2019090781 A1 WO 2019090781A1 CN 2017110729 W CN2017110729 W CN 2017110729W WO 2019090781 A1 WO2019090781 A1 WO 2019090781A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
translation
historical conversation
historical
retranslation
Prior art date
Application number
PCT/CN2017/110729
Other languages
French (fr)
Chinese (zh)
Inventor
周毕兴
Original Assignee
深圳市沃特沃德股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Priority to PCT/CN2017/110729 priority Critical patent/WO2019090781A1/en
Publication of WO2019090781A1 publication Critical patent/WO2019090781A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a language translation method, apparatus, and translation apparatus.
  • the existing translation machine When the existing translation machine is translating, it mainly adopts the method of single-segment translation, that is, during the user's rotating conversation, the user immediately translates the paragraph immediately after the user finishes a paragraph.
  • this kind of translation method is relatively efficient, it separates each paragraph during translation, and does not combine the complete dialogue paragraphs, resulting in low translation accuracy, which makes users feel confused about some translation results and cannot understand the other users. The correct meaning is easy to cause misunderstanding between the two parties, thus affecting the user experience.
  • the main object of the present invention is to provide a language translation method, apparatus and translation apparatus, which aim to improve the accuracy of translation and enhance the user experience.
  • an embodiment of the present invention provides a language translation method, where the method includes the following steps:
  • the original information is re-translated in conjunction with the historical conversation record to obtain the re-translated information
  • the embodiment of the invention simultaneously provides a language translation device, the device comprising:
  • a first translation module configured to perform translation processing on the original information to obtain information of the initial translation
  • a second translation module configured to re-translate the original information in combination with the historical conversation record to obtain re-translated information when receiving the re-translation instruction
  • the dialog recording module is configured to add the current conversation information to the historical conversation record.
  • Embodiments of the present invention also provide a translation apparatus including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to be used for Perform the aforementioned language translation method.
  • a language translation method provided by an embodiment of the present invention records a historical conversation record in a translation process, and when the single-segment translation is not accurate enough, the original information is re-translated in conjunction with the historical conversation record, because the historical dialogue record
  • the historical dialogue information and the original information in this time can form a complete dialogue paragraph. By parsing the entire dialogue paragraph, the original information can be more accurately understood, and the translation result obtained on this basis is more precise, thus greatly Improve the accuracy of translation and enhance the user experience.
  • FIG. 1 is a flow chart of an embodiment of a language translation method of the present invention
  • FIG. 2 is a schematic diagram of historical conversation records in an embodiment of the present invention.
  • FIG. 3 is another schematic diagram of historical conversation records in an embodiment of the present invention.
  • FIG 4 is a specific flow chart of step S12 of Figure 1;
  • FIG 5 is another specific flow chart of step S12 of Figure 1;
  • FIG. 6 is another specific flow chart of step S12 of Figure 1;
  • Figure 7 is a block diagram showing an embodiment of a language translation apparatus of the present invention.
  • Figure 8 is a block diagram of the second translation module of Figure 7;
  • FIG. 9 is another block diagram of the second translation module of FIG. 7;
  • FIG. 10 is another block diagram of the second translation module of FIG. 7.
  • terminal and terminal device used herein include both a wireless signal receiver device, a device having only a wireless signal receiver without a transmitting capability, and a receiving and transmitting hardware.
  • Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data Processing, fax And/or data communication capabilities; PDA (Personal Digital Assistant), which may include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars, and/or GPS (Global Positioning System, Global Positioning System) Receiver; conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver.
  • PCS Personal Communications Service
  • PDA Personal Digital Assistant
  • GPS Global Positioning System, Global Positioning System
  • terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form.
  • the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playing terminal, and may be, for example, a PDA, a MID (Mobile Internet Device), and/or have a music/video playback.
  • Functional mobile phones can also be smart TVs, set-top boxes and other devices.
  • the server used herein includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud composed of a plurality of servers.
  • the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • communication can be implemented by any communication means between the server, the terminal device and the WNS server, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, and computer network communication based on TCP/IP and UDP protocols. And short-range wireless transmission based on Bluetooth and infrared transmission standards.
  • the language translation method and apparatus of the embodiments of the present invention are mainly applied to a translation device, and the translation device may be a special translation machine, or may be a terminal device such as a mobile phone or a tablet.
  • the method includes the following steps:
  • S11 Perform translation processing on the original information to obtain information of the initial translation.
  • the translation device receives the original information input by the user, and performs translation processing on the original information to obtain the initially translated information.
  • the translation device can translate the original information locally, translate the original information from one language to another, and get the initial translated information.
  • the translation device can also translate the original information through the server, that is, the translation device sends the original information to the server, the server translates the original information from one language to another and returns to the translation device, and the translation device receives the information originally translated by the server.
  • the original information is voice information input by the user, and in other embodiments, may also be text information or Other forms of information are not limited by the present invention.
  • the information may be directly output, or the information may be sent to another user's Bluetooth headset, and the information is output by the Bluetooth headset. If the user is dissatisfied with the information of the translation (such as feeling that the translation is not accurate enough, it is difficult to understand), the retranslation instruction can be issued to the translation device, for example, by triggering a specific button of the translation device to issue a retranslation instruction, and the translation device receives the re After the translation instruction, the original information is re-translated in combination with the historical conversation record between the two users to obtain the re-translated information.
  • the historical conversation record is complete dialogue information when the two users record and store the translation process during the translation process.
  • the translation device can sort each of the segments in the historical conversation record in order from time to time or from the number of times the information is recorded, and can sequentially mark each segment.
  • a passage in the historical conversation record that is, a message of a user's conversation.
  • the historical conversation record stores the original information input by the user, and the original information includes two languages corresponding to the two users. As shown in Figure 2, there are a total of N paragraphs in the historical conversation record, including the complete dialogue information of the A user and the B user, wherein: the dialogue information of the A user is the original information input by the A user, and is the A language; the dialogue of the B user The information is the original information entered by the B user and is in B language.
  • the historical conversation record includes historical conversation records in two languages, and the historical conversation record for each language contains the complete conversation information for the two users.
  • the historical dialogue record of the A language and the historical dialogue record of the B language there are N paragraphs in the dialogue record of each language, including the complete dialogue information of the A user and the B user, wherein;
  • a language The historical conversation record includes the original information input by the A user, and the information after translating the original information input by the B user into the A language;
  • the historical conversation record of the B language includes the original information input by the B user, and the input of the A user.
  • the original information is translated into information after the B language.
  • the specific process for the translation device to re-translate the original information in combination with the pre-stored historical conversation record may be as shown in FIG. 4, including the following steps:
  • step S103 Determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation. When they are the same, the process returns to step S101; when they are not the same, the next step S104 is performed.
  • the translation device traces back a piece of historical conversation information each time.
  • at least two pieces of historical conversation information may be traced back each time.
  • the translation device selects the last paragraph in the historical conversation record (that is, the last stored conversation information) as the historical conversation information, and the last paragraph and the original information (ie, to be translated) Information) is combined into a dialogue paragraph, understanding or parsing the meaning expressed in the entire dialogue paragraph, and then re-translating the original information according to the meaning expressed in the entire dialogue paragraph; when the translated information is consistent with the initial translated information , then go back again, select the last two paragraphs in the historical dialogue record as the historical dialogue information and re-translate the original information...; and so on, until the information obtained after the retranslation process and the initial translation When the information is inconsistent, the information obtained after the current retranslation processing is acquired as the retranslated information. Because the re-translated information is inconsistent with the initial translated information, it may indicate that the error in the initial translation may have been corrected during the re-translation, and the translation may be more accurate and satisfactory to the user.
  • the translation device When backtracking historical conversation information, if there are historical dialogue records in two languages, select the historical conversation record in the same language as the original information of this time, in order to more accurately understand the meaning of the dialogue paragraph, for example, the translation device this time
  • the original information received is in the A language
  • the historical dialogue record of the A language is selected, and the historical dialogue information is backtracked in the history dialogue record of the A language. If there is only one historical conversation record, the conversation record has dialogue information in two languages.
  • the translation device can translate the conversation information in the historical conversation information different from the language of the original information into The dialog information that is the same as the language of the original information, of course, the translation device may not perform the translation processing, which is not limited by the present invention.
  • the specific process for the translation device to re-translate the original information in combination with the pre-stored historical conversation record may also be as shown in FIG. 5, including the following steps:
  • S201 Backtracking the historical dialogue information in the historical dialogue record one by one according to the time from late to early.
  • step S203 Determine whether the information obtained after the current retranslation processing is consistent with the information obtained by any previous retranslation processing. When they are inconsistent, the process returns to step S201; when they are identical, the next step S204 is performed.
  • the difference between this solution and the previous solution is that the translation device compares the information obtained after each retranslation process with all the information obtained after the previous retranslation process, and when it is consistent with the information obtained after any previous retranslation processing, Then, the backtracking and retranslation are stopped, and the information obtained after the retranslation processing is obtained as the retranslated information. Because when two translations are combined with different historical dialogue information to obtain consistent translation results, the two translation results should be more accurate and satisfy the user.
  • the specific process for the translation device to re-translate the original information in combination with the pre-stored historical conversation record may also be as shown in FIG. 6, and includes the following steps:
  • step S303 Determine whether the information obtained after the retranslation process is consistent with the information of the initial translation. When they are consistent, the process returns to step S301; when not, the next step S304 is performed.
  • step S304 Determine whether the information obtained after the current retranslation processing is consistent with the information obtained after any previous retranslation processing. When they are inconsistent, the process returns to step S301; when they are identical, the next step S305 is performed.
  • the scheme combines the foregoing two schemes, and the translation device compares the information obtained after each retranslation processing with the information of the initial translation and all the information obtained by the previous retranslation processing, when the information is inconsistent with the initial translation, and When it is consistent with the information obtained after any previous retranslation processing, the backtracking and retranslation are stopped, and the information obtained after the retranslation processing is obtained as the retranslated information.
  • the maximum limit improves the accuracy of the translation results.
  • the translation device After obtaining the re-translated information, the translation device can directly output the information or send the information. To another user's Bluetooth headset, the Bluetooth headset outputs the information.
  • the translation device adds the current conversation information to the historical conversation record, such as automatically adding to the end of the historical conversation record and marking.
  • the translation device adds the original information of this time (that is, the conversation information input by the user) to the historical conversation record.
  • the translation device adds the original information of the current time (that is, the conversation information input by the user) and the translated information (that is, the conversation information output to the user this time). Go to the historical conversation record of the corresponding language. For example, if the language of the original information is B language, the original information is added to the history dialogue record of the B language, and the translated information is added to the history dialogue record of the A language, and the translated information described herein, if The information that was re-translated is re-translated, and if it is not re-translated, it is the information of the initial translation.
  • the language translation method of the embodiment of the present invention records the historical conversation record in the translation process.
  • the original information is re-translated in combination with the historical dialogue record, because the historical dialogue in the historical dialogue record
  • the information and the original information of this time can form a complete dialogue paragraph.
  • the original information can be more accurately understood, and the translation result obtained on this basis is more accurate, which greatly improves the translation. Accuracy improves the user experience.
  • the apparatus includes a first translation module 10, a second translation module 20, and a conversation recording module 30, wherein: the first translation module 10 is configured to perform original information. Translating processing, obtaining information of the initial translation; the second translation module 20 is configured to, when receiving the retranslation instruction, re-translate the original information in conjunction with the historical conversation record to obtain re-translated information; the dialog recording module 30 is configured to Add this conversation information to the history conversation record.
  • the first translation module 10 receives the original information input by the user, and performs translation processing on the original information to obtain Initial translation information.
  • the first translation module 10 can translate the original information locally, translate the original information from one language to another, and obtain the initially translated information.
  • the first translation module 10 can also translate the original information through the server, that is, the first translation module 10 sends the original information to the server, and the server translates the original information from one language to another and returns to the first translation module 10.
  • the first translation module 10 receives the information originally translated by the server.
  • the original information is voice information input by the user, and may be text information in other embodiments, which is not limited by the present invention.
  • the second translation module 20 After receiving the retranslation instruction, the second translation module 20 re-translates the original information in combination with the historical conversation record between the two users to obtain the re-translated information.
  • the historical conversation record is complete dialogue information when the two users record and store the translation process during the translation process.
  • the translation device can sort each of the segments in the historical conversation record in order from time to time or from the number of times the information is recorded, and can sequentially mark each segment. A passage in the historical conversation record, that is, a message of a user's conversation.
  • the historical conversation record stores the original information input by the user, and the original information includes two languages corresponding to the two users. As shown in Figure 2, there are a total of N paragraphs in the historical conversation record, including the complete dialogue information of the A user and the B user, wherein: the dialogue information of the A user is the original information input by the A user, and is the A language; the dialogue of the B user The information is the original information entered by the B user and is in B language.
  • the historical conversation record includes historical conversation records in two languages, and the historical conversation record for each language contains the complete conversation information for the two users.
  • Figure 3 including the historical dialogue record of the A language and the historical dialogue record of the B language, there are N paragraphs in the dialogue record of each language, including the complete dialogue information of the A user and the B user, wherein;
  • a language The historical conversation record includes the original information input by the A user, and the information after translating the original information input by the B user into the A language;
  • the historical conversation record of the B language includes the original information input by the B user, and the input of the A user.
  • the original information is translated into information after the B language.
  • the second translation module 20 includes a backtracking unit 21, a translation unit 22, a first determining unit 23, a first obtaining unit 24, and a first notification unit 25, wherein: the backtracking unit 21, is set The historical dialogue information in the historical dialogue record is successively traced back in order from the late to the early according to the time; the translation unit 22 is configured to re-translate the original information in combination with the historical dialogue information; the first judgment The unit 23 is configured to determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation; the first obtaining unit 24 is configured to obtain the retranslation when the information obtained after the retranslation processing is inconsistent with the information originally translated.
  • the information obtained after the processing is used as the re-translated information; the first notification unit 25 is configured to notify the backtracking unit 21 to go back to the historical conversation in the historical conversation record again when the information obtained after the re-translation processing coincides with the information of the initial translation. information.
  • the backtracking unit 21 traces back a piece of historical conversation information each time.
  • at least two pieces of historical conversation information may be traced back each time.
  • the backtracking unit 21 selects the last paragraph in the historical conversation record (ie, the last stored conversation information) as the historical conversation information, and the translation unit 22 compares the last paragraph with the current original information (ie, The information to be translated is combined into a dialogue paragraph, understanding the meaning expressed in the entire dialogue paragraph, and then re-translating the original information according to the meaning expressed in the entire dialogue paragraph; when the translated information is consistent with the initial translated information
  • the first notification unit 25 notifies the backtracking unit 21 to go back again, selects the last two paragraphs in the historical conversation record as historical conversation information, and re-translates the original information by the translation unit 22...
  • the first obtaining unit 24 acquires the information obtained after the current retranslation processing as the retranslated information. Because the re-translated information is inconsistent with the initial translated information, it may indicate that the error in the initial translation may have been corrected during the re-translation, and the translation may be more accurate and satisfactory to the user.
  • the backtracking unit 21 selects a historical dialogue record having the same language as the original information of this time, so as to more accurately understand the meaning of the dialogue paragraph, for example, translation
  • the original information received by the device this time is the A language
  • the backtracking unit 21 selects the historical dialogue record of the A language, and backtracks the historical dialogue information in the history dialogue record of the A language. If there is only one historical conversation record, the conversation record has conversation information of two languages.
  • the translation unit 22 can translate the conversation information in the historical conversation information different from the language of the original information. For the same dialog information as the language of the original information, of course, the translation device may not perform the translation processing, which is not limited by the present invention.
  • the second translation module 20 may also include a backtracking unit 21, a translation unit 22, a second determining unit 26, a second obtaining unit 27, and a second notifying unit 28, as shown in FIG. 9, wherein: the backtracking unit 21, Assume The historical dialogue information in the historical dialogue record is successively traced back in the order from time to time according to the time; the translation unit 22 is configured to re-translate the original information in combination with the historical dialogue information; the second determining unit 26 is set to determine Whether the information obtained after the retranslation processing is consistent with the information obtained by any previous retranslation processing; the second obtaining unit 27 is configured to obtain the information obtained after the current retranslation processing and the previous retranslation processing.
  • the information obtained after the current retranslation processing is acquired as the retranslated information; the second notification unit 28 is set to the information obtained after the current retranslation processing and the information obtained after any previous retranslation processing.
  • the backtracking unit 21 is notified to go back to the historical conversation information in the history conversation record.
  • the difference between the present solution and the previous solution is that the second judging unit 26 compares the information obtained after each retranslation process with all the information obtained after the previous retranslation process, and obtains the information obtained after re-translating any previous time. When they are consistent, the backtracking unit 21 and the translation unit 22 stop the backtracking and retranslation, and the second obtaining unit 27 obtains the information obtained after the current retranslation processing as the retranslated information. Because when two translations are combined with different historical dialogue information to obtain consistent translation results, the two translation results should be more accurate and satisfy the user.
  • the second translation module 20 may further include a backtracking unit 21, a translation unit 22, a first determining unit 23, a second determining unit 26, a third obtaining unit 29, and a third notifying unit 30, as shown in FIG.
  • the backtracking unit 21 is configured to backtrack the historical conversation information in the historical conversation record one by one according to the time from late to early;
  • the translation unit 22 is configured to re-translate the original information in combination with the historical dialogue information;
  • the unit 23 is configured to determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation;
  • the second determining unit 26 is configured to determine that the retranslation is performed when the information obtained after the retranslation processing is inconsistent with the information originally translated.
  • the third obtaining unit 29 is configured to match the information obtained after the current retranslation processing with the information obtained after any previous retranslation processing. Obtaining the information obtained after the retranslation processing as the retranslated information; the third notification unit 30 , when the information obtained after the retranslation processing is consistent with the information of the initial translation, or the information obtained after the retranslation processing is inconsistent with the information obtained by any previous retranslation processing, the backtracking unit 21 is notified to go back again. Historical dialogue information in historical dialogue records.
  • This solution combines the foregoing two solutions, and the first judging unit 23 and the second judging unit 26 respectively.
  • the information obtained after the retranslation processing is compared with the information of the initial translation and all the information obtained after the previous retranslation processing, and when it is inconsistent with the information of the initial translation, and is consistent with the information obtained after any previous retranslation processing, backtracking
  • the unit 21 and the translation unit 22 stop the backtracking and retranslation, and the third obtaining unit 29 acquires the information obtained after the current retranslation processing as the retranslated information.
  • the maximum limit improves the accuracy of the translation results.
  • the dialog recording module 30 adds the current conversation information to the historical conversation record, such as automatically adding to the end of the historical conversation record and marking.
  • the conversation record module 30 adds the original information of the current time (ie, the conversation information input by the user) to the historical conversation record.
  • the conversation record module 30 When the historical conversation record includes the historical conversation records of the two languages, the conversation record module 30 respectively sets the original information of the current time (ie, the conversation information input by the user) and the translated information (ie, the conversation information output to the user this time). ) is added to the historical conversation record of the corresponding language.
  • the language of the original information is B language
  • the dialogue record module 30 adds the original information to the history dialogue record of the B language, and adds the translated information to the history dialogue record of the A language.
  • the translated information described here is re-translated information if re-translated, and if it is not re-translated, it is the initial translated information.
  • the language translation apparatus of the embodiment of the present invention records the historical conversation record in the translation process.
  • the original information is re-translated in combination with the historical conversation record, because the historical dialogue in the historical dialogue record
  • the information and the original information of this time can form a complete dialogue paragraph.
  • the original information can be more accurately understood, and the translation result obtained on this basis is more accurate, which greatly improves the translation. Accuracy improves the user experience.
  • the invention also proposes a translation device comprising a memory, a processor and at least one application stored in the memory and configured to be executed by the processor, the application being configured to execute a language translation method.
  • the language translation method comprises the following steps: performing translation processing on the original information to obtain information of the initial translation; and when receiving the re-translation instruction, re-translating the original information in combination with the historical conversation record to obtain re-translated information; The second conversation information is added to the history conversation record.
  • the language translation method described in this embodiment is the language translation method involved in the foregoing embodiment of the present invention, and details are not described herein again.
  • the present invention encompasses one of the operations involved in performing the operations described herein. Item or item of equipment. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured.
  • Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, respectively, including but not limited to any Types of disks (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory) , EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card.
  • a readable medium includes any medium that is stored or transmitted by a device (eg, a computer) in a readable form.
  • each block of the block diagrams and/or block diagrams and/or flow diagrams and combinations of blocks in the block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions. .
  • these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method.
  • steps, measures, and solutions in the various operations, methods, and processes that have been discussed in the present invention may be alternated, changed, combined, or deleted. Further, other steps, measures, and schemes of the various operations, methods, and processes that have been discussed in the present invention may be alternated, modified, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and solutions in the prior art having various operations, methods, and processes disclosed in the present invention may also be alternated, changed, rearranged, decomposed, combined, or deleted.

Abstract

Disclosed by the present invention is a language translation method, the method comprising the following steps: performing translation processing on original information to acquire initially translated information; when a command for re-translation is received, combining historical conversation records to perform translation processing on the original information again to acquire re-translated information; adding conversation information from the present occasion to the historical conversation records, thus greatly increasing the accuracy of translation, and improving user experience.

Description

语言翻译方法、装置和翻译设备Language translation method, device and translation device 技术领域Technical field
本发明涉及电子技术领域,特别是涉及到一种语言翻译方法、装置和翻译设备。The present invention relates to the field of electronic technologies, and in particular, to a language translation method, apparatus, and translation apparatus.
背景技术Background technique
随着经济的快速发展,对外交流越来越广泛,而对于许多人来说语言不通是对外交流的一大障碍。为了解决上述问题,市场上出现了各种各样的翻译机。翻译机凭借着小巧便携的外观、强大的语言翻译功能,深受广大有语言翻译需求的人士的欢迎,同时也是人们学习外语的好帮手。翻译机可以在双方对话的过程中进行翻译,使得使用不同语言的用户可以无障碍交流。With the rapid development of the economy, foreign exchanges have become more and more extensive, and for many people, language barriers are a major obstacle to foreign exchanges. In order to solve the above problems, various translation machines have appeared on the market. With its small and portable appearance and powerful language translation function, the translator is well received by people who have language translation needs, and it is also a good helper for people to learn foreign languages. The translator can translate during the dialogue between the two parties, making it possible for users in different languages to communicate freely.
现有的翻译机在进行翻译时,主要采用独段翻译的方式,即在用户轮流交谈过程中,用户每说完一段话,则立即对该段话进行直译。这种翻译方式虽然效率比较高,但在翻译时将每段话孤立起来,没有结合完整的对话段落,导致翻译的准确性不高,使得用户对某些翻译结果感到很困惑,无法理解对方用户的准确意思,容易造成双方误解,从而影响用户体验。When the existing translation machine is translating, it mainly adopts the method of single-segment translation, that is, during the user's rotating conversation, the user immediately translates the paragraph immediately after the user finishes a paragraph. Although this kind of translation method is relatively efficient, it separates each paragraph during translation, and does not combine the complete dialogue paragraphs, resulting in low translation accuracy, which makes users feel confused about some translation results and cannot understand the other users. The correct meaning is easy to cause misunderstanding between the two parties, thus affecting the user experience.
技术问题technical problem
本发明的主要目的为提供一种语言翻译方法、装置和翻译设备,旨在提高翻译的准确性,提升用户体验。The main object of the present invention is to provide a language translation method, apparatus and translation apparatus, which aim to improve the accuracy of translation and enhance the user experience.
问题的解决方案Problem solution
技术解决方案Technical solution
为达以上目的,本发明实施例提出一种语言翻译方法,所述方法包括以下步骤:To achieve the above objective, an embodiment of the present invention provides a language translation method, where the method includes the following steps:
对原始信息进行翻译处理,获取初始翻译的信息;Translating the original information to obtain the initial translated information;
当接收到重新翻译指令时,结合历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息;When receiving the retranslation instruction, the original information is re-translated in conjunction with the historical conversation record to obtain the re-translated information;
将本次的对话信息添加到所述历史对话记录中。 Add this conversation information to the historical conversation record.
本发明实施例同时提出一种语言翻译装置,所述装置包括:The embodiment of the invention simultaneously provides a language translation device, the device comprising:
第一翻译模块,设置为对原始信息进行翻译处理,获取初始翻译的信息;a first translation module configured to perform translation processing on the original information to obtain information of the initial translation;
第二翻译模块,设置为当接收到重新翻译指令时,结合历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息;a second translation module, configured to re-translate the original information in combination with the historical conversation record to obtain re-translated information when receiving the re-translation instruction;
对话记录模块,设置为将本次的对话信息添加到所述历史对话记录中。The dialog recording module is configured to add the current conversation information to the historical conversation record.
本发明实施例还提出一种翻译设备,其包括存储器、处理器和至少一个被存储在所述存储器中并被配置为由所述处理器执行的应用程序,所述应用程序被配置为用于执行前述语言翻译方法。Embodiments of the present invention also provide a translation apparatus including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to be used for Perform the aforementioned language translation method.
发明的有益效果Advantageous effects of the invention
有益效果Beneficial effect
本发明实施例所提供的一种语言翻译方法,通过在翻译过程中记录历史对话记录,当独段翻译不够准确时,则结合历史对话记录重新对本次的原始信息进行翻译,由于历史对话记录中的历史对话信息与本次的原始信息可以形成完整的对话段落,通过解析整个对话段落可以更加准确的理解本次的原始信息,在此基础上得到的翻译结果则更加精准,从而极大的提高了翻译的准确性,提升了用户体验。A language translation method provided by an embodiment of the present invention records a historical conversation record in a translation process, and when the single-segment translation is not accurate enough, the original information is re-translated in conjunction with the historical conversation record, because the historical dialogue record The historical dialogue information and the original information in this time can form a complete dialogue paragraph. By parsing the entire dialogue paragraph, the original information can be more accurately understood, and the translation result obtained on this basis is more precise, thus greatly Improve the accuracy of translation and enhance the user experience.
对附图的简要说明Brief description of the drawing
附图说明DRAWINGS
图1是本发明的语言翻译方法一实施例的流程图;1 is a flow chart of an embodiment of a language translation method of the present invention;
图2是本发明实施例中的历史对话记录的示意图;2 is a schematic diagram of historical conversation records in an embodiment of the present invention;
图3是本发明实施例中的历史对话记录的又一示意图;3 is another schematic diagram of historical conversation records in an embodiment of the present invention;
图4是图1中步骤S12的具体流程图;Figure 4 is a specific flow chart of step S12 of Figure 1;
图5是图1中步骤S12的又一具体流程图;Figure 5 is another specific flow chart of step S12 of Figure 1;
图6是图1中步骤S12的又一具体流程图;Figure 6 is another specific flow chart of step S12 of Figure 1;
图7是本发明的语言翻译装置一实施例的模块示意图;Figure 7 is a block diagram showing an embodiment of a language translation apparatus of the present invention;
图8是图7中的第二翻译模块的模块示意图;Figure 8 is a block diagram of the second translation module of Figure 7;
图9是图7中的第二翻译模块的又一模块示意图;9 is another block diagram of the second translation module of FIG. 7;
图10是图7中的第二翻译模块的又一模块示意图。 FIG. 10 is another block diagram of the second translation module of FIG. 7.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
实施该发明的最佳实施例BEST MODE FOR CARRYING OUT THE INVENTION
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能解释为对本发明的限制。The embodiments of the present invention are described in detail below, and the examples of the embodiments are illustrated in the drawings, wherein the same or similar reference numerals are used to refer to the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are intended to be illustrative of the invention and are not to be construed as limiting.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本发明的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。应该理解,当我们称元件被“连接”或“耦接”到另一元件时,它可以直接连接或耦接到其他元件,或者也可以存在中间元件。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的措辞“和/或”包括一个或更多个相关联的列出项的全部或任一单元和全部组合。The singular forms "a", "an", "the" It is to be understood that the phrase "comprise" or "an" Integers, steps, operations, components, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element. Further, "connected" or "coupled" as used herein may include either a wireless connection or a wireless coupling. The phrase "and/or" used herein includes all or any one and all combinations of one or more of the associated listed.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本发明所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art will appreciate that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the invention belongs, unless otherwise defined. It should also be understood that terms such as those defined in a general dictionary should be understood to have meaning consistent with the meaning in the context of the prior art, and will not be idealized or excessive unless specifically defined as here. The formal meaning is explained.
本技术领域技术人员可以理解,这里所使用的“终端”、“终端设备”既包括无线信号接收器的设备,其仅具备无发射能力的无线信号接收器的设备,又包括接收和发射硬件的设备,其具有能够在双向通信链路上,执行双向通信的接收和发射硬件的设备。这种设备可以包括:蜂窝或其他通信设备,其具有单线路显示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备;PCS(Personal Communications Service,个人通信系统),其可以组合语音、数据处理、传真 和/或数据通信能力;PDA(Personal Digital Assistant,个人数字助理),其可以包括射频接收器、寻呼机、互联网/内联网访问、网络浏览器、记事本、日历和/或GPS(Global Positioning System,全球定位系统)接收器;常规膝上型和/或掌上型计算机或其他设备,其具有和/或包括射频接收器的常规膝上型和/或掌上型计算机或其他设备。这里所使用的“终端”、“终端设备”可以是便携式、可运输、安装在交通工具(航空、海运和/或陆地)中的,或者适合于和/或配置为在本地运行,和/或以分布形式,运行在地球和/或空间的任何其他位置运行。这里所使用的“终端”、“终端设备”还可以是通信终端、上网终端、音乐/视频播放终端,例如可以是PDA、MID(Mobile Internet Device,移动互联网设备)和/或具有音乐/视频播放功能的移动电话,也可以是智能电视、机顶盒等设备。Those skilled in the art can understand that the "terminal" and "terminal device" used herein include both a wireless signal receiver device, a device having only a wireless signal receiver without a transmitting capability, and a receiving and transmitting hardware. A device having a device capable of performing two-way communication receiving and transmitting hardware on a two-way communication link. Such devices may include cellular or other communication devices having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which may combine voice, data Processing, fax And/or data communication capabilities; PDA (Personal Digital Assistant), which may include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars, and/or GPS (Global Positioning System, Global Positioning System) Receiver; conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver. As used herein, "terminal", "terminal device" may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed form. The "terminal" and "terminal device" used herein may also be a communication terminal, an internet terminal, a music/video playing terminal, and may be, for example, a PDA, a MID (Mobile Internet Device), and/or have a music/video playback. Functional mobile phones can also be smart TVs, set-top boxes and other devices.
本技术领域技术人员可以理解,这里所使用的服务器,其包括但不限于计算机、网络主机、单个网络服务器、多个网络服务器集或多个服务器构成的云。在此,云由基于云计算(Cloud Computing)的大量计算机或网络服务器构成,其中,云计算是分布式计算的一种,由一群松散耦合的计算机集组成的一个超级虚拟计算机。本发明的实施例中,服务器、终端设备与WNS服务器之间可通过任何通信方式实现通信,包括但不限于,基于3GPP、LTE、WIMAX的移动通信、基于TCP/IP、UDP协议的计算机网络通信以及基于蓝牙、红外传输标准的近距无线传输方式。Those skilled in the art can understand that the server used herein includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud composed of a plurality of servers. Here, the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers. In the embodiment of the present invention, communication can be implemented by any communication means between the server, the terminal device and the WNS server, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, and computer network communication based on TCP/IP and UDP protocols. And short-range wireless transmission based on Bluetooth and infrared transmission standards.
本发明实施例的语言翻译方法和装置,主要应用于翻译设备,所述翻译设备可以是专门的翻译机,也可以是手机、平板等终端设备。The language translation method and apparatus of the embodiments of the present invention are mainly applied to a translation device, and the translation device may be a special translation machine, or may be a terminal device such as a mobile phone or a tablet.
参照图1,提出本发明的语言翻译方法一实施例,所述方法包括以下步骤:Referring to FIG. 1, an embodiment of a language translation method of the present invention is proposed. The method includes the following steps:
S11、对原始信息进行翻译处理,获取初始翻译的信息。S11: Perform translation processing on the original information to obtain information of the initial translation.
翻译设备接收用户输入的原始信息,并对原始信息进行翻译处理,获取初始翻译的信息。翻译设备可以在本地翻译原始信息,将原始信息从一种语言翻译为另一种语言,得到初始翻译的信息。翻译设备也可以通过服务器翻译原始信息,即:翻译设备将原始信息发送给服务器,服务器将原始信息从一种语言翻译为另一种语言并返回给翻译设备,翻译设备接收服务器初始翻译的信息。The translation device receives the original information input by the user, and performs translation processing on the original information to obtain the initially translated information. The translation device can translate the original information locally, translate the original information from one language to another, and get the initial translated information. The translation device can also translate the original information through the server, that is, the translation device sends the original information to the server, the server translates the original information from one language to another and returns to the translation device, and the translation device receives the information originally translated by the server.
所述原始信息为用户输入的语音信息,在其它实施例中,也可以是文字信息或 其它形式的信息,本发明对此不作限定。The original information is voice information input by the user, and in other embodiments, may also be text information or Other forms of information are not limited by the present invention.
S12、当接收到重新翻译指令时,结合历史对话记录重新对原始信息进行翻译处理,获取重新翻译的信息。S12. When receiving the retranslation instruction, re-translating the original information with the historical conversation record to obtain the re-translated information.
翻译设备获取初始翻译的信息后,可以直接输出该信息,也可以发送该信息给另一个用户的蓝牙耳机,由该蓝牙耳机输出该信息。如果用户对本次翻译的信息不满意(如感觉翻译得不够准确,难以理解),可以向翻译设备发布重新翻译指令,例如通过触发翻译设备的特定按键来发布重新翻译指令,翻译设备接收到重新翻译指令后,则结合两个用户之间的历史对话记录重新对原始信息进行翻译处理,获取重新翻译的信息。After the translation device obtains the information of the initial translation, the information may be directly output, or the information may be sent to another user's Bluetooth headset, and the information is output by the Bluetooth headset. If the user is dissatisfied with the information of the translation (such as feeling that the translation is not accurate enough, it is difficult to understand), the retranslation instruction can be issued to the translation device, for example, by triggering a specific button of the translation device to issue a retranslation instruction, and the translation device receives the re After the translation instruction, the original information is re-translated in combination with the historical conversation record between the two users to obtain the re-translated information.
所述历史对话记录,是翻译设备在翻译过程中记录和存储的两个用户轮流交谈时的完整对话信息。翻译设备可以按照时间从早到晚的顺序或按照记录信息的次数对历史对话记录中的每一段话进行排序,并可以对每一段话进行顺序标记。历史对话记录中的一段话,即一个用户一次对话的信息。The historical conversation record is complete dialogue information when the two users record and store the translation process during the translation process. The translation device can sort each of the segments in the historical conversation record in order from time to time or from the number of times the information is recorded, and can sequentially mark each segment. A passage in the historical conversation record, that is, a message of a user's conversation.
在某些实施例中,历史对话记录中存储的都是用户输入的原始信息,该原始信息包括两个用户所对应的两种语言。如图2所示,历史对话记录中共有N段话,包含了A用户和B用户的完整对话信息,其中:A用户的对话信息为A用户输入的原始信息,为A语言;B用户的对话信息为B用户输入的原始信息,为B语言。In some embodiments, the historical conversation record stores the original information input by the user, and the original information includes two languages corresponding to the two users. As shown in Figure 2, there are a total of N paragraphs in the historical conversation record, including the complete dialogue information of the A user and the B user, wherein: the dialogue information of the A user is the original information input by the A user, and is the A language; the dialogue of the B user The information is the original information entered by the B user and is in B language.
在另一些实施例中,历史对话记录包括两种语言的历史对话记录,每种语言的历史对话记录都包含了两个用户的完整对话信息。如图3所示,为A语言的历史对话记录和B语言的历史对话记录,每种语言的对话记录中都有N段话,包含了A用户和B用户的完整对话信息,其中;A语言的历史对话记录中包括A用户输入的原始信息,以及将B用户输入的原始信息翻译为A语言后的信息;B语言的历史对话记录中包括B用户输入的原始信息,以及将A用户输入的原始信息翻译为B语言后的信息。In other embodiments, the historical conversation record includes historical conversation records in two languages, and the historical conversation record for each language contains the complete conversation information for the two users. As shown in Figure 3, for the historical dialogue record of the A language and the historical dialogue record of the B language, there are N paragraphs in the dialogue record of each language, including the complete dialogue information of the A user and the B user, wherein; A language The historical conversation record includes the original information input by the A user, and the information after translating the original information input by the B user into the A language; the historical conversation record of the B language includes the original information input by the B user, and the input of the A user. The original information is translated into information after the B language.
可选地,翻译设备结合预存的历史对话记录重新对原始信息进行翻译处理的具体流程可以如图4所示,包括以下步骤:Optionally, the specific process for the translation device to re-translate the original information in combination with the pre-stored historical conversation record may be as shown in FIG. 4, including the following steps:
S101、根据时间从晚到早的顺序逐次往前回溯历史对话记录中的历史对话信息。 S101. Backtracking the historical conversation information in the historical conversation record one by one according to the time from late to early.
S102、结合历史对话信息重新对原始信息进行翻译处理。S102: Re-translating the original information by combining the historical conversation information.
S103、判断重新翻译处理后得到的信息与初始翻译的信息是否一致。当一致时,返回步骤S101;当不一致时,执行下一步骤S104。S103. Determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation. When they are the same, the process returns to step S101; when they are not the same, the next step S104 is performed.
S104、获取本次重新翻译处理后得到的信息作为重新翻译的信息。S104. Acquire information obtained after the current retranslation processing as retranslated information.
本发明实施例中,翻译设备每次往前回溯一段历史对话信息,当然,在其它实施例中,也可以每次往前回溯至少两段历史对话信息。In the embodiment of the present invention, the translation device traces back a piece of historical conversation information each time. Of course, in other embodiments, at least two pieces of historical conversation information may be traced back each time.
举例而言:首次回溯时,翻译设备选取历史对话记录中的最后一段话(即上一次存储的对话信息)作为历史对话信息,并将这最后一段话与本次的原始信息(即待翻译的信息)组合成一个对话段落,理解或解析整个对话段落所表达的意思,再根据整个对话段落所表达的意思重新对该原始信息进行翻译处理;当翻译处理后的信息与初始翻译的信息一致时,则再次往前回溯,选取历史对话记录中的最后两段话作为历史对话信息并重新对原始信息进行翻译处理......;依次类推,直到重新翻译处理后得到的信息与初始翻译的信息不一致为止,此时获取本次重新翻译处理后得到的信息作为重新翻译的信息。因为重新翻译的信息与初始翻译的信息不一致时,说明重新翻译时可能已对初始翻译时的错误进行了纠正,可能翻译得更加准确,能够让用户满意。For example: when the first backtracking, the translation device selects the last paragraph in the historical conversation record (that is, the last stored conversation information) as the historical conversation information, and the last paragraph and the original information (ie, to be translated) Information) is combined into a dialogue paragraph, understanding or parsing the meaning expressed in the entire dialogue paragraph, and then re-translating the original information according to the meaning expressed in the entire dialogue paragraph; when the translated information is consistent with the initial translated information , then go back again, select the last two paragraphs in the historical dialogue record as the historical dialogue information and re-translate the original information...; and so on, until the information obtained after the retranslation process and the initial translation When the information is inconsistent, the information obtained after the current retranslation processing is acquired as the retranslated information. Because the re-translated information is inconsistent with the initial translated information, it may indicate that the error in the initial translation may have been corrected during the re-translation, and the translation may be more accurate and satisfactory to the user.
在回溯历史对话信息时,如果有两种语言的历史对话记录,则选取与本次的原始信息具有相同语言的历史对话记录,以便于更准确的理解对话段落的意思,例如,翻译设备本次接收到的原始信息为A语言,则选取A语言的历史对话记录,在A语言的历史对话记录中回溯历史对话信息。如果只有一个历史对话记录,该对话记录中具有两种语言的对话信息,为了便于更好的理解对话段落的意思,翻译设备可以将历史对话信息中与原始信息的语言不同的对话信息翻译处理为与原始信息的语言相同的对话信息,当然翻译设备也可以不进行翻译处理,本发明对此不作限定。When backtracking historical conversation information, if there are historical dialogue records in two languages, select the historical conversation record in the same language as the original information of this time, in order to more accurately understand the meaning of the dialogue paragraph, for example, the translation device this time When the original information received is in the A language, the historical dialogue record of the A language is selected, and the historical dialogue information is backtracked in the history dialogue record of the A language. If there is only one historical conversation record, the conversation record has dialogue information in two languages. In order to better understand the meaning of the dialogue paragraph, the translation device can translate the conversation information in the historical conversation information different from the language of the original information into The dialog information that is the same as the language of the original information, of course, the translation device may not perform the translation processing, which is not limited by the present invention.
可选地,翻译设备结合预存的历史对话记录重新对原始信息进行翻译处理的具体流程也可以如图5所示,包括以下步骤:Optionally, the specific process for the translation device to re-translate the original information in combination with the pre-stored historical conversation record may also be as shown in FIG. 5, including the following steps:
S201、根据时间从晚到早的顺序逐次往前回溯历史对话记录中的历史对话信息. S201: Backtracking the historical dialogue information in the historical dialogue record one by one according to the time from late to early.
S202、结合历史对话信息重新对原始信息进行翻译处理。S202: Re-translating the original information by combining the historical dialogue information.
S203、判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致。当不一致时,返回步骤S201;当一致时,执行下一步骤S204。S203. Determine whether the information obtained after the current retranslation processing is consistent with the information obtained by any previous retranslation processing. When they are inconsistent, the process returns to step S201; when they are identical, the next step S204 is performed.
S204、获取本次重新翻译处理后得到的信息作为重新翻译的信息。S204. Acquire information obtained after the current retranslation processing as retranslated information.
本方案与前一方案的区别是,翻译设备将每次重新翻译处理后得到的信息与之前重新翻译处理后得到的所有信息进行比较,当与之前任意一次重新翻译处理后得到的信息一致时,则停止回溯和重新翻译,获取本次重新翻译处理后得到的信息作为重新翻译的信息。因为当两次结合不同的历史对话信息进行重新翻译而得到一致的翻译结果时,则这两次的翻译结果应该比较准确,能够让用户满意。The difference between this solution and the previous solution is that the translation device compares the information obtained after each retranslation process with all the information obtained after the previous retranslation process, and when it is consistent with the information obtained after any previous retranslation processing, Then, the backtracking and retranslation are stopped, and the information obtained after the retranslation processing is obtained as the retranslated information. Because when two translations are combined with different historical dialogue information to obtain consistent translation results, the two translation results should be more accurate and satisfy the user.
可选地,翻译设备结合预存的历史对话记录重新对原始信息进行翻译处理的具体流程还可以如图6所示,包括以下步骤:Optionally, the specific process for the translation device to re-translate the original information in combination with the pre-stored historical conversation record may also be as shown in FIG. 6, and includes the following steps:
S301、根据时间从晚到早的顺序逐次往前回溯历史对话记录中的历史对话信息.S301. Backtracking the historical dialogue information in the historical conversation record one by one according to the time from late to early.
S302、结合历史对话信息重新对原始信息进行翻译处理。S302: Re-translating the original information by combining the historical conversation information.
S303、判断重新翻译处理后得到的信息与初始翻译的信息是否一致。当一致时,返回步骤S301;当不一致时,执行下一步骤S304。S303. Determine whether the information obtained after the retranslation process is consistent with the information of the initial translation. When they are consistent, the process returns to step S301; when not, the next step S304 is performed.
S304、判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致。当不一致时,返回步骤S301;当一致时,执行下一步骤S305。S304. Determine whether the information obtained after the current retranslation processing is consistent with the information obtained after any previous retranslation processing. When they are inconsistent, the process returns to step S301; when they are identical, the next step S305 is performed.
S305、获取本次重新翻译处理后得到的信息作为重新翻译的信息。S305. Acquire information obtained after the current retranslation processing as retranslated information.
本方案将前述两个方案结合起来,翻译设备将每次重新翻译处理后得到的信息分别与初始翻译的信息和之前重新翻译处理后得到的所有信息进行比较,当与初始翻译的信息不一致,且与之前任意一次重新翻译处理后得到的信息一致时,则停止回溯和重新翻译,获取本次重新翻译处理后得到的信息作为重新翻译的信息。从而最大限定的提高了翻译结果的准确性。The scheme combines the foregoing two schemes, and the translation device compares the information obtained after each retranslation processing with the information of the initial translation and all the information obtained by the previous retranslation processing, when the information is inconsistent with the initial translation, and When it is consistent with the information obtained after any previous retranslation processing, the backtracking and retranslation are stopped, and the information obtained after the retranslation processing is obtained as the retranslated information. Thus the maximum limit improves the accuracy of the translation results.
当获取重新翻译的信息后,翻译设备可以直接输出该信息,也可以发送该信息 给另一个用户的蓝牙耳机,由该蓝牙耳机输出该信息。After obtaining the re-translated information, the translation device can directly output the information or send the information. To another user's Bluetooth headset, the Bluetooth headset outputs the information.
S13、将本次的对话信息添加到历史对话记录中。S13. Add the current conversation information to the historical conversation record.
当本次翻译完成时,翻译设备则将本次的对话信息添加到历史对话记录中,如自动添加到历史对话记录的末尾并进行标记。When the translation is completed, the translation device adds the current conversation information to the historical conversation record, such as automatically adding to the end of the historical conversation record and marking.
当历史对话记录只有一个时,翻译设备则将本次的原始信息(即本次用户输入的对话信息)添加到历史对话记录中。When there is only one historical conversation record, the translation device adds the original information of this time (that is, the conversation information input by the user) to the historical conversation record.
当历史对话记录包括两种语言的历史对话记录时,翻译设备则分别将本次的原始信息(即本次用户输入的对话信息)和翻译的信息(即本次向用户输出的对话信息)添加到对应语言的历史对话记录中。例如,本次的原始信息的语言为B语言,则将原始信息添加到B语言的历史对话记录中,将翻译的信息添加到A语言的历史对话记录中,这里所述的翻译的信息,若进行了重新翻译则为重新翻译的信息,若没有进行重新翻译则为初始翻译的信息。When the historical conversation record includes historical conversation records of two languages, the translation device adds the original information of the current time (that is, the conversation information input by the user) and the translated information (that is, the conversation information output to the user this time). Go to the historical conversation record of the corresponding language. For example, if the language of the original information is B language, the original information is added to the history dialogue record of the B language, and the translated information is added to the history dialogue record of the A language, and the translated information described herein, if The information that was re-translated is re-translated, and if it is not re-translated, it is the information of the initial translation.
举例而言,假设本次的原始信息为英文,需要翻译为中文。该原始信息中有一个单词为“claims”,首次翻译时被翻译为“声称”,当重新翻译时,发现历史对话信息中出现了“patent”(专利),则翻译设备就可以把“claims”修正翻译为“权利要求书”。For example, suppose the original information in this time is in English and needs to be translated into Chinese. One word in the original message is “claims”, which is translated as “claim” when first translated. When “repat” is found, “patent” appears in the historical dialogue information, then the translation device can “claims” Amend the translation to "claims."
本发明实施例的语言翻译方法,通过在翻译过程中记录历史对话记录,当独段翻译不够准确时,则结合历史对话记录重新对本次的原始信息进行翻译,由于历史对话记录中的历史对话信息与本次的原始信息可以形成完整的对话段落,通过解析整个对话段落可以更加准确的理解本次的原始信息,在此基础上得到的翻译结果则更加精准,从而极大的提高了翻译的准确性,提升了用户体验。The language translation method of the embodiment of the present invention records the historical conversation record in the translation process. When the single-segment translation is not accurate enough, the original information is re-translated in combination with the historical dialogue record, because the historical dialogue in the historical dialogue record The information and the original information of this time can form a complete dialogue paragraph. By parsing the entire dialogue paragraph, the original information can be more accurately understood, and the translation result obtained on this basis is more accurate, which greatly improves the translation. Accuracy improves the user experience.
参照图7,提出本发明的语言翻译装置一实施例,所述装置包括第一翻译模块10、第二翻译模块20和对话记录模块30,其中:第一翻译模块10,设置为对原始信息进行翻译处理,获取初始翻译的信息;第二翻译模块20,设置为当接收到重新翻译指令时,结合历史对话记录重新对原始信息进行翻译处理,获取重新翻译的信息;对话记录模块30,设置为将本次的对话信息添加到历史对话记录中。Referring to FIG. 7, an embodiment of a language translation apparatus of the present invention is provided. The apparatus includes a first translation module 10, a second translation module 20, and a conversation recording module 30, wherein: the first translation module 10 is configured to perform original information. Translating processing, obtaining information of the initial translation; the second translation module 20 is configured to, when receiving the retranslation instruction, re-translate the original information in conjunction with the historical conversation record to obtain re-translated information; the dialog recording module 30 is configured to Add this conversation information to the history conversation record.
第一翻译模块10接收用户输入的原始信息,并对原始信息进行翻译处理,获取 初始翻译的信息。第一翻译模块10可以在本地翻译原始信息,将原始信息从一种语言翻译为另一种语言,得到初始翻译的信息。第一翻译模块10也可以通过服务器翻译原始信息,即:第一翻译模块10将原始信息发送给服务器,服务器将原始信息从一种语言翻译为另一种语言并返回给第一翻译模块10,第一翻译模块10接收服务器初始翻译的信息。The first translation module 10 receives the original information input by the user, and performs translation processing on the original information to obtain Initial translation information. The first translation module 10 can translate the original information locally, translate the original information from one language to another, and obtain the initially translated information. The first translation module 10 can also translate the original information through the server, that is, the first translation module 10 sends the original information to the server, and the server translates the original information from one language to another and returns to the first translation module 10. The first translation module 10 receives the information originally translated by the server.
所述原始信息为用户输入的语音信息,在其它实施例中,也可以是文字信息,本发明对此不作限定。The original information is voice information input by the user, and may be text information in other embodiments, which is not limited by the present invention.
第二翻译模块20接收到重新翻译指令后,则结合两个用户之间的历史对话记录重新对原始信息进行翻译处理,获取重新翻译的信息。所述历史对话记录,是翻译设备在翻译过程中记录和存储的两个用户轮流交谈时的完整对话信息。翻译设备可以按照时间从早到晚的顺序或按照记录信息的次数对历史对话记录中的每一段话进行排序,并可以对每一段话进行顺序标记。历史对话记录中的一段话,即一个用户一次对话的信息。After receiving the retranslation instruction, the second translation module 20 re-translates the original information in combination with the historical conversation record between the two users to obtain the re-translated information. The historical conversation record is complete dialogue information when the two users record and store the translation process during the translation process. The translation device can sort each of the segments in the historical conversation record in order from time to time or from the number of times the information is recorded, and can sequentially mark each segment. A passage in the historical conversation record, that is, a message of a user's conversation.
在某些实施例中,历史对话记录中存储的都是用户输入的原始信息,该原始信息包括两个用户所对应的两种语言。如图2所示,历史对话记录中共有N段话,包含了A用户和B用户的完整对话信息,其中:A用户的对话信息为A用户输入的原始信息,为A语言;B用户的对话信息为B用户输入的原始信息,为B语言。In some embodiments, the historical conversation record stores the original information input by the user, and the original information includes two languages corresponding to the two users. As shown in Figure 2, there are a total of N paragraphs in the historical conversation record, including the complete dialogue information of the A user and the B user, wherein: the dialogue information of the A user is the original information input by the A user, and is the A language; the dialogue of the B user The information is the original information entered by the B user and is in B language.
在另一些实施例中,历史对话记录包括两种语言的历史对话记录,每种语言的历史对话记录都包含了两个用户的完整对话信息。如图3所示,包括A语言的历史对话记录和B语言的历史对话记录,每种语言的对话记录中都有N段话,包含了A用户和B用户的完整对话信息,其中;A语言的历史对话记录中包括A用户输入的原始信息,以及将B用户输入的原始信息翻译为A语言后的信息;B语言的历史对话记录中包括B用户输入的原始信息,以及将A用户输入的原始信息翻译为B语言后的信息。In other embodiments, the historical conversation record includes historical conversation records in two languages, and the historical conversation record for each language contains the complete conversation information for the two users. As shown in Figure 3, including the historical dialogue record of the A language and the historical dialogue record of the B language, there are N paragraphs in the dialogue record of each language, including the complete dialogue information of the A user and the B user, wherein; A language The historical conversation record includes the original information input by the A user, and the information after translating the original information input by the B user into the A language; the historical conversation record of the B language includes the original information input by the B user, and the input of the A user. The original information is translated into information after the B language.
可选地,第二翻译模块20可以如图8所示,包括回溯单元21、翻译单元22、第一判断单元23、第一获取单元24和第一通知单元25,其中:回溯单元21,设置为根据时间从晚到早的顺序逐次往前回溯历史对话记录中的历史对话信息;翻译单元22,设置为结合历史对话信息重新对原始信息进行翻译处理;第一判断 单元23,设置为判断重新翻译处理后得到的信息与初始翻译的信息是否一致;第一获取单元24,设置为当重新翻译处理后得到的信息与初始翻译的信息不一致时,获取本次重新翻译处理后得到的信息作为重新翻译的信息;第一通知单元25,设置为当重新翻译处理后得到的信息与初始翻译的信息一致时,通知回溯单元21再次往前回溯历史对话记录中的历史对话信息。Optionally, the second translation module 20, as shown in FIG. 8, includes a backtracking unit 21, a translation unit 22, a first determining unit 23, a first obtaining unit 24, and a first notification unit 25, wherein: the backtracking unit 21, is set The historical dialogue information in the historical dialogue record is successively traced back in order from the late to the early according to the time; the translation unit 22 is configured to re-translate the original information in combination with the historical dialogue information; the first judgment The unit 23 is configured to determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation; the first obtaining unit 24 is configured to obtain the retranslation when the information obtained after the retranslation processing is inconsistent with the information originally translated. The information obtained after the processing is used as the re-translated information; the first notification unit 25 is configured to notify the backtracking unit 21 to go back to the historical conversation in the historical conversation record again when the information obtained after the re-translation processing coincides with the information of the initial translation. information.
本发明实施例中,回溯单元21每次往前回溯一段历史对话信息,当然,在其它实施例中,也可以每次往前回溯至少两段历史对话信息。In the embodiment of the present invention, the backtracking unit 21 traces back a piece of historical conversation information each time. Of course, in other embodiments, at least two pieces of historical conversation information may be traced back each time.
举例而言:首次回溯时,回溯单元21选取历史对话记录中的最后一段话(即上一次存储的对话信息)作为历史对话信息,翻译单元22将这最后一段话与本次的原始信息(即待翻译的信息)组合成一个对话段落,理解整个对话段落所表达的意思,再根据整个对话段落所表达的意思重新对该原始信息进行翻译处理;当翻译处理后的信息与初始翻译的信息一致时,第一通知单元25则通知回溯单元21再次往前回溯,选取历史对话记录中的最后两段话作为历史对话信息并由翻译单元22重新对原始信息进行翻译处理......;依次类推,直到重新翻译处理后得到的信息与初始翻译的信息不一致为止,此时第一获取单元24获取本次重新翻译处理后得到的信息作为重新翻译的信息。因为重新翻译的信息与初始翻译的信息不一致时,说明重新翻译时可能已对初始翻译时的错误进行了纠正,可能翻译得更加准确,能够让用户满意。For example, when the first backtracking, the backtracking unit 21 selects the last paragraph in the historical conversation record (ie, the last stored conversation information) as the historical conversation information, and the translation unit 22 compares the last paragraph with the current original information (ie, The information to be translated is combined into a dialogue paragraph, understanding the meaning expressed in the entire dialogue paragraph, and then re-translating the original information according to the meaning expressed in the entire dialogue paragraph; when the translated information is consistent with the initial translated information The first notification unit 25 notifies the backtracking unit 21 to go back again, selects the last two paragraphs in the historical conversation record as historical conversation information, and re-translates the original information by the translation unit 22... By analogy, until the information obtained after the retranslation processing is inconsistent with the information of the initial translation, the first obtaining unit 24 acquires the information obtained after the current retranslation processing as the retranslated information. Because the re-translated information is inconsistent with the initial translated information, it may indicate that the error in the initial translation may have been corrected during the re-translation, and the translation may be more accurate and satisfactory to the user.
在回溯历史对话信息时,如果有两种语言的历史对话记录,回溯单元21则选取与本次的原始信息具有相同语言的历史对话记录,以便于更准确的理解对话段落的意思,例如,翻译设备本次接收到的原始信息为A语言,回溯单元21则选取A语言的历史对话记录,在A语言的历史对话记录中回溯历史对话信息。如果只有一个历史对话记录,该对话记录中具有两种语言的对话信息,为了便于更好的理解对话段落的意思,翻译单元22可以将历史对话信息中与原始信息的语言不同的对话信息翻译处理为与原始信息的语言相同的对话信息,当然翻译设备也可以不进行翻译处理,本发明对此不作限定。When backtracking historical conversation information, if there is a historical dialogue record in two languages, the backtracking unit 21 selects a historical dialogue record having the same language as the original information of this time, so as to more accurately understand the meaning of the dialogue paragraph, for example, translation The original information received by the device this time is the A language, and the backtracking unit 21 selects the historical dialogue record of the A language, and backtracks the historical dialogue information in the history dialogue record of the A language. If there is only one historical conversation record, the conversation record has conversation information of two languages. In order to better understand the meaning of the conversation paragraph, the translation unit 22 can translate the conversation information in the historical conversation information different from the language of the original information. For the same dialog information as the language of the original information, of course, the translation device may not perform the translation processing, which is not limited by the present invention.
可选地,第二翻译模块20也可以如图9所示,包括回溯单元21、翻译单元22、第二判断单元26、第二获取单元27和第二通知单元28,其中:回溯单元21,设 置为根据时间从晚到早的顺序逐次往前回溯历史对话记录中的历史对话信息;翻译单元22,设置为结合历史对话信息重新对原始信息进行翻译处理;第二判断单元26,设置为判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致;第二获取单元27,设置为当本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息一致时,获取本次重新翻译处理后得到的信息作为重新翻译的信息;第二通知单元28,设置为当本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息不一致时,通知回溯单元21再次往前回溯历史对话记录中的历史对话信息。Optionally, the second translation module 20 may also include a backtracking unit 21, a translation unit 22, a second determining unit 26, a second obtaining unit 27, and a second notifying unit 28, as shown in FIG. 9, wherein: the backtracking unit 21, Assume The historical dialogue information in the historical dialogue record is successively traced back in the order from time to time according to the time; the translation unit 22 is configured to re-translate the original information in combination with the historical dialogue information; the second determining unit 26 is set to determine Whether the information obtained after the retranslation processing is consistent with the information obtained by any previous retranslation processing; the second obtaining unit 27 is configured to obtain the information obtained after the current retranslation processing and the previous retranslation processing. When the information is consistent, the information obtained after the current retranslation processing is acquired as the retranslated information; the second notification unit 28 is set to the information obtained after the current retranslation processing and the information obtained after any previous retranslation processing. When there is an inconsistency, the backtracking unit 21 is notified to go back to the historical conversation information in the history conversation record.
本方案与前一方案的区别是,第二判断单元26将每次重新翻译处理后得到的信息与之前重新翻译处理后得到的所有信息进行比较,当与之前任意一次重新翻译处理后得到的信息一致时,回溯单元21和翻译单元22则停止回溯和重新翻译,第二获取单元27则获取本次重新翻译处理后得到的信息作为重新翻译的信息。因为当两次结合不同的历史对话信息进行重新翻译而得到一致的翻译结果时,则这两次的翻译结果应该比较准确,能够让用户满意。The difference between the present solution and the previous solution is that the second judging unit 26 compares the information obtained after each retranslation process with all the information obtained after the previous retranslation process, and obtains the information obtained after re-translating any previous time. When they are consistent, the backtracking unit 21 and the translation unit 22 stop the backtracking and retranslation, and the second obtaining unit 27 obtains the information obtained after the current retranslation processing as the retranslated information. Because when two translations are combined with different historical dialogue information to obtain consistent translation results, the two translation results should be more accurate and satisfy the user.
可选地,第二翻译模块20还可以如图10所示,包括回溯单元21、翻译单元22、第一判断单元23、第二判断单元26、第三获取单元29和第三通知单元30,其中:回溯单元21,设置为根据时间从晚到早的顺序逐次往前回溯历史对话记录中的历史对话信息;翻译单元22,设置为结合历史对话信息重新对原始信息进行翻译处理;第一判断单元23,设置为判断重新翻译处理后得到的信息与初始翻译的信息是否一致;第二判断单元26,设置为当重新翻译处理后得到的信息与初始翻译的信息不一致时,判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致;第三获取单元29,设置为当本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息一致时,获取本次重新翻译处理后得到的信息作为重新翻译的信息;第三通知单元30,设置为当重新翻译处理后得到的信息与初始翻译的信息一致,或者本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息不一致时,通知回溯单元21再次往前回溯历史对话记录中的历史对话信息。Optionally, the second translation module 20 may further include a backtracking unit 21, a translation unit 22, a first determining unit 23, a second determining unit 26, a third obtaining unit 29, and a third notifying unit 30, as shown in FIG. The backtracking unit 21 is configured to backtrack the historical conversation information in the historical conversation record one by one according to the time from late to early; the translation unit 22 is configured to re-translate the original information in combination with the historical dialogue information; The unit 23 is configured to determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation; the second determining unit 26 is configured to determine that the retranslation is performed when the information obtained after the retranslation processing is inconsistent with the information originally translated. Whether the information obtained after the processing is consistent with the information obtained by any previous retranslation processing; the third obtaining unit 29 is configured to match the information obtained after the current retranslation processing with the information obtained after any previous retranslation processing. Obtaining the information obtained after the retranslation processing as the retranslated information; the third notification unit 30 , when the information obtained after the retranslation processing is consistent with the information of the initial translation, or the information obtained after the retranslation processing is inconsistent with the information obtained by any previous retranslation processing, the backtracking unit 21 is notified to go back again. Historical dialogue information in historical dialogue records.
本方案将前述两个方案结合起来,第一判断单元23和第二判断单元26分别将每 次重新翻译处理后得到的信息与初始翻译的信息和之前重新翻译处理后得到的所有信息进行比较,当与初始翻译的信息不一致,且与之前任意一次重新翻译处理后得到的信息一致时,回溯单元21和翻译单元22则停止回溯和重新翻译,第三获取单元29则获取本次重新翻译处理后得到的信息作为重新翻译的信息。从而最大限定的提高了翻译结果的准确性。This solution combines the foregoing two solutions, and the first judging unit 23 and the second judging unit 26 respectively The information obtained after the retranslation processing is compared with the information of the initial translation and all the information obtained after the previous retranslation processing, and when it is inconsistent with the information of the initial translation, and is consistent with the information obtained after any previous retranslation processing, backtracking The unit 21 and the translation unit 22 stop the backtracking and retranslation, and the third obtaining unit 29 acquires the information obtained after the current retranslation processing as the retranslated information. Thus the maximum limit improves the accuracy of the translation results.
当本次翻译完成时,对话记录模块30则将本次的对话信息添加到历史对话记录中,如自动添加到历史对话记录的末尾并进行标记。When the translation is completed, the dialog recording module 30 adds the current conversation information to the historical conversation record, such as automatically adding to the end of the historical conversation record and marking.
当历史对话记录只有一个时,对话记录模块30则将本次的原始信息(即本次用户输入的对话信息)添加到历史对话记录中。When there is only one historical conversation record, the conversation record module 30 adds the original information of the current time (ie, the conversation information input by the user) to the historical conversation record.
当历史对话记录包括两种语言的历史对话记录时,对话记录模块30则分别将本次的原始信息(即本次用户输入的对话信息)和翻译的信息(即本次向用户输出的对话信息)添加到对应语言的历史对话记录中。例如,本次的原始信息的语言为B语言,对话记录模块30则将原始信息添加到B语言的历史对话记录中,将翻译的信息添加到A语言的历史对话记录中。这里所述的翻译的信息,若进行了重新翻译则为重新翻译的信息,若没有进行重新翻译则为初始翻译的信息。When the historical conversation record includes the historical conversation records of the two languages, the conversation record module 30 respectively sets the original information of the current time (ie, the conversation information input by the user) and the translated information (ie, the conversation information output to the user this time). ) is added to the historical conversation record of the corresponding language. For example, the language of the original information is B language, and the dialogue record module 30 adds the original information to the history dialogue record of the B language, and adds the translated information to the history dialogue record of the A language. The translated information described here is re-translated information if re-translated, and if it is not re-translated, it is the initial translated information.
本发明实施例的语言翻译装置,通过在翻译过程中记录历史对话记录,当独段翻译不够准确时,则结合历史对话记录重新对本次的原始信息进行翻译,由于历史对话记录中的历史对话信息与本次的原始信息可以形成完整的对话段落,通过解析整个对话段落可以更加准确的理解本次的原始信息,在此基础上得到的翻译结果则更加精准,从而极大的提高了翻译的准确性,提升了用户体验。The language translation apparatus of the embodiment of the present invention records the historical conversation record in the translation process. When the single-segment translation is not accurate enough, the original information is re-translated in combination with the historical conversation record, because the historical dialogue in the historical dialogue record The information and the original information of this time can form a complete dialogue paragraph. By parsing the entire dialogue paragraph, the original information can be more accurately understood, and the translation result obtained on this basis is more accurate, which greatly improves the translation. Accuracy improves the user experience.
本发明同时提出一种翻译设备,其包括存储器、处理器和至少一个被存储在存储器中并被配置为由处理器执行的应用程序,所述应用程序被配置为用于执行语言翻译方法。所述语言翻译方法包括以下步骤:对原始信息进行翻译处理,获取初始翻译的信息;当接收到重新翻译指令时,结合历史对话记录重新对原始信息进行翻译处理,获取重新翻译的信息;将本次的对话信息添加到历史对话记录中。本实施例中所描述的语言翻译方法为本发明中上述实施例所涉及的语言翻译方法,在此不再赘述。The invention also proposes a translation device comprising a memory, a processor and at least one application stored in the memory and configured to be executed by the processor, the application being configured to execute a language translation method. The language translation method comprises the following steps: performing translation processing on the original information to obtain information of the initial translation; and when receiving the re-translation instruction, re-translating the original information in combination with the historical conversation record to obtain re-translated information; The second conversation information is added to the history conversation record. The language translation method described in this embodiment is the language translation method involved in the foregoing embodiment of the present invention, and details are not described herein again.
本领域技术人员可以理解,本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。这些设备可以为所需的目的而专门设计和制造,或者也可以包括通用计算机中的已知设备。这些设备具有存储在其内的计算机程序,这些计算机程序选择性地激活或重构。这样的计算机程序可以被存储在设备(例如,计算机)可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何类型的介质中,所述计算机可读介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存储器)、EPROM(Erasable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,可读介质包括由设备(例如,计算机)以能够读的形式存储或传输信息的任何介质。Those skilled in the art will appreciate that the present invention encompasses one of the operations involved in performing the operations described herein. Item or item of equipment. These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer. These devices have computer programs stored therein that are selectively activated or reconfigured. Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and coupled to a bus, respectively, including but not limited to any Types of disks (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory) , EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or light card. That is, a readable medium includes any medium that is stored or transmitted by a device (eg, a computer) in a readable form.
本技术领域技术人员可以理解,可以用计算机程序指令来实现这些结构图和/或框图和/或流图中的每个框以及这些结构图和/或框图和/或流图中的框的组合。本技术领域技术人员可以理解,可以将这些计算机程序指令提供给通用计算机、专业计算机或其他可编程数据处理方法的处理器来实现,从而通过计算机或其他可编程数据处理方法的处理器来执行本发明公开的结构图和/或框图和/或流图的框或多个框中指定的方案。Those skilled in the art will appreciate that each block of the block diagrams and/or block diagrams and/or flow diagrams and combinations of blocks in the block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions. . Those skilled in the art will appreciate that these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method. The blocks of the disclosed structure and/or block diagrams and/or flow diagrams or blocks specified in the various blocks.
本技术领域技术人员可以理解,本发明中已经讨论过的各种操作、方法、流程中的步骤、措施、方案可以被交替、更改、组合或删除。进一步地,具有本发明中已经讨论过的各种操作、方法、流程中的其他步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。进一步地,现有技术中的具有与本发明中公开的各种操作、方法、流程中的步骤、措施、方案也可以被交替、更改、重排、分解、组合或删除。Those skilled in the art can understand that the steps, measures, and solutions in the various operations, methods, and processes that have been discussed in the present invention may be alternated, changed, combined, or deleted. Further, other steps, measures, and schemes of the various operations, methods, and processes that have been discussed in the present invention may be alternated, modified, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and solutions in the prior art having various operations, methods, and processes disclosed in the present invention may also be alternated, changed, rearranged, decomposed, combined, or deleted.
以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。 The above is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.

Claims (15)

  1. 一种语言翻译方法,包括以下步骤:A language translation method comprising the following steps:
    对原始信息进行翻译处理,获取初始翻译的信息;Translating the original information to obtain the initial translated information;
    当接收到重新翻译指令时,结合历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息;When receiving the retranslation instruction, the original information is re-translated in conjunction with the historical conversation record to obtain the re-translated information;
    将本次的对话信息添加到所述历史对话记录中。Add this conversation information to the historical conversation record.
  2. 根据权利要求1所述的语言翻译方法,其中,所述结合预存的历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息的步骤包括:The language translation method according to claim 1, wherein the combining the pre-stored historical conversation record to re-translate the original information, and the step of acquiring the re-translated information comprises:
    S101、根据时间从晚到早的顺序逐次往前回溯所述历史对话记录中的历史对话信息;S101. Backtracking the historical conversation information in the historical conversation record one by one according to the time from late to early;
    S102、结合所述历史对话信息重新对所述原始信息进行翻译处理;S102. Perform retranslation processing on the original information in combination with the historical conversation information.
    S103、判断重新翻译处理后得到的信息与所述初始翻译的信息是否一致;当一致时,返回步骤S101;当不一致时,执行下一步骤;S103. Determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation; when they are consistent, return to step S101; when they are inconsistent, perform the next step;
    S104、获取本次重新翻译处理后得到的信息作为重新翻译的信息。S104. Acquire information obtained after the current retranslation processing as retranslated information.
  3. 根据权利要求1所述的语言翻译方法,其中,所述结合预存的历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息的步骤包括:The language translation method according to claim 1, wherein the combining the pre-stored historical conversation record to re-translate the original information, and the step of acquiring the re-translated information comprises:
    S201、根据时间从晚到早的顺序逐次往前回溯所述历史对话记录中的历史对话信息;S201. Backtracking the historical dialogue information in the historical conversation record one by one according to the time from late to early;
    S202、结合所述历史对话信息重新对所述原始信息进行翻译处理;S202. Perform retranslation processing on the original information in combination with the historical conversation information.
    S203、判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致;当不一致时,返回步骤S201;当一致时,执行下一步骤; S203. Determine whether the information obtained after the current retranslation processing is consistent with the information obtained by any previous retranslation processing; if not, return to step S201; when they are consistent, perform the next step;
    S204、获取本次重新翻译处理后得到的信息作为重新翻译的信息。S204. Acquire information obtained after the current retranslation processing as retranslated information.
  4. 根据权利要求1所述的语言翻译方法,其中,所述结合预存的历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息的步骤包括:The language translation method according to claim 1, wherein the combining the pre-stored historical conversation record to re-translate the original information, and the step of acquiring the re-translated information comprises:
    S301、根据时间从晚到早的顺序逐次往前回溯所述历史对话记录中的历史对话信息;S301. Backtracking historical conversation information in the historical conversation record one by one according to time from late to early;
    S302、结合所述历史对话信息重新对所述原始信息进行翻译处理;S302. Perform retranslation processing on the original information in combination with the historical conversation information.
    S303、判断重新翻译处理后得到的信息与所述初始翻译的信息是否一致;当一致时,返回步骤S301;当不一致时,执行下一步骤;S303. Determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation; when they are consistent, return to step S301; when they are inconsistent, perform the next step;
    S304、判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致;当不一致时,返回步骤S301;当一致时,执行下一步骤;S304. Determine whether the information obtained after the current retranslation processing is consistent with the information obtained by any previous retranslation processing; if not, return to step S301; when they are consistent, perform the next step;
    S305、获取本次重新翻译处理后得到的信息作为重新翻译的信息。S305. Acquire information obtained after the current retranslation processing as retranslated information.
  5. 根据权利要求2所述的语言翻译方法,其中,每次往前回溯一段或者至少两段历史对话信息。The language translation method according to claim 2, wherein one or at least two pieces of historical conversation information are traced back each time.
  6. 根据权利要求1所述的语言翻译方法,其中,所述将本次的对话信息添加到所述历史对话记录中的步骤包括:The language translation method according to claim 1, wherein the step of adding the current conversation information to the history conversation record comprises:
    将本次的原始信息添加到所述历史对话记录中。Add the original information of this time to the historical conversation record.
  7. 根据权利要求1所述的语言翻译方法,其中,所述历史对话记录包括两种语言的历史对话记录,所述将本次的对话信息添加到所述历史对话记录中的步骤包括:The language translation method according to claim 1, wherein said historical conversation record includes historical conversation records of two languages, and said step of adding current conversation information to said historical conversation record comprises:
    分别将本次的原始信息和翻译的信息添加到对应语言的历史对话记录中。The original information and the translated information of this time are respectively added to the historical dialogue record of the corresponding language.
  8. 一种语言翻译装置,包括: A language translation device comprising:
    第一翻译模块,设置为对原始信息进行翻译处理,获取初始翻译的信息;a first translation module configured to perform translation processing on the original information to obtain information of the initial translation;
    第二翻译模块,设置为当接收到重新翻译指令时,结合历史对话记录重新对所述原始信息进行翻译处理,获取重新翻译的信息;a second translation module, configured to re-translate the original information in combination with the historical conversation record to obtain re-translated information when receiving the re-translation instruction;
    对话记录模块,设置为将本次的对话信息添加到所述历史对话记录中。The dialog recording module is configured to add the current conversation information to the historical conversation record.
  9. 根据权利要求8所述的语言翻译装置,其中,所述第二翻译模块包括:The language translation apparatus of claim 8, wherein the second translation module comprises:
    回溯单元,设置为根据时间从晚到早的顺序逐次往前回溯所述历史对话记录中的历史对话信息;a backtracking unit, configured to backtrack historical conversation information in the historical conversation record one by one according to time from late to early;
    翻译单元,设置为结合所述历史对话信息重新对所述原始信息进行翻译处理;a translation unit configured to re-translate the original information in conjunction with the historical conversation information;
    第一判断单元,设置为判断重新翻译处理后得到的信息与所述初始翻译的信息是否一致;a first determining unit, configured to determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation;
    第一获取单元,设置为当重新翻译处理后得到的信息与所述初始翻译的信息不一致时,获取本次重新翻译处理后得到的信息作为重新翻译的信息;a first obtaining unit, configured to obtain information obtained after the retranslation processing as information to be re-translated when the information obtained after the retranslation processing is inconsistent with the information of the initial translation;
    第一通知单元,设置为当重新翻译处理后得到的信息与所述初始翻译的信息一致时,通知所述回溯单元再次往前回溯所述历史对话记录中的历史对话信息。The first notification unit is configured to notify the backtracking unit to go back to the historical conversation information in the historical conversation record again when the information obtained after the retranslation processing is consistent with the information of the initial translation.
  10. 根据权利要求8所述的语言翻译装置,其中,所述第二翻译模块包括:The language translation apparatus of claim 8, wherein the second translation module comprises:
    回溯单元,设置为根据时间从晚到早的顺序逐次往前回溯所述历史对话记录中的历史对话信息;a backtracking unit, configured to backtrack historical conversation information in the historical conversation record one by one according to time from late to early;
    翻译单元,设置为结合所述历史对话信息重新对所述原始信息进行翻译处理;a translation unit configured to re-translate the original information in conjunction with the historical conversation information;
    第二判断单元,设置为判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致; The second determining unit is configured to determine whether the information obtained after the current retranslation processing is consistent with the information obtained after any previous retranslation processing;
    第二获取单元,设置为当本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息一致时,获取本次重新翻译处理后得到的信息作为重新翻译的信息;The second obtaining unit is configured to obtain the information obtained after the current retranslation processing as the retranslated information when the information obtained after the current retranslation processing is consistent with the information obtained by any previous retranslation processing;
    第二通知单元,设置为当本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息不一致时,通知所述回溯单元再次往前回溯所述历史对话记录中的历史对话信息。a second notification unit, configured to notify the backtracking unit to go back to the historical conversation information in the historical conversation record again when the information obtained after the current retranslation processing is inconsistent with the information obtained by any previous retranslation processing .
  11. 根据权利要求8所述的语言翻译装置,其中,所述第二翻译模块包括:The language translation apparatus of claim 8, wherein the second translation module comprises:
    回溯单元,设置为根据时间从晚到早的顺序逐次往前回溯所述历史对话记录中的历史对话信息;a backtracking unit, configured to backtrack historical conversation information in the historical conversation record one by one according to time from late to early;
    翻译单元,设置为结合所述历史对话信息重新对所述原始信息进行翻译处理;a translation unit configured to re-translate the original information in conjunction with the historical conversation information;
    第一判断单元,设置为判断重新翻译处理后得到的信息与所述初始翻译的信息是否一致;a first determining unit, configured to determine whether the information obtained after the retranslation processing is consistent with the information of the initial translation;
    第二判断单元,设置为当重新翻译处理后得到的信息与所述初始翻译的信息不一致时,判断本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息是否一致;a second determining unit, configured to determine whether the information obtained after the retranslation processing is consistent with the information obtained by any previous retranslation processing, when the information obtained after the retranslation processing is inconsistent with the information of the initial translation;
    第三获取单元,设置为当本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息一致时,获取本次重新翻译处理后得到的信息作为重新翻译的信息;The third obtaining unit is configured to obtain the information obtained after the current retranslation processing as the re-translated information when the information obtained after the current retranslation processing is consistent with the information obtained by any previous retranslation processing;
    第三通知单元,设置为当重新翻译处理后得到的信息与所述初始翻译的信息一致,或者本次重新翻译处理后得到的信息与之前任意一次重新翻译处理后得到的信息不一致时,通知所述回溯单元再次往前回溯所述历史对话记录中的历史对话信息。a third notification unit, configured to: when the information obtained after the retranslation processing is consistent with the information of the initial translation, or the information obtained after the retranslation processing is inconsistent with the information obtained by any previous retranslation processing, the notification unit The backtracking unit backtracks back to the historical conversation information in the historical conversation record.
  12. 根据权利要求9所述的语言翻译装置,其中,所述回溯模块设置为:每次往前回溯一段或者至少两段历史对话信息。The language translation apparatus according to claim 9, wherein the backtracking module is configured to: backtrack one paragraph or at least two pieces of historical conversation information each time.
  13. 根据权利要求8所述的语言翻译装置,其中,所述对话记录模块设置为:将本次的原始信息添加到所述历史对话记录中。 The language translation apparatus according to claim 8, wherein said dialog recording module is configured to add the original information of the current time to said historical conversation record.
  14. 根据权利要求8所述的语言翻译装置,其中,所述历史对话记录包括两种语言的历史对话记录,所述对话记录模块设置为:分别将本次的原始信息和翻译的信息添加到对应语言的历史对话记录中。The language translation apparatus according to claim 8, wherein said historical conversation record includes historical conversation records of two languages, said conversation recording module being arranged to: add original information and translated information to the corresponding language respectively Historical conversation record.
  15. [根据细则26改正22.02.2018] 
    一种翻译设备,包括存储器、处理器和至少一个被存储在所述存储器中并被配置为由所述处理器执行的应用程序,其中,所述应用程序被配置为用于执行权利要求1所述的语言翻译方法。
    [Correction according to Rule 26 22.02.2018]
    A translation device includes a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, wherein the application is configured to perform the method of claim 1. The language translation method described.
PCT/CN2017/110729 2017-11-13 2017-11-13 Language translation method, apparatus and translation device WO2019090781A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110729 WO2019090781A1 (en) 2017-11-13 2017-11-13 Language translation method, apparatus and translation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/110729 WO2019090781A1 (en) 2017-11-13 2017-11-13 Language translation method, apparatus and translation device

Publications (1)

Publication Number Publication Date
WO2019090781A1 true WO2019090781A1 (en) 2019-05-16

Family

ID=66438167

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/110729 WO2019090781A1 (en) 2017-11-13 2017-11-13 Language translation method, apparatus and translation device

Country Status (1)

Country Link
WO (1) WO2019090781A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050203727A1 (en) * 2004-03-15 2005-09-15 Heiner Andreas P. Dynamic context-sensitive translation dictionary for mobile phones
CN101025735A (en) * 2006-02-20 2007-08-29 株式会社东芝 Apparatus and method for supporting in communication through translation between different languages
CN101233559A (en) * 2005-06-27 2008-07-30 微软公司 Context-sensitive communication and translation methods for enhanced interactions and understanding among speakers of different languages
CN103744843A (en) * 2013-12-25 2014-04-23 北京百度网讯科技有限公司 Online voice translation method and device
CN104750677A (en) * 2013-12-25 2015-07-01 株式会社东芝 Speech translation apparatus, speech translation method and speech translation program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050203727A1 (en) * 2004-03-15 2005-09-15 Heiner Andreas P. Dynamic context-sensitive translation dictionary for mobile phones
CN101233559A (en) * 2005-06-27 2008-07-30 微软公司 Context-sensitive communication and translation methods for enhanced interactions and understanding among speakers of different languages
CN101025735A (en) * 2006-02-20 2007-08-29 株式会社东芝 Apparatus and method for supporting in communication through translation between different languages
CN103744843A (en) * 2013-12-25 2014-04-23 北京百度网讯科技有限公司 Online voice translation method and device
CN104750677A (en) * 2013-12-25 2015-07-01 株式会社东芝 Speech translation apparatus, speech translation method and speech translation program

Similar Documents

Publication Publication Date Title
US11036920B1 (en) Embedding location information in a media collaboration using natural language processing
CN1333385C (en) Voice browser dialog enabler for a communication system
JP6790234B2 (en) Interpreters and methods (DEVICE AND METHOD OF TRANSLATING A LANGUAGE INTO ANOTHER LANGUAGE)
CN111261144B (en) Voice recognition method, device, terminal and storage medium
US20160239568A1 (en) Extension of Third Party Application Functionality for Intent Determination
US20140324424A1 (en) Method for providing a supplementary voice recognition service and apparatus applied to same
US10824820B2 (en) Language translation device and language translation method
JP2015528162A (en) Generate localized user interface
US20130013669A1 (en) Method and apparatus for guaranteeing web-based mobility
EP4105848A1 (en) Method and apparatus for evaluating joint training model
CN105590627A (en) Image display apparatus, method for driving same, and computer readable recording medium
KR20150067090A (en) Multi-screen interaction method, devices, and system
EP3627498B1 (en) Method and system, for generating speech recognition training data
WO2022116821A1 (en) Translation method and apparatus employing multi-language machine translation model, device, and medium
JP2023007369A (en) Translation method, classification model training method, apparatus, device and storage medium
CN105955967A (en) Data processing method and data processing device
KR101753649B1 (en) The real-time auto translation and interpretation service system based on position information and method thereof
US20140129228A1 (en) Method, System, and Relevant Devices for Playing Sent Message
KR101351264B1 (en) System and method for message translation based on voice recognition
CN107885734B (en) Language translation method and device
WO2019090781A1 (en) Language translation method, apparatus and translation device
US20170068661A1 (en) Server, user terminal, and method for controlling server and user terminal
CN108712271A (en) Interpretation method and translating equipment
CN103399947A (en) Position based input method thesaurus management system and method
JP5940038B2 (en) Information processing apparatus, information processing method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17931353

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17931353

Country of ref document: EP

Kind code of ref document: A1