FIELD: machine learning.
SUBSTANCE: invention relates to a method and an electronic device for offline translation of an initial word into a target word. In the method, offline translation is performed by a neural network (hereinafter – NN) executed by the electronic device. In this case, NN is trained for translation of words from an initial language to a target language, wherein NN has an encoding part and a decoding part. In the method, the initial word is divided by the electronic device into an input token sequence; a vector representation sequence is generated by the electronic device using the encoding part for corresponding ones of the input token sequence; the first output token sequence is generated by the electronic device using the decoding part based on the vector representation sequence, the first sequence is the first candidate word, wherein the first candidate word is possible translation of the initial word into the target language. In response to inconsistence of the first candidate word with at least one predetermined rule: the decoding part is actuated for generation of the second output token sequence, wherein the second sequence has at least one last output token different from at least one last output token of the first sequence, the second sequence is the second candidate word, wherein the second candidate word is the second possible translation of the initial word into the target language. In response to consistence of the second candidate word with the mentioned at least one predetermined rule, it is determined by the electronic device that the second candidate word is the target word.
EFFECT: increase in the accuracy of machine translation.
22 cl, 4 dwg
Title | Year | Author | Number |
---|---|---|---|
METHOD AND SERVER FOR PERFORMING CONTEXT-SENSITIVE TRANSLATION | 2021 |
|
RU2812301C2 |
METHOD AND SERVER FOR PERFORMING PROBLEM-ORIENTED TRANSLATION | 2021 |
|
RU2820953C2 |
METHODS AND ELECTRONIC DEVICES FOR PACKAGING REQUESTS INTENDED FOR PROCESSING BY PROCESSING UNIT | 2021 |
|
RU2810916C2 |
METHOD AND SERVER FOR PROCESSING TEXT SEQUENCE IN MACHINE PROCESSING TASK | 2020 |
|
RU2775820C2 |
METHOD AND SYSTEM FOR GENERATING TEXT | 2023 |
|
RU2817524C1 |
METHOD AND SERVER FOR TRAINING MACHINE LEARNING ALGORITHM FOR TRANSLATION | 2020 |
|
RU2790026C2 |
METHOD AND SYSTEM FOR PARAPHRASING TEXT | 2023 |
|
RU2814808C1 |
METHOD AND SYSTEM FOR DIGITAL ASSISTANT TEXT GENERATION | 2022 |
|
RU2796208C1 |
METHOD AND SERVER FOR TRAINING MACHINE LEARNING ALGORITHM IN TRANSLATION | 2020 |
|
RU2770569C2 |
METHOD AND SYSTEM FOR TRAINING CHATBOT SYSTEM | 2023 |
|
RU2820264C1 |
Authors
Dates
2023-02-10—Published
2020-12-30—Filed