CN109446531B - Method and device for detecting translation progress and electronic equipment - Google Patents

Method and device for detecting translation progress and electronic equipment Download PDF

Info

Publication number
CN109446531B
CN109446531B CN201811039592.2A CN201811039592A CN109446531B CN 109446531 B CN109446531 B CN 109446531B CN 201811039592 A CN201811039592 A CN 201811039592A CN 109446531 B CN109446531 B CN 109446531B
Authority
CN
China
Prior art keywords
sub
translated
segment
translation
manuscript
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811039592.2A
Other languages
Chinese (zh)
Other versions
CN109446531A (en
Inventor
蔡洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Iol Wuhan Information Technology Co ltd
Original Assignee
Iol Wuhan Information Technology Co ltd
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 Iol Wuhan Information Technology Co ltd filed Critical Iol Wuhan Information Technology Co ltd
Priority to CN201811039592.2A priority Critical patent/CN109446531B/en
Publication of CN109446531A publication Critical patent/CN109446531A/en
Application granted granted Critical
Publication of CN109446531B publication Critical patent/CN109446531B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/58Use of machine translation, e.g. for multi-lingual retrieval, for server-side translation for client devices or for real-time translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/40Processing or translation of natural language
    • G06F40/42Data-driven translation
    • G06F40/44Statistical methods, e.g. probability models
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Abstract

The embodiment of the invention provides a method, a device and electronic equipment for detecting translation progress, wherein the method comprises the following steps: counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-fragments, and counting the character number of each sub-fragment respectively; if any sub-segment is detected to be translated, based on the total character number and the character number corresponding to the sub-segment, an increment calculation method is adopted to detect the translation progress of the manuscript to be translated. The embodiment of the invention can realize real-time monitoring of the translation process and detect the translation progress in real time, thereby effectively overcoming the timeliness.

Description

Method and device for detecting translation progress and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of Internet, in particular to a method, a device and electronic equipment for detecting translation progress.
Background
Along with the rapid development of internet technology, the translation industry also rapidly enters into the data-based and information-based era. After the client delivers the translation task to the translation business or individual, the translation progress of the translation task may be desired to be known as needed. On the other hand, it is desirable for a manager of a translation enterprise to know the translation progress of a translator in performing a task to make a reasonable allocation of new tasks.
At present, most of the methods for solving the translation progress problem are to count according to time, namely counting the number of characters translated by a translator at fixed time, and combining the number of characters of a document to be translated to obtain the translation progress of the document. For example, the system counts the number of characters translated by the translator once per day and divides the number of characters by the total number of characters of the document being translated to find the translation progress number for that day.
However, the statistical method has relatively high time delay, and for manuscripts with high time requirement and clients want to know the translation progress in time, the corresponding requirement is difficult to achieve by adopting the statistical method.
Disclosure of Invention
In order to overcome the above problems or at least partially solve the above problems, embodiments of the present invention provide a method, an apparatus, and an electronic device for detecting a translation progress, which are used to realize real-time monitoring of a translation process and detect the translation progress in real time, thereby effectively overcoming latency.
In a first aspect, an embodiment of the present invention provides a method for detecting translation progress, including: counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-fragments, and counting the character number of each sub-fragment respectively; and detecting the translation progress of the manuscript to be translated by adopting an increment calculation method based on the total character number and the character number corresponding to the sub-segment.
In a second aspect, an embodiment of the present invention provides an apparatus for detecting translation progress, including: the splitting and counting module is used for counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-fragments, and counting the character number of each sub-fragment respectively; and the output module is used for detecting the translation progress of the manuscript to be translated by adopting an increment calculation method based on the total character number and the character number corresponding to the sub-segment.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one memory, at least one processor, a communication interface, and a bus; the memory, the processor and the communication interface complete mutual communication through the bus, and the communication interface is used for information transmission between the electronic equipment and the translation platform equipment; the memory stores a computer program executable on the processor, and when the processor executes the computer program, the method for detecting translation progress according to the first aspect is implemented.
In a fourth aspect, embodiments of the present invention provide a non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the method of detecting translation progress as described in the first aspect above.
According to the method, the device and the electronic equipment for detecting the translation progress, the sub-segments of the manuscript to be translated are split, and the translation progress is calculated in real time in an incremental calculation mode based on the sub-segments in the translation process.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart illustrating a method for detecting translation progress according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for detecting translation progress according to another embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a device for detecting translation progress according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an entity structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the embodiments of the present invention.
At present, most of the methods for solving the translation progress problem are to count according to time, namely counting the number of characters translated by a translator at fixed time, and combining the number of characters of a document to be translated to obtain the translation progress of the document. However, the statistical method has relatively high time delay, and for manuscripts with high time requirement and clients want to know the translation progress in time, the corresponding requirement is difficult to achieve by adopting the statistical method.
Aiming at the problems, the embodiment of the invention provides a new idea for detecting translation progress based on an increment calculation method. That is, the total translation completion progress is calculated by firstly segmenting the manuscript to be translated and then adopting an incremental calculation method according to the translation fragments completed by the translator in real time in the translation process. Furthermore, according to the trigger set by the client, the client can be informed in time when the translation progress reaches the position of the trigger. Compared with the traditional full-quantity calculation method, the method can effectively overcome the delay of translation progress detection and effectively reduce the calculation complexity. Embodiments of the present invention will be described and illustrated below with reference to a number of embodiments.
As an aspect of the embodiment of the present invention, the present embodiment provides a method for detecting translation progress, referring to fig. 1, which is a flowchart of a method for detecting translation progress according to an embodiment of the present invention, where the method may be implemented by a computer program, and the method includes:
s101, splitting the manuscript to be translated into a plurality of sub-fragments, and respectively counting the total characters of the manuscript to be translated and the characters of each sub-fragment.
When receiving the translation task, the translation task can comprise a corresponding object to be translated, and the object to be translated is a manuscript to be translated. The embodiment of the invention firstly counts the total character number of the manuscript to be translated. For example, if the total number of characters is N, the total number of characters N may be stored first. And then, splitting the complete manuscript to be translated to obtain a plurality of character fragments, wherein each character fragment can be used as a sub-fragment.
When splitting the to-be-translated manuscript, the to-be-translated manuscript can be split according to certain specific characters existing in the to-be-translated manuscript, for example, the to-be-translated manuscript can be split according to a period at the end of each natural sentence, basic units such as the natural sentence can be adopted, the to-be-translated manuscript can be split, and the to-be-translated manuscript can be split in other modes, for example, the to-be-translated manuscript is not limited herein.
Wherein in one embodiment, the step of splitting the manuscript to be translated into a plurality of sub-segments further comprises: splitting the manuscript to be translated according to the natural sentences, wherein each split natural sentence is used as a sub-segment. When the translation task, namely the splitting of the manuscript to be translated, is carried out, the manuscript to be translated is split into a plurality of different natural sentences, and each natural sentence is a sub-segment.
After splitting the manuscript to be translated according to the steps, a plurality of different sub-fragments can be obtained. The step also counts the number of characters contained in each sub-segment separately.
S102, detecting the translation progress of the manuscript to be translated by adopting an increment calculation method based on the total character number of the manuscript to be translated and the character number corresponding to the sub-segment.
The translation progress is understood to be the proportion of the translated part to the total content of the manuscript to be translated, for example, the translation progress can be calculated based on the number of characters, and the translation progress represents the ratio of the number of characters translated to the total number of characters of the manuscript to be translated. On the basis of counting the total characters of the manuscript to be translated and the characters of each sub-segment according to the steps, the translation progress of the translator to be translated can be calculated in real time by adopting an increment calculation method according to the characters of the sub-segment and the total characters of the manuscript to be translated and combining a historical calculation result as long as the characters corresponding to the sub-segment are monitored and recorded in real time when the translator finishes translation of each sub-segment.
The increment calculation method shows that the total translation progress after the translation of the current sub-segment is completed is calculated by calculating the increment of the translation progress formed after the translation of the current sub-segment is completed on the basis of the translation progress of the history record.
According to the method for detecting the translation progress, the sub-segments of the manuscript to be translated are split, the translation progress is calculated in real time in an incremental calculation mode based on the sub-segments in the translation process, and compared with a traditional full calculation method, the method for detecting the translation progress can effectively overcome the delay of translation progress detection and can effectively reduce the calculation complexity.
Optionally, according to the foregoing embodiments, the step of detecting the translation progress of the manuscript to be translated by adopting an incremental calculation method based on the total number of characters and the number of characters corresponding to the sub-segments further includes:
for any sub-segment with the current translation completion, reading the character number of the sub-segment, and calculating the translation progress of the manuscript to be translated according to the following formula based on the character number of the sub-segment:
Figure BDA0001791774980000051
wherein mu is i Representing the translation progress of the manuscript to be translated after the translation of the sub-segment currently being translated, n i Representing the number of characters of the subfragment currently being translated, N representing the total number of characters of the manuscript to be translated, μ i-1 And the translation progress of the manuscript to be translated after the sub-segment with the last translation is translated is expressed.
It can be understood that when the embodiment of the invention adopts the increment calculation method to detect the translation progress, for each sub-segment translated by a translator, the corresponding character number can be obtained, so that the translation progress of the translated sub-segment is further calculated according to the character number. And recording the calculated translation progress for each sub-segment of which the translation is completed.
And when the translation of the next sub-segment is carried out, monitoring the translation completion condition of the next sub-segment in real time, and acquiring the character number of the next sub-segment. Then, the ratio of the character number to the total character number of the manuscript to be translated is calculated to obtain the progress increment, namely, according to n in the above formula i N. Then, the progress increment is calculated with the translation progress mu calculated by the last recorded sub-segment according to the above formula i-1 Summing to obtain the translation progress mu of the calculation i
For example, taking a sub-segment of a natural segment as an example, in the translation process, monitoring the translation completion condition of a sentence, and obtaining the number of characters of the sentence to perform incremental calculation on the translation progress of the manuscript to be translated. Assume that one document to be translated has a total of 5 sentences, the first sentence has 1n characters, the second sentence has 2n characters, and the fifth sentence has 5n characters. When the translator translates 1 sentence on the first day and translates the second sentence, the translation progress calculation method of the manuscript to be translated is two, namely full calculation and increment calculation.
If the progress is calculated according to the total amount, the calculation process is as follows:
historical data:
1n/(1n+2n+…+5n)≈7%;
translation to sentence 2:
(1n+2n)/(1n+2n+…+5n)=20%。
if incremental calculation (the total number of characters of the document has been calculated in advance) is used:
historical data:
1n/15n≈7%;
translation to sentence 2:
7%+2n/15n≈20%。
it can be seen that the algorithm is simpler and more convenient by adopting the incremental calculation method. Therefore, according to the method for detecting the translation progress, the translation progress obtained by the previous calculation is recorded, the translation progress calculated in the current calculation is calculated in real time in an incremental calculation mode, calculation can be dispersed in the analysis process of the document, the speed is not influenced in the task process, and the efficiency is convenient to improve.
Further, on the basis of the above embodiments, after the step of splitting the manuscript to be translated into the plurality of sub-segments, the method according to the embodiment of the present invention further includes: each sub-segment is coded uniquely, and each sub-segment is marked by adopting the corresponding unique code; associating the unique codes of the sub-segments with the character numbers to establish an association relationship;
correspondingly, the step of reading the character number of the sub-segment further comprises: and acquiring the unique codes of the sub-fragments according to the marks of the sub-fragments, and acquiring the character numbers of the sub-fragments based on the unique codes and the association relation.
It can be understood that, in order to accurately locate the translated sub-segments, to determine the number of characters thereof to calculate the translation progress, after splitting the manuscript to be translated to obtain a plurality of sub-segments, the sub-segments are respectively encoded, and each encoding uniquely corresponds to one sub-segment. I.e. there is a unique correspondence between each sub-segment and each code, which is the unique code of the corresponding sub-segment.
Each sub-segment is then marked with its corresponding unique code. For example, if the translation platform client is a web page, the unique code for each sub-segment may be tagged in html. And, for each sub-segment, a unique association relationship is established between its unique code and its character number, and its character number can be determined by using the association relationship according to its unique code. The unique codes and the character numbers of the corresponding sub-fragments can be recorded in a data storage database after being associated.
Correspondingly, after the translator submits the translation result of the current sub-segment, when the character number of the current translated sub-segment of the translator is determined, the unique code of the translated sub-segment of the translator can be determined according to the mark of the sub-segment, and the character number of the sub-segment can be obtained by inquiring the association relation between the unique code and the character number according to the unique code.
According to the method for detecting the translation progress, provided by the embodiment of the invention, the character number of each sub-segment in the manuscript to be translated can be accurately positioned by carrying out unique coding on each sub-segment, so that the translation progress actually completed can be more accurately calculated.
Wherein optionally, each sub-segment corresponds to a segment terminator, and the step of detecting that translation of any sub-segment is completed further comprises: and monitoring the translation completion condition of the current sub-segment by monitoring the segment terminator input by the translator through the keyboard.
It may be understood that when splitting the to-be-translated manuscript according to the embodiments described above, the to-be-translated manuscript may be split according to some specific characters existing in the to-be-translated manuscript, and the specific characters may be used as the segment terminators corresponding to the sub-segments. For example, the manuscript to be translated may be split according to natural sentences, and a period at the end of each natural sentence may be used as a segment terminator. Of course, the basic units of the natural section and the like can be adopted, and the manuscript to be translated can be split, so that the carriage return character input by the user can be used as the fragment terminator, and the embodiment of the invention is not limited to the above.
Then, when the translation completion condition of the current sub-segment is judged according to the above embodiment, the segment terminator input by the translator is monitored in real time, and when the segment terminator is detected, the translator is judged to have completed the translation of the sub-segment. For example, in the case of splitting by natural sentences, the segment terminators of the respective natural sentence segments are periods. It can be judged whether the translation of the current sentence is completed by monitoring the period input by the translator.
According to the method for detecting the translation progress, provided by the embodiment of the invention, the translation completion condition of each sub-segment can be effectively monitored by setting the segment terminator, so that the current translation progress can be accurately and timely detected.
Further, on the basis of the above embodiments, after the step of calculating the translation progress of the manuscript to be translated, the method according to the embodiment of the present invention further includes: and if the translation progress reaches a preset threshold, sending a notification to a user side of the appointed user.
According to the embodiments described above, the setting threshold of the translation progress can be set at the time of assigning the translation task. And obtaining a calculation result of the translation progress every time translation of one sub-segment is completed, comparing the calculation result with a preset threshold value, and sending a notification to a user side of a designated user if the calculation result reaches the preset threshold value. Wherein the designated user may be a distributor of the translation task or a customer submitting the translation task, etc. And the form of sending the notification can be in the form of mail, short message, etc.
According to the method for detecting the translation progress, the translation progress notification is sent to the relevant users, so that the users can know the translation progress of the manuscript to be translated according to the needs, and the customer experience is good.
Further, on the basis of the above embodiments, before the step of sending the notification to the user side of the designated user, the method according to the embodiment of the present invention further includes: and detecting whether the notification is sent to the user terminal of the appointed user, and if so, not sending the notification to the user terminal of the appointed user.
It may be understood that when it is determined that the current translation progress reaches the preset threshold according to the above embodiment, it may be that the translation progress has reached the preset threshold before the translation of the current sub-segment is completed, and a notification is sent to the above specified user, in order to avoid repeated sending of the notification, in the embodiment of the present invention, after it is determined that the current translation progress reaches the preset threshold, it is detected whether the notification has been sent to the user terminal of the specified user.
That is, after the calculation is completed, the translation progress is recorded to the database, and it is judged whether the current progress of the manuscript to be translated exceeds a preset threshold (the preset threshold may be determined by a dispatcher of the translation task, who wishes to be notified by a corresponding person when the translator translates to a certain progress), and if the current progress exceeds and the flag bit has no value, the mail is sent and the flag bit is set. The flag bit herein may be understood as whether the current translation task has been notified for the corresponding person, such as the dispatcher. If so, no further notification is made. The specific implementation manner can set a field of 'whether notification' in the translation task table of the database.
According to the method for detecting the translation progress, after judging that the current translation progress reaches the preset threshold, whether the notification is sent is detected, whether the notification is sent is determined according to the detection result, repeated sending or missed sending of the notification can be effectively avoided, and user experience is improved.
In order to further illustrate the technical solution of the embodiments of the present invention, the embodiments of the present invention provide the following exemplary processing flows according to the above embodiments, but do not limit the scope of protection of the present invention.
Fig. 2 is a flow chart of a method for detecting translation progress according to another embodiment of the present invention, in the method of this embodiment, first, after an enterprise platform receives a translation task of a client, a task manager assigns the translation task to a corresponding translator, and sets a notification trigger threshold, for example, 50%, and when the system detects that the completion ratio of the translation task reaches 50%, a notification is sent to the corresponding personnel to notify that the translation task is completed to the trigger threshold. The corresponding personnel can be task manager or clients, and the notification forms can adopt a mail sending mode and the like.
The system segments the translation task and counts the number of characters according to the embodiments described above. In the translation process, a translator translates corresponding sentences and submits each sentence to the system after translation is completed. The system calculates the increment of the translation character in real time, and calculates the current translation progress in real time according to the increment calculation of the progress.
And then judging whether the current translation progress reaches a set notification trigger threshold, if not, continuously monitoring sentences translated and submitted by a translator so as to continuously calculate the translation progress in real time. If yes, further judging whether notification mails are sent to the corresponding personnel, if so, ending the translation process monitoring, if not, sending the notification mails to the corresponding personnel, and ending the translation process monitoring. That is, if the translation progress does not reach the threshold set by the task dispatcher, it is not necessary to notify him, and the end here refers to the end of the flow of "translation progress monitoring". The entire translation system is still to be continued, such as recording the user's translations, etc.
The embodiment of the invention can solve the monitoring problem of urgent translation tasks and realize real-time statistics, tracking and feedback of translation progress. Compared with the prior art, the real-time monitoring is greatly improved, and the translation submitting speed can be not lost by adopting a way of statistics of the translated sentence characters in advance.
As another aspect of the embodiment of the present invention, the embodiment of the present invention provides an apparatus for detecting a translation progress according to the above embodiments, where the apparatus is used to implement the detection of the translation progress in the above embodiments. Therefore, the descriptions and definitions in the method for detecting translation progress in the foregoing embodiments may be used for understanding each execution module in the embodiments of the present invention, and specific reference may be made to the foregoing embodiments, which are not repeated herein.
According to an embodiment of the present invention, a structure of a device for detecting translation progress is shown in fig. 3, which is a schematic structural diagram of a device for detecting translation progress provided by an embodiment of the present invention, where the device may be used for detecting translation progress in the above embodiments of the methods, and the device includes a splitting statistics module 301 and an output module 302. Wherein:
the splitting statistics module 301 is configured to count a total number of characters of the manuscript to be translated, split the manuscript to be translated into a plurality of sub-segments, and count the number of characters of each sub-segment respectively; the output module 302 is configured to detect a translation progress of the manuscript to be translated by adopting an incremental calculation method based on the total number of characters of the manuscript to be translated and the number of characters corresponding to the sub-segments.
Specifically, in the translation progress detection process, the splitting statistics module 301 counts the total number of characters of the manuscript to be translated first, and splits the complete manuscript to be translated to obtain a plurality of character segments, where each character segment can be used as a sub-segment. While splitting the to-be-translated manuscript, the splitting statistics module 301 may split the to-be-translated manuscript according to some specific characters in the to-be-translated manuscript, which may, of course, be otherwise, not limited herein. And, for each sub-segment, the splitting statistics module 301 also counts the number of characters contained in the sub-segment.
Finally, on the basis of the calculation of the execution module, the output module 302 only needs to monitor and record the number of characters corresponding to a sub-segment when the translator finishes the translation of the sub-segment in real time, and can calculate the translation progress of the translator to the manuscript to be translated in real time by adopting an incremental calculation method in combination with the historical calculation result.
The increment calculation method shows that the total translation progress after the translation of the current sub-segment is completed is calculated by calculating the increment of the translation progress formed after the translation of the current sub-segment is completed on the basis of the translation progress of the history record.
According to the device for detecting the translation progress, provided by the embodiment of the invention, the corresponding execution module is arranged, the sub-segments of the manuscript to be translated are split, and the translation progress is calculated in real time in an incremental calculation mode based on the sub-segments in the translation process.
The output module is specifically configured to, for any sub-segment for which the current translation is completed, read the number of characters of the sub-segment, and calculate the translation progress of the manuscript to be translated according to the following formula based on the number of characters of the sub-segment:
Figure BDA0001791774980000101
wherein mu is i Representing the translation progress of the manuscript to be translated after the translation of the sub-segment currently being translated, n i Representing the number of characters of the subfragment currently being translated, N representing the total number of characters of the manuscript to be translated, μ i-1 And the translation progress of the manuscript to be translated after the sub-segment with the last translation is translated is expressed.
The splitting statistics module is specifically configured to split the manuscript to be translated according to the natural sentences, where each split natural sentence is used as a sub-segment.
Furthermore, on the basis of the above embodiments, the splitting statistics module is further configured to perform unique encoding on each sub-segment, and mark each sub-segment by using a corresponding unique encoding; associating the unique codes of the sub-segments with the character numbers to establish an association relationship; correspondingly, the output module is also used for acquiring the unique codes of the sub-fragments according to the marks of the sub-fragments and acquiring the character numbers of the sub-fragments based on the unique codes and the association relation.
Further, on the basis of the above embodiments, the apparatus according to the embodiments of the present invention further includes a notification module, configured to send a notification to a user terminal of the specified user if the translation progress reaches a preset threshold.
Further, on the basis of the above embodiment, the notification module is further configured to detect whether a notification has been sent to the user terminal of the specified user, and if so, no notification is sent to the user terminal of the specified user.
Furthermore, on the basis of the above embodiments, the splitting statistics module is further configured to associate the unique code with the number of characters of the corresponding sub-segment, and record the association to the data storage database.
According to the above embodiments, each sub-segment corresponds to a segment terminator, and the output module is specifically configured to monitor the translation completion of the current sub-segment by monitoring the segment terminator input by the translator through the keyboard.
It will be appreciated that in embodiments of the present invention, each of the relevant program modules in the apparatus of each of the above embodiments may be implemented by a hardware processor (hardware processor). In addition, when the device for detecting translation progress in the embodiments of the present invention is used for detecting translation progress in the embodiments of the methods, the beneficial effects generated are the same as those generated in the corresponding embodiments of the methods, and reference may be made to the embodiments of the methods, which are not repeated herein.
As still another aspect of the embodiment of the present invention, this embodiment provides an electronic device according to the foregoing embodiment, referring to fig. 4, which is a schematic entity structure diagram of the electronic device provided by the embodiment of the present invention, including: at least one memory 401, at least one processor 402, a communication interface 403, and a bus 404.
Wherein the memory 401, the processor 402 and the communication interface 403 complete communication with each other through the bus 404, and the communication interface 403 is used for information transmission between the electronic device and the translation platform device; the memory 401 stores a computer program executable on the processor 402, and when the processor 402 executes the computer program, the method of detecting translation progress as described in the above embodiments is implemented.
It should be understood that the electronic device at least includes a memory 401, a processor 402, a communication interface 403 and a bus 404, where the memory 401, the processor 402 and the communication interface 403 form a communication connection with each other through the bus 404, and may perform communication with each other, such as the processor 402 reads program instructions of a method for detecting translation progress from the memory 401. In addition, the communication interface 403 may also implement communication connection between the electronic device and the translation platform device, and may complete information transmission between each other, for example, implement detection of translation progress through the communication interface 403.
When the electronic device is running, the processor 402 invokes the program instructions in the memory 401 to perform the methods provided in the above method embodiments, for example, including: counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-segments, and counting the character number of each sub-segment respectively; based on the total character number of the manuscript to be translated and the character number corresponding to the sub-segments, an increment calculation method is adopted to detect the translation progress of the manuscript to be translated, and the like.
The program instructions in the memory 401 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a separate product. Alternatively, all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, where the program when executed performs steps including the above method embodiments; and the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Embodiments of the present invention also provide a non-transitory computer readable storage medium according to the above embodiments, where the non-transitory computer readable storage medium stores computer instructions that cause a computer to perform the method for detecting translation progress according to the above embodiments. Examples include: counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-segments, and counting the character number of each sub-segment respectively; based on the total character number and the character number corresponding to the sub-segments, an increment calculation method is adopted to detect the translation progress of the manuscript to be translated.
The electronic device and the non-transitory computer readable storage medium provided by the embodiments of the present invention, by executing the method for detecting translation progress described in the above embodiments, split sub-segments of a manuscript to be translated, and calculate the translation progress in real time by adopting an incremental calculation manner based on each sub-segment in the translation process, compared with the traditional full calculation method, the method can effectively overcome the delay of translation progress detection, and can effectively reduce the calculation complexity.
It will be appreciated that the embodiments of the apparatus, electronic device and storage medium described above are merely illustrative, wherein the elements illustrated as separate components may or may not be physically separate, may be located in one place, or may be distributed over different network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a usb disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc., and includes several instructions for causing a computer device (such as a personal computer, a server, or a network device, etc.) to execute the method described in the foregoing method embodiments or some parts of the method embodiments.
In addition, it will be understood by those skilled in the art that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the description of the embodiments of the invention, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the above description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects.
However, the disclosed method should not be construed as reflecting the intention that: i.e., an embodiment of the invention that is claimed, requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will appreciate that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A method of detecting translation progress, comprising:
counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-fragments, and counting the character number of each sub-fragment respectively;
if any sub-segment is detected to be completely translated, detecting the translation progress of the manuscript to be translated by adopting an incremental calculation method based on the total character number and the character number corresponding to the sub-segment;
the step of detecting the translation progress of the manuscript to be translated by adopting an increment calculation method based on the total character number and the character number corresponding to the sub-segment further comprises the following steps:
and for any sub-segment of which the current translation is finished, reading the character number of the sub-segment, and calculating the translation progress of the manuscript to be translated according to the following formula based on the character number of the sub-segment:
Figure QLYQS_1
in the method, in the process of the invention,μ i representing the translation progress of the manuscript to be translated after the sub-segment which is currently translated is translated,n i representing the number of characters of the sub-segment currently being translated,Nrepresenting the total character number of the manuscript to be translated,μ i-1 and the translation progress of the manuscript to be translated after the sub-segment with the last translation is translated is expressed.
2. The method of claim 1, wherein the step of splitting the manuscript to be translated into a plurality of sub-segments further comprises:
splitting the manuscript to be translated according to natural sentences, wherein each split natural sentence is used as one sub-segment.
3. The method of claim 1, further comprising, after the step of splitting the manuscript to be translated into a plurality of sub-segments:
each sub-segment is coded uniquely, and each sub-segment is marked by adopting the corresponding unique code;
associating the unique codes of the sub-segments with the character number to establish an association relationship;
correspondingly, the step of reading the character number of the sub-segment further comprises:
and acquiring the unique code of the sub-segment according to the mark of the sub-segment, and acquiring the character number of the sub-segment based on the unique code and the association relation.
4. The method of claim 1, further comprising, after the step of calculating a translation progress for the contribution to be translated:
and if the translation progress reaches a preset threshold, sending a notification to a user side of the appointed user.
5. The method of claim 4, further comprising, prior to the step of sending the notification to the user side of the designated user:
and detecting whether the notification is sent to the user terminal of the appointed user, and if so, not sending the notification to the user terminal of the appointed user.
6. The method of claim 1, wherein each of said sub-segments corresponds to a segment terminator, and wherein the step of detecting translation completion of any of said sub-segments further comprises:
and monitoring the translation completion condition of the current sub-segment by monitoring the segment terminator input by the translator through a keyboard.
7. An apparatus for detecting translation progress, comprising:
the splitting and counting module is used for counting the total character number of the manuscript to be translated, splitting the manuscript to be translated into a plurality of sub-fragments, and counting the character number of each sub-fragment respectively;
the output module is used for detecting the translation progress of the manuscript to be translated by adopting an increment calculation method based on the total character number and the character number corresponding to the sub-segment if any sub-segment translation is detected to be completed;
the step of detecting the translation progress of the manuscript to be translated by adopting an increment calculation method based on the total character number and the character number corresponding to the sub-segment further comprises the following steps:
and for any sub-segment of which the current translation is finished, reading the character number of the sub-segment, and calculating the translation progress of the manuscript to be translated according to the following formula based on the character number of the sub-segment:
Figure QLYQS_2
in the method, in the process of the invention,μ i representing the translation progress of the manuscript to be translated after the sub-segment which is currently translated is translated,n i representing the number of characters of the sub-segment currently being translated,Nrepresenting the total character number of the manuscript to be translated,μ i-1 and the translation progress of the manuscript to be translated after the sub-segment with the last translation is translated is expressed.
8. An electronic device, comprising: at least one memory, at least one processor, a communication interface, and a bus;
the memory, the processor and the communication interface complete the communication among each other through the bus, and the communication interface is also used for information transmission between the electronic equipment and the translation platform equipment;
stored in the memory is a computer program executable on the processor, which when executed, implements the method according to any one of claims 1 to 6.
9. A non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the method of any one of claims 1 to 6.
CN201811039592.2A 2018-09-06 2018-09-06 Method and device for detecting translation progress and electronic equipment Active CN109446531B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811039592.2A CN109446531B (en) 2018-09-06 2018-09-06 Method and device for detecting translation progress and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811039592.2A CN109446531B (en) 2018-09-06 2018-09-06 Method and device for detecting translation progress and electronic equipment

Publications (2)

Publication Number Publication Date
CN109446531A CN109446531A (en) 2019-03-08
CN109446531B true CN109446531B (en) 2023-05-05

Family

ID=65530306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811039592.2A Active CN109446531B (en) 2018-09-06 2018-09-06 Method and device for detecting translation progress and electronic equipment

Country Status (1)

Country Link
CN (1) CN109446531B (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000163422A (en) * 1998-11-30 2000-06-16 Brother Ind Ltd Translating device and computer-readable recording medium where translating process program is recorded
CN105989439A (en) * 2015-02-11 2016-10-05 成都优译信息技术股份有限公司 Multi-interpreter cooperation translation system and method thereof
CN104933041B (en) * 2015-06-25 2017-09-01 武汉传神信息技术有限公司 A kind of file beneficial to translation is extracted and restoring method

Also Published As

Publication number Publication date
CN109446531A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
KR102201919B1 (en) Random forest model training method, electronic device and storage medium
CN108763274B (en) Access request identification method and device, electronic equipment and storage medium
US20130042306A1 (en) Determining machine behavior
US20170277781A1 (en) Generating a summary based on readability
US20090210470A1 (en) Apparatus and methods for lossless compression of numerical attributes in rule based systems
CN111343162B (en) System secure login method, device, medium and electronic equipment
CN112839014B (en) Method, system, equipment and medium for establishing abnormal visitor identification model
CN111597309A (en) Similar enterprise recommendation method and device, electronic equipment and medium
CN109446531B (en) Method and device for detecting translation progress and electronic equipment
CN108920955B (en) Webpage backdoor detection method, device, equipment and storage medium
CN111881089B (en) Paper file circulation processing system
CN111651674B (en) Bidirectional searching method and device and electronic equipment
CN117271645A (en) Test data processing method and device and computer readable storage medium
US20080294677A1 (en) Information processing device, computer readable recording medium, and information processing method
CN108985059B (en) Webpage backdoor detection method, device, equipment and storage medium
CN111209391A (en) Information identification model establishing method and system and interception method and system
CN114492377A (en) Event role labeling method, computer equipment and computer-readable storage medium
CN115438629A (en) Data processing method, data processing device, storage medium and electronic equipment
CN105224655B (en) Detection method, the treating method and apparatus of website conversion setting
CN115618857B (en) Threat information processing method, threat information pushing method and threat information pushing device
CN113535737B (en) Feature generation method and device, electronic equipment and computer storage medium
CN108920950B (en) Webpage backdoor detection method, device, equipment and storage medium
CN113010812B (en) Information acquisition method, device, electronic equipment and storage medium
CN113724065B (en) Auxiliary collecting method, device, equipment and storage medium based on flow guidance
CN116263990A (en) Floor page feature extraction method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant