Method and system for prioritizing translation requests
The present disclosure provides a method and system for prioritizing translation requests in a translation service system. The method comprises receiving the one or more translation requests from the one or more users. The method further comprises extracting one or more attributes associated with the one or more translation requests, wherein the one or more attributes include at least one of: contextual information, frequency, size and language configuration of the one or more translation requests. The method further comprises assigning a weight to each attribute of the one or more translation requests. The method further comprises calculating a weighted score for the one or more translation requests based on the assigned weight to each attribute of the one or more attributes and ranking the one or more translation requests based on the weighted score. The method further comprises transmitting the one or more translation requests based on the rank to a data translation engine for translation. A system for prioritizing translation requests is also disclosed.
1 . A system for prioritizing one or more translation requests, comprising:
one or more processors;
a memory; and
one or more programs stored in the memory, the one or more programs when executed, cause the one or more processors to:
receive the one or more translation requests;
extract one or more attributes associated with the one or more translation requests;
assign a weight to each attribute of the one or more translation requests based on a relative importance of the each attribute with the one or more translation requests for controlling transmission of the one or more translation requests, wherein the one or more attributes associated with the one or more translation requests include at least one of: contextual information, frequency, size and language configuration of the one or more translation requests;
calculate a weighted score for the one or more translation requests based on the assigned weight to each attribute of the one or more attributes;
rank the one or more translation requests based on the weighted score;
determine, based on the size of each of the one or more translation requests, whether to transmit a translation request as a single translation request when the size is below a pre-defined threshold; and
transmit the one or more translation requests based on the rank for translation.
2 . The system of claim 1 , wherein the one or more processors are configured to:
extract the contextual information from the one or more translation requests, wherein the contextual information comprises at least one of: a purpose, a category and an urgency of the one or more translation requests.
3 . The system of claim 1 , wherein the one or more processors are configured to:
determine the frequency of the one or more translation requests; and
calculate a load factor based on the frequency of the one or more translation requests.
4 . The system of claim 1 , wherein the one or more processors are configured to:
determine, based on the size of the one or more translation requests, whether to send the single translation request separated by delimiters or send multiple translation requests through a queue.
5 . The system of claim 4 , wherein if the size of the one or more translation requests is below the pre-defined threshold, the one or more processors are configured to:
send the one or more translation requests as a giant string for translation; and
parse the translated string to replace a source language with a target language.
6 . The system of claim 5 , wherein if the size of the one or more translation requests exceeds the pre-defined threshold, the one or more processors are configured to:
send the one or more translation requests through the queue.
7 . The system of claim 5 , wherein the one or more processors are configured to:
identify the target language and number of bytes per translation for the one or more translation requests.
8 . A method for prioritizing one or more translation requests, comprising:
receiving the one or more translation requests;
extracting one or more attributes associated with the one or more translation requests;
assigning a weight to each attribute of the one or more translation requests based on a relative importance of the each attribute with the one or more translation requests for controlling transmission of the one or more translation requests, wherein the one or more attributes associated with the one or more translation requests include at least one of: contextual information, frequency, size and language configuration of the one or more translation requests;
calculating a weighted score for the one or more translation requests based on the assigned weight to each attribute of the one or more attributes;
ranking the one or more translation requests based on the weighted score;
determining, based on the size of each of the one or more translation requests, whether to transmit a translation request as a single translation request when the size is below a pre-defined threshold; and
transmitting the one or more translation requests based on the rank for translation.
9 . The method of claim 8 , comprising:
extracting the contextual information from the one or more translation requests, wherein the contextual information comprises at least one of: a purpose, a category and an urgency of the one or more translation requests.
10 . The method of claim 8 , comprising:
determining the frequency of the one or more translation requests;
calculating a load factor based on the frequency of the one or more translation requests.
11 . The method of claim 8 , comprising:
determining, based on the size of the one or more translation requests, whether to send the single translation request separated by delimiters or send multiple translation requests through a queue.
12 . The method of claim 11 , wherein if the size of the one or more translation requests is below the pre-defined threshold, the method comprising:
sending the one or more translation requests as a giant string for translation; and
parsing the translated string to replace a source language with a target language.
13 . The method of claim 12 , wherein if the size of the one or more translation requests exceeds the pre-defined threshold, the method comprising:
sending the one or more translation requests through the queue.
14 . The method of claim 12 , comprising:
identifying a target language and number of bytes per translation for at least one of the one or more translation requests.
15 . A non-transitory computer readable storage medium storing program instructions stored thereon that, when executed by at least one processor of a system for prioritizing one or more translation requests, cause the at least one processor to perform the steps of:
receiving the one or more translation requests;
extracting one or more attributes associated with the one or more translation requests;
assigning a weight to each attribute of the one or more translation requests based on a relative importance of the each attribute with the one or more translation requests for controlling transmission of the one or more translation requests, wherein the one or more attributes associated with the one or more translation requests include at least one of: contextual information, frequency, size and language configuration of the one or more translation requests;
calculating a weighted score for the one or more translation requests based on the assigned weight to each attribute of the one or more attributes;
ranking the one or more translation requests based on the weighted score;
determining, based on the size of each of the one or more translation requests, whether to transmit a translation request as a single translation request when the size is below a pre-defined threshold; and
transmitting the one or more translation requests based on the rank for translation.
16 . The non-transitory computer-readable storage medium of claim 15 , wherein the program instructions, when executed by the at least one processor, cause the at least one processor to perform the steps of:
extracting the contextual information for each translation request of the one or more translation requests, wherein the contextual information includes one or more of: a purpose, a category and an urgency of the translation requests.
17 . The non-transitory computer-readable storage medium of claim 15 , wherein the program instructions, when executed by the at least one processor, cause the at least one processor to perform the steps of:
determining the frequency of the one or more translation requests;
calculating a load factor based on the frequency of the one or more translation requests.
18 . The non-transitory computer-readable storage medium of claim 15 , wherein the program instructions, when executed by the at least one processor, cause the at least one processor to perform the steps of:
identifying a target language and number of bytes per translation for at least one of the one or more translation requests.