Data processing device, data processing method and data processing program
Patent Information
- Application Number
- JP2022555026
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-10-07
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-10-07
AI Technical Summary
【0008】 本発明によれば、言語モデルの精度を高めるような学習用データの増強を行うことができる。
Smart Images

Figure 0007556395000009 
Figure 0007556395000010 
Figure 0007556395000013
Abstract
Description
[Technical field]
[0001] The present invention relates to a data processing device, a data processing method, and a data processing program. [Background technology]
[0002] Conventionally, speech recognition using neural networks has been known. In addition, acoustic models and language models are used in speech recognition. Since speech recognition is essentially a highly domain-dependent technology, it may be difficult to obtain texts that serve as training data for language models, particularly in domains with few available resources, such as natural speech and minor languages.
[0003] In response to this, known methods for obtaining training data for a language model include, for example, a method of collecting text data related to the target domain by web searches, and a method of using a small amount of text data from the target domain as well as a large amount of text data from other domains with sufficient resources (see, for example, non-patent documents 1 and 2). [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] A. Stolcke, “SRILM-AN EXTENSIBLE LANGUAGE MODELING TOOLKIT”, in Proc. ICSLP, 2002, pp. 901-904. [Non-Patent Document 2] B.-J. Hsu, “GENERALIZED LINEAR INTERPOLATION OF LANGUAGE MODELS”, in Proc. ASRU, 2007, pp. 549-552. [Non-Patent Document 3] L. Mangu, E. Brill, and A. Stolcke, “Finding consensus in speech recognition: word error minimization and other applications of confusion networks”, Computer Speech and Language 14 (4), 373-400, October 2000. Summary of the Invention [Problem to be solved by the invention]
[0005] However, the conventional methods have the problem that it is sometimes difficult to increase the amount of training data to improve the accuracy of the language model. For example, the method of collecting text data related to the target domain by web search has the problem that the collected data must be carefully formatted. In addition, the method of using a large amount of text data from other domains with sufficient resources has the problem that the effectiveness depends on how close the target domain is to the other domain.
[0006] The present invention has been made in consideration of the above, and aims to provide a data processing device, a data processing method, and a data processing program that can increase learning data so as to improve the accuracy of a language model. [Means for solving the problem]
[0007] In order to solve the above-mentioned problems and achieve the object, a data processing device according to the present invention has an extraction unit that extracts a second word corresponding to a first word included in a first text from a plurality of words belonging to a predetermined domain; a generation unit that generates a confusion network, which is an expression format for word sequences and represents a plurality of sentence candidates in a single network configuration by repeating the processing in the extraction unit for all words included in the first text; and a selection unit that searches the confusion network for grammatically correct word strings using a language model that evaluates the grammatical correctness of word strings and selects the word string to output. Effect of the Invention
[0008] According to the present invention, it is possible to increase the amount of learning data so as to improve the accuracy of a language model. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of the configuration of a data processing device according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a process flow of the data processing device shown in FIG. [Diagram 3] FIG. 3 is a diagram illustrating a bidirectional LSTM. [Figure 4] FIG. 4 is a diagram for explaining word selection by the confusion network generation unit shown in FIG. [Diagram 5] FIG. 5 is a flowchart showing the processing procedure of the data processing method according to the embodiment. [Figure 6] FIG. 6 is a diagram showing details of the data set. [Figure 7] FIG. 7 is a diagram showing the experimental results in the verification experiment. [Figure 8] FIG. 8 is a diagram illustrating an example of a computer that realizes a data processing device by executing a program. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. Note that the present invention is not limited to this embodiment. In addition, in the description of the drawings, the same parts are indicated by the same reference numerals. Note that, hereinafter, when "^A" is written for A, it is equivalent to "a symbol with "^" written immediately above "A".
[0011] In the following embodiments, a string of words is called a "sentence" or "text." The number of words in a sentence is defined as the "length of the sentence." The position in a sentence where a word appears is defined as the "time."
[0012] For example, the sentence "I like cooking" consists of five words, so its length is 5. Furthermore, the word in the sentence at time 1 is "I." Furthermore, the word in the sentence at time 2 is "is." Furthermore, the word in the sentence at time 3 is "cooking." Furthermore, the words in the sentence are identified by morphological analysis, etc.
[0013] In this embodiment, sentences and words are classified into domains. For example, the method of classifying domains may be based on the content of sentences, such as subjects and fields, or on writing style, such as plain style ("da / dearu style"), polite style ("desu / masu style"), lecture style, colloquial style, and conversational style. The method of classifying domains may also be a combination of the above criteria.
[0014] Furthermore, the domains may be referred to as "styles," "categories," etc. Also, the domains may be classified manually or automatically using a classification model.
[0015] The data processing device of the embodiment aims to enhance learning data for a predetermined domain. The data processing device receives text for a first domain as an input and generates text for a second domain. For example, when text for the second domain cannot be sufficiently prepared, the data processing device generates text for the second domain using text for the first domain that is available in large quantities. Furthermore, the data processing device adds the generated text to the learning data, thereby enhancing the learning data and contributing to improving the accuracy of the language model for the second domain.
[0016] The data processing device of the embodiment converts the domain of text in an unsupervised manner. In this embodiment, unsupervised means that text in the destination domain that is paired with text in the source domain is not used. In this way, the data processing device can augment text data in a domain that is difficult to obtain based on text in a domain with a large amount of text.
[0017] The language model is, for example, N-gram or a neural network. N-gram assumes that the probability of a word appearing in a sentence at a certain time is determined depending on the past N-1 words, and models the probability of each word appearing at a certain time based on the results of morphological analysis of a large amount of computerized text. A model that depends on one past word (N=2) is called a bigram. A model that depends on two past words (N=3) is called a trigram. N-gram is a generalization of these.
[0018] [Embodiment] [Data processing device configuration] First, the configuration of a data processing device according to an embodiment will be described with reference to Fig. 1. Fig. 1 is a diagram showing an example of the configuration of a data processing device according to an embodiment. As shown in Fig. 1, a data processing device 10 has an interface unit 11, a storage unit 12, and a control unit 13.
[0019] The interface unit 11 is an interface for inputting and outputting data. The interface unit 11 accepts input of data via an input device such as a mouse or a keyboard. The interface unit 11 also outputs data to an output device such as a display.
[0020] The storage unit 12 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), an optical disk, etc. The storage unit 12 may be a semiconductor memory in which data can be rewritten, such as a random access memory (RAM), a flash memory, or a non-volatile static random access memory (NVSRAM). The storage unit 12 stores an operating system (OS) and various programs executed by the data processing device 10. The storage unit 12 stores source and destination domain text data 121, language model information 122, replacement model information 123, and dictionary information 124.
[0021] The source and destination domain text data 121 is a set of texts classified into the source domain and a set of texts classified into the destination domain. The destination domain may be a domain from which it is difficult to collect texts.
[0022] The language model information 122 is parameters for constructing a language model such as N-gram. The replacement model information 123 is parameters for constructing a replacement model described later. If the replacement model is a bidirectional LSTM (long short-term memory), the replacement model information 123 is weights of each layer, etc.
[0023] The dictionary information 124 is data in which words are indexed, and includes words from both the source and destination domains.
[0024] The control unit 13 controls the entire data processing device 10. The control unit 13 is, for example, an electronic circuit such as a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), or an integrated circuit such as an ASIC (Application Specific Integrated Circuit) or an FPGA (Field Programmable Gate Array). The control unit 13 also has an internal memory for storing programs that define various processing procedures and control data, and executes each process using the internal memory. The control unit 13 also functions as various processing units by the operation of various programs.
[0025] For example, the control unit 13 has a learning unit 131, an extraction unit 132, a confusion network generation unit 133 (generation unit), and a selection unit 134. Here, the details of each unit included in the control unit 13 will be described with reference to Fig. 2. Fig. 2 is a diagram for explaining the flow of processing of the data processing device 10 shown in Fig. 1.
[0026] The learning unit 131 learns a language model using the source and destination domain text data 121. In learning the language model, for example, the language model learned using the source and destination domain text data may be adapted to the destination domain using only the destination domain text data in order to learn a language model more suitable for the destination domain. Alternatively, for example, two language models may be learned using the source domain text data and the destination domain text data separately, and parameters of the two language models may be weighted and added to create one language model. At this time, in order to create a language model more suitable for the destination domain, the weight of the language model learned using the destination domain text data is set to be large. The learning unit 131 stores information such as parameters of the learned language model in the storage unit 12 as language model information 122.
[0027] The extraction unit 132 extracts a second word corresponding to a first word included in a first text (sentence) from among a plurality of words belonging to a predetermined domain. The confusion network generation unit 133 repeats this extraction process for all words included in the first text (sentence) to generate a confusion network capable of compactly expressing a sequence of a plurality of words (for details on confusion networks, see Non-Patent Document 3).
[0028] Specifically, as shown in Fig. 2, the extraction unit 132 inputs a sentence of the source domain to a replacement model constructed based on the replacement model information 123. Then, based on the output result of the replacement model, candidate words are extracted from a plurality of words included in the dictionary information 124. The source sentence "I like research" is an example of a first text.
[0029] The extraction unit 132 extracts words using a bidirectional LSTM as a replacement model (Reference 1: S. Kobayashi, “Contextual Augmentation: Data Augmentation by Words with Paradigmatic Relations”, in Proc. NAACL-HLT, 2018, pp. 452-457.). FIG. 3 is a diagram for explaining a bidirectional LSTM. As shown in FIG. 3, the extraction unit 132 inputs a first text together with a label specifying a domain into the bidirectional LSTM, and extracts the obtained word as a second word.
[0030] The replacement model is a text of length T, W=w 1:T =w1,...,w T Given a word sequence w 1:t-1 =w1,...,w t-1 , and a backward partial word sequence w T:t+1 =w1,...,w t-1The replacement model recursively estimates hidden state vectors from forward and backward partial word sequences in the fwlstm (forward LSTM) and bwlstm (backward LSTM) layers, and obtains hidden state vectors at time t-1 and time t+1 as shown in equations (1) and (2), respectively.
[0031]
number
[0032]
number
[0033] Furthermore, in the permutation model, in the concat layer, each hidden state vector is concatenated with a scalar value d as shown in equation (3).
[0034]
number
[0035] Here, d is a binary domain label. In this embodiment, as an example, d=0 corresponds to a lecture, and d=1 corresponds to a conversation. Generally, it is easy to collect learning data for the lecture domain, but it is difficult to collect learning data for the conversation domain. Here, d=0 represents the source domain, and d=1 represents the destination domain. d t is the domain-dependent hidden state vector at time t. Furthermore, the shunt model is d t is input to one linear layer, and z d t Furthermore, the replacement model gives z d tis input to the softmax layer to obtain the domain-dependent word probability distribution P at time t as shown in equation (5).
[0036]
number
[0037]
number
[0038] where ^w t is the predicted word at time t. Also, idx(^w t ) is the ^w in dictionary information 124 t Also, W\w t is from sentence W to w t It is a string of words excluding.
[0039] The swap model is trained using training data from both the source and destination domains. In training the swap model, pre-training is first performed without using domain labels, and then fine-tuning is performed using domain labels. By training using domain labels, the swap model acquires domain-dependent vocabulary.
[0040] For example, as shown in Figure 3, a forward partial word sequence w 1:t-1 = {…, I, ha} and a backward word sequence w T:t+1 For example, if d=0 (the domain is lectures), then at time t, words such as “research”, “development”, and “DNN” are given a high probability, whereas if d=1 (the domain is conversation), words such as “movie”, “golf”, and “cooking” are given a high probability.
[0041] When converting a sentence in the lecture domain to a sentence in the conversation domain, the extraction unit 132 inputs the sentence in the lecture domain (d=0) to the replacement model and specifies the domain label of the conversion destination as conversation (d=1). This makes it possible to generate a sentence in which a word in the lecture domain is replaced with a word in the conversation domain at each time based on the input sentence in the lecture domain.
[0042] In this case, if the extraction unit 132 selects the most likely word from the word probability distribution at each time, for example, as the simplest method, only one conversation domain sentence can be generated from one lecture domain sentence, and data augmentation cannot be performed. Therefore, in order to generate sentences of multiple conversation domains from one lecture domain sentence and augment the data, the extraction unit 132 introduces a sampling method based on the Gumbel distribution.
[0043] Specifically, extraction unit 132 samples values from the Gumbel distribution for the vocabulary size, and adds them to the word probability distribution estimated by the swapping model to generate a new word probability distribution.
[0044] Next, the confusion network generation unit 133 repeatedly generates a new word probability distribution obtained by sampling based on the replacement model and Gumbel distribution in the extraction unit 132 for all words (at each time) included in the input source text (sentence). Here, it is assumed that the words in the word probability distribution are sorted in descending order of their probability values.
[0045] FIG. 4 is a diagram for explaining word selection by the confusion network generating unit 133 shown in FIG. 1. As shown in FIG. 4, the confusion network generating unit 133 selects words from the top of the word probability distribution at each time. At this time, words are selected such that the cumulative probability does not exceed Q when the top K words or words from the top are selected (either K or Q, or both may be used). The larger K and Q (second parameters) are, the more words remain in each segment of the confusion network, and the smaller K and Q are, the fewer words remain in each segment of the confusion network. K and Q can be said to be parameters that set the number of words shown in each segment of the confusion network.
[0046] For example, K and Q are K=5 and Q=0.8. When words are selected in this manner, the total value of the word probabilities at each time point falls below 1, so the confusion network generation unit 133 selects words at each time point and then normalizes the words so that the total probability becomes 1. Through this process, the confusion network generation unit 133 can generate a confusion network N1, which represents a plurality of sentence candidates in one network configuration and is a representation format for word sequences, as shown in FIG.
[0047] Next, the selection unit 134 selects a word string to be finally output from the confusion network. As is clear from the above confusion network generation procedure, the words on the confusion network are generated independently at each time (each segment) without considering the context before and after. For this reason, when words on the word confusion network are concatenated, a word string that is not necessarily grammatically correct may be generated.
[0048] For example, if we concatenate the words with the highest probability values (the words at the top of each time point) from the confusion network N1 in Figure 2, the grammatically incorrect word sequence "He plays movies" will be generated.
[0049] Therefore, in order to generate a grammatically correct word string, the selection unit 134 searches for a word string on the confusion network using a language model that evaluates the grammatical correctness of the word string, and finally selects a word string to be output. At this time, as the language model, for example, an LSTM language model that can evaluate the grammatical correctness of a word string can be used.
[0050] Specifically, the following partial word sequence w 1:t =w1,...,w t A search is performed according to equation (6), which is the evaluation formula (probability value) of the above, and a word string is selected.
[0051]
number
[0052] Here, P lstm (w t |w 1:t-1 ) is a partial word sequence (word history) w 1:t-1 Given a word, the LSTM language model calculates the next word w t is the predicted probability of P cn (w t ) is the word w in the confusion network. t The probability of P(w 1:t-1 ) is the evaluation formula (probability value) of a partial word sequence from one time ago (one word shorter). λ (the first parameter) is P lstm (w t |w 1:t-1 ) and P cn (w t ) and 0≦λ≦1. In other words, λ is the number of correct words in the grammar (P lstm (w t |w 1:t-1 )) and diverse word sequences (P cn (w t ) is a parameter that indicates the priority of the word sequence. The closer λ is set to 1, the more importance is placed on the grammatical correctness of the word sequence. Conversely, the closer λ is set to 0, the more importance is placed on the diversity of the word sequence.
[0053] The selection unit 134 performs a beam search based on the evaluation formula (6). During the beam search, an upper limit is set on the number of partial word strings to be considered during the search. For this purpose, partial word strings are pruned. The number of partial word strings after pruning is limited to the top B, and other partial word strings are pruned. B is set to 5, for example. The search is performed until time T, and the selection unit 134 selects the word string with the highest probability value at time T as the word string of the finally generated destination domain.
[0054] The closer λ is to 1, the more importance is placed on the grammatical correctness of the selected word string. Conversely, the closer λ is to 0, the more importance is placed on diversity, so that the selected word string contains a variety of words, rather than grammatical correctness. The selection unit 134 outputs, with priority, either a grammatically correct word string or a diverse word string, according to a preset λ.
[0055] In this case, when K and Q are set to relatively large values and the number of words remaining in each segment of the confusion network is large, the number of word strings with diversity increases, so λ may be adjusted to approach 1 so as not to output too many word strings. Also, when K and Q are set to relatively small values and the number of words remaining in each segment of the confusion network is small, the number of word strings with diversity decreases, so λ may be adjusted to approach 0 so as not to output too few word strings. In this way, it is also possible to adjust the value of λ according to K and Q which set the number of words shown in each segment of the confusion network.
[0056] [Data processing method] Next, a processing procedure of the data processing method according to the present embodiment will be described with reference to a flowchart shown in FIG 5.
[0057] 5, a learning process is performed to learn a language model using source and destination domain text data 121 (step S1). Next, the extraction unit 132 performs an extraction process to extract a second word corresponding to a first word included in a first text (sentence) from a plurality of words belonging to a predetermined domain (step S2).
[0058] The confusion network generation unit 133 performs a confusion network generation process to generate a confusion network by repeating the extraction process in the extraction unit 132 for all words in the text (step S3). The selection unit 134 searches the confusion network for grammatically correct word strings using a language model that evaluates the grammatical correctness of word strings, and performs a selection process to select a word string to be output (step S4).
[0059] [Verification experiment] A verification experiment was conducted to verify the effectiveness of the embodiment. The verification experiment will be described below. In the experiment, the CSJ lecture speech corpus (Reference 2: K. Maekawa, “CORPUS OF SPONTANEOUS JAPANESE: ITS DESIGN AND EVALUATION”, in Proc. Workshop on Spontaneous Speech Processing and Recognition (SSPR), 2003, pp. 7-12.) (hereinafter, CSJ) was used as text data of the source domain. In addition, the NTT Meeting (multiple-person free conversation) speech corpus (Reference 3: T. Hori, S. Araki, T. Yoshioka, M. Fujimoto, S. Watanabe, T. Oba, A. Ogawa, K. Otsuka, D. Mikami, K. Kinoshita, T. Nakatani, A. Nakamura, and J. Yamato, “Low-Latency Real-Time Meeting Recognition and Understanding Using Distant Microphones and Omni-Directional Camera”, IEEE TASLP, vol. 20, no. 2, pp. 499-513, Feb. 2012.) (hereinafter, NTT) was used as text data for the destination domain.
[0060] In the experiment, the CSJ was converted into the NTT conversation domain using the method of the embodiment, and five pieces of data were generated with data volumes 1x, 10x, and 100x larger (denoted as GenCSJx{1, 10, 100}).
[0061] Furthermore, five trigram language models were trained using NTT, CSJ, and GenCSJx{1,10,100}, respectively (below, trigram language models are denoted by the names of the training data). In addition, a trigram language model (NTT+CSJ) in which NTT and CSJ were weighted based on the PPL for the NTT-developed data, and three trigram language models (NTT+CSJ+GenCSJx{1,10,100}) in which NTT, CSJ, and GenCSJx{1,10,100} were weighted were created (see Non-Patent Documents 1 and 2 for the weighting calculation procedures).
[0062] We calculated the PPL, OOV (out-of-vocabulary rate), and WER (word error rate) for the above nine trigram language models for both the NTT development data (data for which the correct answer is known and is used to set each parameter) and the NTT evaluation data (data for which the result is unknown). Note that for all of the PPL, OOV, and WER, the smaller the value, the better the accuracy.
[0063] Fig. 6 is a diagram showing details of the data set, and Fig. 7 is a diagram showing the experimental results in the verification experiment.
[0064] The effectiveness of the method according to this embodiment can be confirmed by comparing 2.CSJ with 3.-5.GenCSJx{1,10,100} in Fig. 7. This is because 3.-5. show lower OOV,WER compared to 2. Note that since the vocabulary sizes of the models are different, a fair comparison of PPLs cannot be made, and PPLs are shown in parentheses.
[0065] Then, when the data of 2.CSJ and 3.GenCSJx1 were compared, it was found that 38.5% of the words were replaced. Furthermore, 3. to 5. show lower OOV and WER than 1.NTT. Also, by comparing 3. to 5., the OOV and WER of 5., which has 100 times the data amount, are lower than those of 1 and 10 times the data amount, so the effect of generating a large amount of data can be confirmed. By comparing 6.NTT+CSJ with 7 to 9.NTT+CSJ+GenCSJx{1,10,100}, it can be confirmed that the method of this embodiment can achieve a reduction in the final WER.
[0066] [Effects of the embodiment] In this manner, in the embodiment, a second word corresponding to a first word included in a first text is extracted from a plurality of words belonging to a predetermined domain, and the extraction process is repeated for all words included in the first text to generate a confusion network that represents a word sequence and represents a plurality of sentence candidates in a single network configuration. A language model that evaluates the grammatical correctness of a word sequence is used to search for a grammatically correct word sequence on the confusion network, and the word sequence to be output is selected, thereby augmenting the training data.
[0067] Furthermore, as shown in the above verification experiment, the training data generated using the data processing method according to this embodiment shows low OOV, PPL, and WER even when a large amount of data is generated. Therefore, according to this embodiment, it is possible to increase the training data so as to improve the accuracy of the language model.
[0068] In the above explanation, a replacement model and a language model for selecting a word string to be finally output from the confusion network are based on LSTM. However, a model based on Transformer (Reference 4: Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin, “Attention is all you need”, Proceedings of the 31st International Conference on Neural Information Processing (NIPS) 2017.) may also be used.
[0069] [program] 8 is a diagram showing an example of a computer in which a program is executed to realize the data processing device 10. The computer 1000 has, for example, a memory 1010 and a CPU 1020. The computer 1000 also has a hard disk drive interface 1030, a disk drive interface 1040, a serial port interface 1050, a video adapter 1060, and a network interface 1070. These components are connected by a bus 1080.
[0070] The memory 1010 includes a ROM (Read Only Memory) 1011 and a RAM 1012. The ROM 1011 stores a boot program such as a BIOS (Basic Input Output System). The hard disk drive interface 1030 is connected to a hard disk drive 1090. The disk drive interface 1040 is connected to a disk drive 1100. A removable storage medium such as a magnetic disk or an optical disk is inserted into the disk drive 1100. The serial port interface 1050 is connected to a mouse 1110 and a keyboard 1120, for example. The video adapter 1060 is connected to a display 1130, for example.
[0071] The hard disk drive 1090 stores, for example, an OS (Operating System) 1091, an application program 1092, a program module 1093, and program data 1094. That is, a program that defines each process of the data processing device 10 is implemented as a program module 1093 in which computer-executable code is written. The program module 1093 is stored, for example, in the hard disk drive 1090. For example, a program module 1093 for executing the same process as the functional configuration of the data processing device 10 is stored in the hard disk drive 1090. The hard disk drive 1090 may be replaced by an SSD (Solid State Drive).
[0072] Furthermore, setting data used in the processing of the above-described embodiment is stored as program data 1094, for example, in the memory 1010 or the hard disk drive 1090. Then, the CPU 1020 reads out the program module 1093 or the program data 1094 stored in the memory 1010 or the hard disk drive 1090 into the RAM 1012 as necessary, and executes them.
[0073] Note that the program module 1093 and the program data 1094 are not limited to being stored in the hard disk drive 1090, but may be stored in, for example, a removable storage medium and read by the CPU 1020 via the disk drive 1100 or the like. Alternatively, the program module 1093 and the program data 1094 may be stored in another computer connected via a network (such as a local area network (LAN) or wide area network (WAN)). The program module 1093 and the program data 1094 may then be read by the CPU 1020 from the other computer via the network interface 1070.
[0074] Although the embodiments of the present invention have been described above, the present invention is not limited by the descriptions and drawings that form part of the disclosure of the present invention according to the present embodiments. In other words, other embodiments, examples, and operation techniques made by those skilled in the art based on the present embodiments are all included in the scope of the present invention. [Explanation of symbols]
[0075] 10 Data Processing Device 11 Interface section 12 Storage section 13 Control section 121 Source and destination domain text data 122 Language Model Information 123 Replacement Model Information 124 Dictionary Information 131 Learning Department 132 Extraction part 133 Confusion network generation unit 134 Selection section
Claims
1. An extraction unit that defines the position at which a word appears in a sentence as a time, and estimates a word probability distribution when a first word contained in text of a first domain is replaced with a second word which is a word of a second domain using a replacement model that estimates a domain-dependent word probability distribution at each time, samples values equivalent to the vocabulary size from a Gumbel distribution, and adds these values to the word probability distribution to generate a new word probability distribution; a generation unit that generates a confusion network, which is a representation format of a word sequence, by repeatedly generating the new word probability distribution in the extraction unit for each time point of the text of the first domain, selecting a plurality of second words from the top of the new word probability distribution for each time point, and arranging the second words at each time point in time order while being assigned word probabilities indicated by the new word probability distribution; and a selection unit that searches the confusion network for grammatically correct word strings using a language model that evaluates the grammatical correctness of word strings and selects a word string to be output; A data processing device comprising:
2. the selection unit uses a preset evaluation formula to preferentially output either a word string having diversity based on words on the confusion network or a grammatically correct word string evaluated by the language model; and the evaluation formula includes the word probability assigned to the word on the confusion network and a prediction probability of the next word by the language model when a partial word string from the beginning of a sentence is given, and a weighting of the word probability and the prediction probability is adjusted using a first parameter; 2. The data processing apparatus according to claim 1, wherein the greater the weight of the word probability relative to the weight of the prediction probability according to the first parameter, the greater the priority is given to word strings having diversity based on words on the confusion network, and the greater the weight of the prediction probability relative to the weight of the word probability according to the first parameter, the greater the priority is given to grammatically correct word strings evaluated by the language model.
3. the value of the first parameter is adjusted in response to a second parameter that sets the number of words to be shown at each time in the confusion network; 3. The data processing apparatus according to claim 2, wherein when the value of the second parameter is equal to or greater than a predetermined value, the first parameter is adjusted so that the weight of the word probability is greater than the weight of the predicted probability, and when the value of the second parameter is less than the predetermined value, the first parameter is adjusted so that the weight of the word probability is greater than the weight of the predicted probability.
4. A data processing method executed by a data processing device, comprising: an extraction step of estimating a word probability distribution when a first word included in a text of a first domain is replaced with a second word which is a word of a second domain, using a replacement model that estimates a domain-dependent word probability distribution at each time, defining a position where a word appears in a sentence as a time, sampling values from the Gumbel distribution equivalent to the vocabulary size, and adding them to the word probability distribution to generate a new word probability distribution; a generation step of repeatedly generating the new word probability distribution in the extraction step for each time point of the text of the first domain, selecting a plurality of the second words from the top of the new word probability distribution for each time point, and arranging the second words at each time point in chronological order while being assigned the word probabilities indicated in the new word probability distribution, thereby generating a confusion network that represents a word sequence and represents a plurality of sentence candidates in a single network configuration; a selection step of searching for grammatically correct word strings on the confusion network using a language model that evaluates the grammatical correctness of word strings, and selecting a word string to be output; A data processing method comprising:
5. A data processing program for causing a computer to function as the data processing device according to any one of claims 1 to 3.
Citation Information
Patent Citations
Machine translation method and device based on target language repeat resources
CN102650988A
Correspondence generation program, correspondence generation device, correspondence generation method, and translation program
JP2019159743A
Data generation device
JP2020112915A
Method and system for enhancing text alignment between a source language and a target language during statistical machine translation
US20130054224A1
