Neural Networks for Interpreting Natural Language Sentences
Through multi-layer neural network architecture, binary feature representation and word order combination are used to solve the problem of meaning loss in natural language sentence translation in the existing technology, achieve more accurate and complete translation effects, and improve translation quality and knowledge reuse. ability.
Patent Information
- Application Number
- CN201980075386.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-11-19
- Filing Date
- 2019-11-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-11-14
AI Technical Summary
When the existing technology translates natural language sentences, it is easy to cause the loss or partial loss of the meaning of the original sentence. Especially when dealing with multi-word or phrase structures, it lacks effective interpretation capabilities and cannot accurately distinguish the basic meaning and additional meaning of a word or phrase.
A multi-layer neural network architecture is designed, in which each layer of neurons focuses on interpreting the meaning of a word or phrase, representing basic or additional meanings through binary features, and considering word order in the output layer to combine words and phrases to ensure that the translation results retain the original The semantic structure of sentences.
A more accurate and complete translation of natural language sentences is achieved, which can effectively distinguish and retain the basic and additional meanings of the original sentences, improving the translation quality and the application of reusable professional knowledge in projects with the same theme.
Smart Images

Figure CN113366484B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to computational tools for interpreting natural language sentences, including performing context-sensitive machine translation. The present invention can be used in various industrial and social fields where interlingual communication management is a prerequisite. Background Art
[0002] Communication management is one of the competencies highlighted in the Project Management Body of Knowledge (PMBOK). The development of international cooperation has created an increasing need for quality communication between project stakeholders. Similarly, language barriers are often a problem that complicates interpersonal communication and understanding the substance of texts of a technical nature.
[0003] Another problem associated with projects requiring intensive translation of messages from the source language into the target language is the use of the expertise of expert translators, which is lost at the end of the project, since the digitization of such expertise is not sufficient for use in subsequent projects covering similar or identical topics. A generally accepted indicator of translation quality is the relevance of the translated corpus of phrases to the context processed by the project participants, i.e. the quality of the translation directly depends on the context.
[0004] In one example, the Reverso Context Web service (access mode: http: / / context.reverso.net / ) known in the prior art provides text translations based on previous translations performed by professional translators. Upon opening a user's request, a designated server provides a sampling of the meanings of a source word or phrase in different contexts in the target language. Here, the user receives context options in which the words or phrases in the original language can be used. However, this known resource does not inform the user whether the translation result represents a primary or secondary meaning. A further disadvantage of this resource is its imperfection in combining the meanings of words and phrases, whereby they may be interpreted as parts of complete sentences. For example, at the date of filing this application, known resources translate the sentence "Nobody can go back and start a new beginning, but anyone can start today and make a new ending" as follows: "Никтонеможет возвращаться и начинатьновое начало, нолюбой может начинатьсегодня и делатьновое окончание". This example shows the limitations of functionality when using services of the prior art.
[0005] The following equivalents are known from the patent literature. US Patent No. 8,533,130 (IPC G06F15 / 18, published on 09 / 10 / 2013) discloses a device in which the use of a neural network is intended to annotate search results. The device consists of a memory connected to a processor and a neural network. The neural network consists of a plurality of word neurons, a plurality of sentence neurons, at least one document neuron, a plurality of connections between at least some of the word neurons and the sentence neurons, and a plurality of connections between at least some of the word neurons and the document neurons. Therefore, the neural network is configured to be able to activate one of the sentence neurons in response to the activation of the document neuron. The device processor is configured to change the position of a plurality of word neurons on the display in accordance with input data, whereby changing the position of a single word neuron results in a change in the annotation associated with at least one of the sentence neurons. The known invention makes it possible to generate a brief overview of the essence of the information by using a neural network. However, the use of known solutions for interpreting sentences may result in a complete or partial loss of some of the meanings contained in the original sentences.
[0006] U.S. Patent No. 5,416,696 (IPC G06F17 / 27, published on 05 / 16 / 1995) discloses a device and method for translating words using a neural network. The neural network according to the known invention includes neurons, in whose memory cells are stored the associated meanings of words in the source language and the target language. The neurons are interconnected by positive and negative connections associated with words in different languages, which are linguistically and semantically similar. In addition, the device using the neural network has a memory, which contains grammatical rules covering the source language and the target language. нейроннуюсеть, такжесодержитпамятьсправиламиграмматикидляоригинальногоицелевогоязыков. When interpreting the source sentence, the device displays an output to the user based on the word order of the source sentence, thereby allowing it to convey the literal meaning of the source sentence. However, when using the known invention, the result can also be a partial loss of the original sentence's meaning, since the neural network memory cells are not configured to store language structures consisting of several words or phrases. Summary of the invention
[0007] The technical problem to be solved by the developers is to create a multi-layer neural network that is configured to interpret raw information in order to present it in a language that is relevant to the users of such information.
[0008] Improving the quality of interpreting natural language sentences by leveraging the experience of experts represents a technical achievement of the present invention.
[0009] The technical result is achieved by the present invention, whereby the claimed neural network for interpreting natural language sentences comprises layers of neurons. Furthermore, the first neuron layer is intended to interpret the meaning of individual words of the sentence. The intermediate neuron layer is configured to interpret the phrases of the sentence, wherein the number of words corresponds to the number of neuron layers in the neural network. The last neuron layer is represented by the output neurons and is configured to interpret the sentence based on the lexical meaning interpreted in the previous neuron layer. Thus, each neuron of the input layer and the intermediate layer contains a memory cell for storing the meaning of a word or phrase, wherein each meaning corresponds to a binary feature, the encoding of which is characterized by the following rule: “1” is the basic meaning of the word or phrase, and “0” is an additional meaning of the word or phrase.
[0010] For the purpose of this application, the meaning of the term "interpretation" will be primarily used to refer to the process of translating from a source language to a target language. However, the use of this term can be applied to other technical fields, which require the conversion of source information so that it is easier for users to understand.
[0011] The present invention differs from the technical solutions known from the prior art mainly as follows: it configures neurons of a separate layer of a neural network for interpreting phrases, wherein the number of words is equal to the number of layers in the neural network; it assigns binary features to the meaning of the interpreted words or phrases, thereby indicating the basic meaning or additional meaning of the interpreted words or phrases; the output neurons perform the combination of words and phrases taking into account their basic meaning or additional meaning and the word order of the source sentence. During the analysis of publicly available information in scientific and technological and patent literature, no technical solutions were identified that have the same basic features and provide the technical results achieved when implementing the present invention.
[0012] The following exemplary embodiments of the invention are not intended to limit the inventive concept assumed by the claims of the invention. The examples provided serve to illustrate the essence of the invention in more detail, without the invention itself being limited to the specific details presented. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 A neural network is shown for interpreting natural language sentences. DETAILED DESCRIPTION
[0014] Interpretation is one of the cognitive functions of the human brain that allows understanding the content of information in a rule-based manner. The interpretation feature can be implemented when information needs to be translated into another state in order to understand the essence of the information. For example, in order to understand the meaning of a mathematical formula written in a language based on the strict formalism of mathematical logic, it must be possible to match the mathematical symbols with the semantic substance characteristics of the target language. Similar problems may also arise when sentences need to be converted in the same language, allowing the selection of synonyms that are more appropriate in a specific case, depending on the context and the selected style of speech, i.e., colloquial language, formal language, high language, etc. A similar situation may arise when researchers study scientific publications filled with complex terminology, which are not always understandable to unprepared readers. Therefore, when dealing with terminology within a single language and at the same time when dealing with foreign literature, the text can be interpreted whenever a source sentence or a text fragment in the original language needs to be translated into the target language.
[0015] In particular, this issue is in the spotlight, especially in the field of translation studies, where, for example, tasks are solved that will ensure interlingual communication in terms of projects related to international cooperation. In the course of such projects, a large number of translations are cumulatively carried out by professional translators as part of a specific project. This means that within the same project, there is a high probability that a certain source language word will have one project-specific basic meaning in the target language. Here, non-project-specific foreign language words will have additional meanings. Collecting and capturing such knowledge will make it possible to reuse the expertise of expert translators in the future, which will have a positive impact on the speed and quality of translations within the same subject area. The same applies to academic collaboration projects in a specific scientific or technical field.
[0016] During the previous stages of developing an information system, the tasks of analyzing, modeling and interpreting user information were solved by classifying the source information elements and modeling using ontologies, using a hierarchy of characteristics assigned to the records of the knowledge base. The complexity of the structure of such an ontological structure allows a detailed ordering of the records of the knowledge base by specialization and by analogy with books stored in different library departments. However, after this ordering, these records of the knowledge base and the relationships assigned to them will only reflect this established classification, i.e. they are used when processing subsequent user information, whose structure is not yet known to the user and does not ensure its effective use for interpreting new information.
[0017] The creation of a tool for interpreting sentences expressed in natural language can be solved by creating a trainable neural network in the memory cells of the neurons, where the semantic values of the original words and phrases are stored. Neural networks are traditionally used in fields that need to reflect expert knowledge as it relates to changing conditions of the external environment.
[0018] This characteristic of adapting or teaching a person to respond correctly through actions in a specific environment corresponds to the main problem solved by supervised machine learning. The problem consists in approximating the input data of set phrases and grammatical structures in order to obtain the most accurate output response by using a training set (i.e. source text sentences), comparing it with a test set (which represents the base meaning and additional meaning of the source words and phrases previously stored in the neural network), and then training the neural network with the base meaning and additional meaning of new words, set phrases and grammatical structures.
[0019] In order to more clearly illustrate the present invention, all of the following examples involve the interpretation of natural language sentences in performing translations of source words, phrases and sentences in an original language into a target language.
[0020] according to Figure 1 , the neural network used to interpret natural language sentences consists of several layers L n where n represents the number of layers. The first layer L1 of the neural network is configured to interpret the meaning of individual source text words. The second layer L2 of the neural network is configured to interpret individual phrases consisting of two words. Similarly, the Nth layer L n is configured to interpret phrases consisting of n words.
[0021] Each layer consists of neurons S. Each neuron S in the first layer L1 1i A memory unit is provided, obtained from a plurality of memory units M, which contains rules for interpreting a word in a source language into a target language. The interpretation rules include assigning binary features to the meaning of the word in the source language. Thus, if a binary feature "1" is applied to the meaning of any word in the target language, it represents the basic meaning. Other translation variants are assigned a binary feature "0", whereby the variant represents an additional meaning. The assignment of binary features can be performed, for example, by an expert translator who trains a neural network and is knowledgeable in the context of translation. In another example, features can be assigned by considering a statistical indicator of the frequency of translation variants of a word or phrase in a large amount of information (e.g., when comparing a bilingual corpus of texts translated by an expert translator).
[0022] Each neuron in each layer corresponds to a sequence of activation symbols, i.e., if the word “nobody” appears in the source text, then neuron S 1i is activated, and its memory cell stores the value of the word “nobody” in the target language. When the neuron is activated, it executes its target function f a , which consists of transmitting the basic value of the word or phrase to the neuron S in the last layer representing the output adder DNNThe neural network component is fully connected, that is, it supports parallel processing of source language text by all neurons of the network, including the output adder S DNN The features are also Figure 1 As shown in FIG. 1 , according to this feature, the input symbol sequence P1, P2, P3, ..., P k At the input of all neurons of the layer L of the neural network and at the output adder S DNN The sequence of input characters can be represented by individual words and phrases of the source sentence, the entire source sentence, the main text fragment, and the result of voice input.
[0023] Output adder objective function f DNN The word order of the source sentence is considered to aggregate the interpretation results of the previous layers and the original sentence in the target language is returned to the user. The resulting sentence can be returned to the user as a structure consisting of only the basic lexical meaning as well as a structure consisting of additional meanings.
[0024] If the meaning of the word in the source sentence of the target language is not stored in the memory cell of the network neuron, the output adder S DNN Return the word in the original language in the text received from the user.
[0025] In order to explain the present invention more clearly, in the following examples English is shown as the source language and Russian is shown as the target language.
[0026] The original sentence in English is:
[0027] "Nobody can go back and start a new beginning, but anyone can start today and make a new ending."
[0028] The following elements of sentence structure represented by words and setting phrases can be identified by experts when analyzing sentence structure: "nobody can", "go back", "and", "start a new beginning", "but", "anyone can", "start", "today", "and", "make a new ending".
[0029] If the neurons of the first layer of single words and the neurons of the set phrases and the grammatical structure of the second and subsequent layers are created therein, the trained neural network works efficiently. In the case where no neuron in the network can return the meaning of the word in the target language, the word is displayed to the user in the original language in the interpreted sentence. The occurrence of such a situation may signal to the expert that the neural network needs additional training. If the neural network outputs a word in the source language to give it a discarded meaning, this can also signal to the expert that a change needs to be made in one of the neural network layers in order to create a neuron, which stores the meaning of the context with which the translation accuracy can be compared. Therefore, for example, the words "go" and "back" can each have the basic meaning of "go" and "back" in Russian, respectively. However, the English phrase "go back" is set. Therefore, it is logical to keep the basic meaning of the phrase "go back" as "to return" in the second layer of the neural network.
[0030] As an example, to translate the sentence above, the neurons of the first neural network layer L1 should store the Russian meanings of the words “nobody”, “can”, “go”, “back”, “and”, “start”, “a”, “new”, “beginning”, “but”, “anyone”, “start”, “today”, “make”, and “ending”.
[0031] The neurons of the second neural network layer L2 should store the meaning of the following phrases:
[0032] "nobody can"-"никто не может";
[0033] "go back" - "вернуться обратно";
[0034] "anyone can" - "каждый может".
[0035] "new beginning"-"новое начало";
[0036] "new ending" - "новое окончание".
[0037] The second layer can also store other possible word combinations that appeared in the original sentence. Although storing non-set phrases may be redundant in some cases, the neural network may have the ability to resolve the semantic ambiguity encountered.
[0038] Furthermore, many additional meanings of the phrase can also be stored in the neuronal memory unit in order to provide further information to the user, for example:
[0039] 《new beginning》-《новое начало》-1;
[0040] 《new beginning》-《начало нового проекта》-0;
[0041] 《new beginning》-《начало нового этапа》-0;
[0042] 《new beginning》-《начало новой жизни》-0;
[0043] 《new beginning》-《новая возможность》-0;
[0044] 《new beginning》-《новая отправная точка》-0;
[0045] 《new beginning》-《новое дело》-0;
[0046] 《new beginning》-《новоеначинание》-0;
[0047] 《new beginning》-《новое предприятие》-0;
[0048] 《new beginning》-《новый проект》-0;
[0049] 《new beginning》-《новый шанс》-0;
[0050] 《new beginning》-《новый этап》-0.
[0051] In this case, "1" represents the value of the binary feature assigned to the basic meaning of the phrase in the target language, and "0" represents the value of the binary feature assigned to the additional meaning of the phrase in the target language.
[0052] For the phrase "new ending", storing the meaning of the phrase will be done by analogy:
[0053] "new ending"-"новое окончание"-1;
[0054] "new ending"-"новая концовка"-0;
[0055] "new ending"-"new completion"-0;
[0056] 《new ending》-《новый финал》-0.
[0057] Thus, the above-set phrases "new beginning" and "new ending" are sub-elements of two other phrases in the sentence, namely "make a new beginning" and "make a new ending". Due to the training, the memory cells of the two neurons of the fourth neural network layer L4 contain the following lexical meanings:
[0058] 《make a new beginning》-《начать все заново》-1
[0059] 《make a new beginning》-《начать новое дело》-0
[0060] 《make a new beginning》-《начать с начала》-0
[0061] 《make a new beginning》-《начать с чистого листа》-0
[0062] "make a new ending"-"завершить определенное новое дело"-1
[0063] "make a new ending"-"make a new ending"-0
[0064] 《make a new ending》-《сделать новую концовку》-0
[0065] 《make a new ending》-《сделать новый финал》-0
[0066] The neural network according to the invention is fully connected, i.e., the original sentence is interpreted in parallel by all layers of the network, including the output adder neuron S DNNThis means, for example, that neurons S associated with the words "make", "a", "new", "beginning" are simultaneously received from neurons of the first layer L1 DNN The value is exactly the same as the meaning of the phrase "make a new beginning", that is, the neurons from the fourth layer L4, and when interpreting the source sentence, the meaning received from the old layers of the network takes precedence. Given the word order characteristics of the original sentence, neuron S DNN Aggregate the resulting meanings in the same order. So, the output sentence will have the following appearance: “No one can go back and start over, but everyone can start today and complete a new thing.” [“No one can go back and start over, but everyone can start today and complete a new thing.”]
[0067] The user then analyzes the accuracy of the interpretation and interactively trains new elements of the input data contained therein by creating new neurons in the relevant network layers in order to optimize the resulting results.
[0068] At the same time, in order to improve the information provided to the user, the neural network displays all the meanings of the words and phrases that contain the input data, thus ensuring the accuracy of the interpretation of new phrases, the processing of which is the task of the new network neurons.
[0069] It should be noted that for more efficient network operation, neurons can also contain the meaning of various word forms in the original language. Thus, in the case of the word "go", the meaning can be stored next to other possible forms "goes", "going", "gone", "have gone", "has gone", "has been going", etc. The same applies when considering the person of the verb form for translation. In this case, the neural network will store the meaning of the phrases "she has gone", "he has gone", "he is going", etc.
[0070] As an example and known from the prior art, the data source for training the neural network may be data from the Reverso Context service and containing a corpus of bilingual texts translated by professional translators.
[0071] The functionality of the claimed neural network for interpreting sentences as natural language may be partially or completely implemented by one or more hardware logic components. These components may be represented by, for example, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a standard application specific integrated circuit (ASSP), a system on a chip (SOC), a complex programmable logic device (CPLD), or another configurable processor device.
[0072] In various embodiments, the present invention can also be used with a client-server software product, where the client device can be a personal computer or a mobile device, and the functionality provided by the present invention is shared between the client device and the server. In addition, the present invention can be used as part of a cloud-based software product, where the overall functionality provided by the present invention is transferred to the server side, and the client device is only equipped with a web browser or other method of accessing an Internet server, thereby providing the user with a graphical user interface generated by the Internet server.
[0073] Industry Applications
[0074] Improving the quality of interpretation of natural language sentences by reusing expert experience represents a technical result obtained by implementing the present invention. The present invention can be used in more general purpose automatic information systems and is intended to organize interlingual communication processes included in all systems that require the conversion of source texts from one language form to another.
Claims
1. A non-transitory computer-readable storage medium having stored thereon an executable instruction set for a neural network composed of layers of neurons for interpreting natural language sentences, the executable instruction set being configured to, when executed by at least one processor: Using the first input neuron layer, interpret the meaning of each word of the sentence phrase; Using intermediary neuron layers, interpreting the sentence phrases, the number of the individual words corresponding to the number of the intermediary neuron layers in the neural network; and interpreting the sentence phrase based on the interpreted lexical meaning in the intermediate neuron layer using a final neuron layer represented by output neurons, in, Each neuron of the first input neuron layer and the intermediate neuron layer comprises a memory unit configured to store a meaning of a word or a phrase, respectively, wherein each such meaning corresponds to a binary feature whose encoding is described by a "1" representing a basic meaning of the word or the phrase and a "0" representing an additional meaning of the word or the phrase.
2. The non-transitory computer-readable storage medium according to claim 1, in, The criterion for the binary symbols used to determine the meaning of the word or the phrase in the neural network is the maximum statistical indicator of their use in a large amount of information.
3. The non-transitory computer-readable storage medium according to claim 1, in, The criteria for the binary features used to determine the meaning of the word or the phrase in the neural network represent the assessment made by an expert when training the neural network taking into account the context in which the word or the phrase is used.
4. The non-transitory computer-readable storage medium according to claim 1, in, Each neuron of the first input neuron layer and the intermediate neuron layer in the neural network corresponds to an objective function of assigning a basic meaning or an additional meaning to the word or the phrase for a user and transmitting the basic meaning to the output neuron.
5. The non-transitory computer-readable storage medium according to claim 4, in, The objective function of the neurons of the first input neuron layer or the intermediate neuron layer in the neural network is executed after activating the neurons of the first input neuron layer or the intermediate neuron layer.
6. The non-transitory computer-readable storage medium according to claim 5, in, The condition for activating neurons of the first input neuron layer or the intermediate neuron layer in the neural network is matching an input word or an input phrase with the meaning of the word or the phrase, respectively, recorded in the neuron memory unit.
7. The non-transitory computer-readable storage medium according to claim 1, in, The objective function of the output neurons in the neural network is to add meanings of words and phrases, the meanings of which are interpreted in the first input neuron layer and the intermediate neuron layer.
8. The non-transitory computer readable storage medium of claim 1, implemented on a field programmable gate array (FPGA).
