English pinyin recognition method and system for multilingual mixed text

The neural network recognition model is used to distinguish English strings and pinyin strings in Chinese texts, which solves the problem of difficulty in distinguishing English and pinyin in the existing technology and improves the accuracy and user experience of natural language processing.

CN112528649BActive Publication Date: 2024-09-17YTO EXPRESS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011474265.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-14
Publication Date
2024-09-17
Estimated Expiration
2040-12-14

AI Technical Summary

Technical Problem

It is difficult for the existing technology to accurately distinguish mixed English strings and Chinese Pinyin strings in Chinese text, resulting in poor accuracy of natural language understanding and poor user experience.

Method used

A mixed language recognition model based on neural networks is used to perform feature vectorization and normalization processing on English strings. BP neural network training is used to identify mixed English strings and pinyin strings in Chinese, and syllable serial numbers and category labels are used as Input the feature matrix, and use one-hot encoding and max-min normalization methods to improve recognition accuracy.

Benefits of technology

It improves the accuracy of semantic recognition and understanding of Chinese short texts, improves natural language processing capabilities and the recognition accuracy of human-computer dialogue in question and answer systems, and solves the pain point of identifying multi-language mixed errors in Chinese texts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112528649B
    Figure CN112528649B
Patent Text Reader

Abstract

The present invention discloses a method and system for English pinyin recognition of multilingual mixed spoken text, which automatically recognizes whether the English character string mixed in the Chinese spoken text is English or Chinese pinyin, thereby improving the accuracy of semantic recognition and understanding of Chinese short text. The technical solution is: the composition rule features of English words and Chinese pinyin are trained and analyzed through a mixed language recognition model, and the English character string mixed in the Chinese spoken text is recognized based on the trained model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a multi-language text processing technology, and in particular to a processing technology for automatically identifying English word character strings and Chinese pinyin character strings in a multi-language text mixture. Background Art

[0002] In recent years, deep learning has achieved many breakthrough research results in the field of natural language processing. Many engineering applications based on natural language understanding have been widely used. However, in real scenarios, there are often some errors in the user's input text caused by uncontrollable factors. These errors limit the development of natural language understanding technology in applications such as question-answering systems, chat assistants, and search engines, resulting in poor user experience. As a bridge between input data and natural language understanding, the accuracy of intent recognition directly affects the results of natural language understanding.

[0003] In China, the most common phenomenon of multilingual mixing is the mixing of some English strings in Chinese spoken text. These English strings are not only English words, but also contain Pinyin combinations. Most Chinese people input Chinese characters through Pinyin input method. The input form of Chinese characters is very different from the written form. Therefore, many users tend to forget the characters when writing, resulting in some Chinese characters being replaced by Pinyin in many Chinese texts. This phenomenon also occurs with a high probability among college students. However, Pinyin and English are both composed of English characters, and it is difficult for computers to correctly distinguish whether the English strings or Pinyin mixed in the Chinese spoken text are mixed.

[0004] Some researchers have proposed solutions to the above difficulties. However, most of them still deal with a single language or a mixture of Chinese and English. Then, when a pinyin string similar to an English word appears in the text, it may be corrected as an English word, which cannot effectively handle the errors of Chinese mixed with multiple languages.

[0005] Therefore, the industry is currently in urgent need of a technology that can distinguish between English and pinyin that may appear in Chinese text. Summary of the invention

[0006] A brief summary of one or more aspects is given below to provide a basic understanding of these aspects. This summary is not an exhaustive overview of all conceived aspects, and is neither intended to identify the key or critical elements of all aspects nor to define the scope of any or all aspects. Its only purpose is to give some concepts of one or more aspects in a simplified form as a prelude to a more detailed description that will be given later.

[0007] The purpose of the present invention is to solve the above-mentioned problem and to provide an English pinyin recognition method and system for multi-language mixed texts, which can automatically identify whether English character strings mixed in Chinese short texts are English words or Chinese pinyin, thereby improving the accuracy of semantic recognition and understanding of Chinese short texts, improving natural language processing capabilities, and providing more powerful support for the recognition of human-computer dialogues in question-and-answer systems.

[0008] The technical solution of the present invention is: the present invention discloses an English pinyin recognition method for multi-language mixed text, the method comprising:

[0009] Step 1: Process the acquired English string into feature vectors;

[0010] Step 2: Get the feature matrix represented in step 1 and normalize it;

[0011] Step 3: Use the feature vector obtained in step 2 as the input of the neural network to train the mixed language recognition model based on the neural network, and predict the category value of the English string mixed in Chinese according to the trained mixed language recognition model.

[0012] According to an embodiment of the English pinyin recognition method for multi-language mixed text of the present invention, in step 1, syllable serial number values ​​and category labels of 26 letter combinations are selected as the input feature matrix; wherein the syllable serial number represents the sequential serial number from 1 to 26 from the letter a to the letter z, and the syllable serial number value represents the sum of the relative distances between the word and the letter 'a' under each serial number; the category label indicates whether it is an English character fragment or a pinyin string.

[0013] According to an embodiment of the English pinyin recognition method for multilingual mixed text of the present invention, in step 1, the total number of input texts in the input feature matrix is ​​defined as a positive integer N, and the i-th text is s i ,s i The text vector V(s i ) is defined as follows:

[0014] V(s i )=(w1,w2,w2…w 26 ) (1)

[0015] j=E1-′a′ (2)

[0016]

[0017] Where 'a' represents the letter a, Represents the sum of the relative positions of all characters in word word and character a, E irepresents the ASCII value corresponding to the i-th letter in the j-th word; j represents the j-th position of the 26-letter sequence; w j represents the vector value corresponding to the word at the jth position; k is the length of the word; tag is the category label, and when its value is 1, it means the text s i It is an English character fragment. When the value is 0, it means text s i is a pinyin string; V(s i ) represents the text s i The vector representation of .

[0018] According to an embodiment of the English pinyin recognition method for multilingual mixed text of the present invention, in step 1, when the feature vector of each string segment is obtained, the corresponding output vector is obtained according to the type of the corresponding document. The output vector is one-hot encoded, and the output form is as follows:

[0019]

[0020] where d i represents the input feature vector, V(d i ) represents the output vector.

[0021] According to an embodiment of the English pinyin recognition method for multilingual mixed text of the present invention, the neural network is a BP neural network, the number of neurons in the input layer and the output layer of the BP neural network are the number of features and the number of categories of the data set respectively, and the number of hidden layer nodes of the BP neural network is obtained by using an empirical formula:

[0022]

[0023] Among them, h is the number of hidden layer nodes, i is the number of input nodes, o is the number of output nodes, and α is a constant between 1 and 10.

[0024] According to an embodiment of the English pinyin recognition method for multilingual mixed text of the present invention, the model objective function for calculating the overall error of the neural network is:

[0025]

[0026] Where E is the total error, Y k is the value of the kth dimension in the vector represented by one-hot, O k is the predicted probability value of the kth category, and m is the number of predefined categories.

[0027] According to an embodiment of the English pinyin recognition method for multilingual mixed text of the present invention, in step 2, the data is normalized using the maximum-minimum standardization method:

[0028]

[0029] Among them, x represents the value of each serial number in the input feature matrix, min j is the minimum value of the feature data set of the sample class j, max j is the maximum value of the feature data set of the jth class of samples, and α and β are constants.

[0030] The present invention also discloses an English pinyin recognition system for multi-language mixed text, the system comprising:

[0031] A feature vectorization module is configured to perform feature vectorization processing on the acquired English character string;

[0032] A normalization module is configured to normalize the syllable features in each dimension based on the feature matrix obtained by the feature vectorization module;

[0033] The model training module is configured to use the standard feature vector obtained by the normalization module as the input of the neural network, train the mixed language recognition model implemented based on the neural network, and predict the category value of the English string mixed in Chinese according to the trained mixed language recognition model.

[0034] According to an embodiment of the English pinyin recognition system for multi-language mixed text of the present invention, the feature vectorization module is further configured to select syllable serial number values ​​and category labels of 26 letter combinations as the input feature matrix; wherein the syllable serial number represents the sequential serial number from 1 to 26 from the letter a to the letter z, and the syllable serial number value represents the sum of the relative distances between the word and the letter 'a' under each serial number; the category label indicates whether it is an English character fragment or a pinyin string.

[0035] According to an embodiment of the English pinyin recognition system for multilingual mixed text of the present invention, the feature vector module is further configured as follows:

[0036] The total number of input texts in the input feature matrix is ​​defined as a positive integer N, and the i-th text is s i ,s i The text vector V(s i ) is defined as follows:

[0037] V(s i )=(w1,w2,w2…w 26 ) (1)

[0038] j=E1-′a′ (2)

[0039]

[0040] Where 'a' represents the letter a, Represents the sum of the relative positions of all characters in word word and character a, E i represents the ASCII value corresponding to the i-th letter in the j-th word; j represents the j-th position of the 26-letter sequence; w j represents the vector value corresponding to the word at the jth position; k is the length of the word; tag is the category label, and when its value is 1, it means the text s i It is an English character fragment. When the value is 0, it means text s i is a pinyin string; V(s i ) represents the text s i The vector representation of .

[0041] According to an embodiment of the English pinyin recognition system for multilingual mixed text of the present invention, the feature vector module is further configured as follows:

[0042] When the feature vector of each string segment is obtained, the corresponding output vector is obtained according to the type of the corresponding document. The output vector is one-hot encoded and the output format is as follows:

[0043]

[0044] where d i represents the input feature vector, V(d i ) represents the output vector.

[0045] According to an embodiment of the English pinyin recognition system for multilingual mixed text of the present invention, the neural network is a BP neural network, the number of neurons in the input layer and the output layer of the BP neural network are the number of features and the number of categories of the data set respectively, and the number of hidden layer nodes of the BP neural network is obtained by using an empirical formula:

[0046]

[0047] Among them, h is the number of hidden layer nodes, i is the number of input nodes, o is the number of output nodes, and α is a constant between 1 and 10.

[0048] According to an embodiment of the English pinyin recognition system for multilingual mixed text of the present invention, the model objective function for calculating the overall error of the neural network is:

[0049]

[0050] Where E is the total error, Y k is the value of the kth dimension in the vector represented by one-hot, O k is the predicted probability value of the kth category, and m is the number of predefined categories.

[0051] According to an embodiment of the English pinyin recognition system for multilingual mixed text of the present invention, the normalization module is further configured to use a maximum-minimum normalization method to normalize the data:

[0052]

[0053] Among them, x represents the value of each serial number in the input feature matrix, min j is the minimum value of the feature data set of the sample class j, max j is the maximum value of the feature data set of the jth class of samples, and α and β are constants.

[0054] Compared with the prior art, the present invention has the following beneficial effects: the present invention trains and analyzes the rules of English word structure and the rules of Chinese pinyin composition through a mixed language recognition model, and recognizes English word character strings and Chinese pinyin character strings interspersed in Chinese short texts based on the trained model, thereby solving the previous pain point of only recognizing English and Chinese and English mixed in Chinese short texts, and can distinguish Chinese short texts mixed with English words and Chinese pinyin, greatly improving the text recognition accuracy in human-computer interaction dialogues such as question-answering systems, and improving customer experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] The above features and advantages of the present invention can be better understood after reading the detailed description of the embodiments of the present disclosure in conjunction with the following drawings. In the drawings, the components are not necessarily drawn to scale, and components with similar related properties or features may have the same or similar reference numerals.

[0056] Figure 1 A schematic diagram showing the network structure of the hybrid language recognition model of the present invention.

[0057] Figure 2 A flow chart of an embodiment of the method for English pinyin recognition for multi-language mixed text of the present invention is shown.

[0058] Figure 3 The schematic diagram of an embodiment of the English pinyin recognition system for multi-language mixed text of the present invention is shown. DETAILED DESCRIPTION

[0059] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. Note that the aspects described below in conjunction with the accompanying drawings and specific embodiments are only exemplary and should not be construed as limiting the scope of protection of the present invention in any way.

[0060] Figure 2 The flow chart of an embodiment of the English pinyin recognition method for multilingual mixed text of the present invention is shown. Figure 2The specific implementation steps of the method of this embodiment are described in detail as follows.

[0061] Step 1: Perform feature vectorization on the acquired English string.

[0062] English words generally consist of three parts: root, prefix and suffix, and these three parts are composed of specific English characters. The root determines the meaning of the word, the prefix changes the meaning of the word, and the suffix determines the part of speech of the word.

[0063] According to the "Scheme for the Chinese Phonetic Alphabet", the composition of Chinese Pinyin has certain rules, that is, all the initial consonants that can be combined into syllables are a known and fixed set. For example, a can only be followed by i, n, ng, o to form a, ai, an, ang, ao.

[0064] In this embodiment, the syllable sequence number values ​​of 26 letter combinations (the syllable sequence number represents the sequential sequence number from 1 to 26 from the letter a to the letter z, and the syllable sequence number value represents the sum of the relative distances between the word and the letter 'a' under each sequence number) and the category label (i.e., indicating whether it is an English character segment or a pinyin string) are selected as the input feature matrix, where the total number of input texts is defined as a positive integer N, and the i-th text is s i ,s i The text vector V(s i ) is defined as follows:

[0065] V(s i )=(w1,w2,w2…w 26 ) (1)

[0066] j=E1-′a′ (2)

[0067]

[0068] Where 'a' represents the letter a, Indicates the sum of the relative positions of all characters in the word and character a, E i represents the ASCII value corresponding to the i-th letter in the j-th word; j represents the j-th position of the 26-letter sequence; w j represents the vector value corresponding to the word at the jth position; k is the length of the word; tag is the category label, and when its value is 1, it means the text s i It is an English character fragment. When the value is 0, it means text s i is a pinyin string; V(s i ) represents the text s i For example, Table 1 shows that the English string samples contained in the input text can be represented as corresponding feature vectors according to the above formulas (1), (2), and (3).

[0069] Table 1. Feature vector representation of samples

[0070]

[0071]

[0072] When the feature vector of each string segment is obtained, the corresponding output vector is obtained according to the type of the document. The output vector is one-hot encoded and the output format is as follows:

[0073]

[0074] where d i represents the input feature vector, V(d i ) represents the output vector.

[0075] Step 2: Get the feature matrix represented in step 1 and normalize the feature matrix.

[0076] Since the dimensions of each type of feature data are different, in order to make the neural network converge quickly, it is necessary to unify and standardize the data. This embodiment uses the maximum-minimum standardization method to normalize the data:

[0077]

[0078] In formula (5), x represents the value of each sequence number in the input feature matrix, min j is the minimum value of the feature data set of the sample class j, max j is the maximum value of the j-th feature data set of the sample. α and β are constants. In order to set the data interval between 0.1 and 0.9, α is 0.1 and β is 0.8.

[0079] In this way, an original vector w is normalized and mapped to a value w' in the interval [0.1, 0.9] by formula (5), completing one-step processing of the input data.

[0080] Step 3: Use the feature vector obtained in step 2 as the input of the neural network to train the mixed language recognition model based on the neural network, and predict the category value of the English string mixed in Chinese according to the trained mixed language recognition model.

[0081] Construct a three-layer BP (back propagation) neural network and use the feature vector obtained in step 2 as the input of the BP neural network. Figure 1 As shown, the number of neurons in the input layer and output layer of the BP neural network are the number of features and the number of categories of the data set, respectively, and the number of hidden layer nodes is obtained using an empirical formula.

[0082] BP neural network is a feedback-type fully connected multi-layer neural network with strong associative memory and generalization capabilities. In the process of fitting historical data, the model can express data more abstractly by extracting features layer by layer, thereby improving prediction accuracy. This embodiment applies BP neural network to the recognition of pinyin and English, and adopts a classic three-layer design: input layer, hidden layer and output layer. Figure 1 As shown in the figure, the number of neurons in the input layer and the output layer are the number of features and the number of categories of the data set, respectively. The selection of the number of nodes in the hidden layer is crucial, because if there are too few nodes, the training results will be poor, and if there are too many nodes, the training time will be long and it is easy to fall into the local minimum. Therefore, this paper adopts the empirical formula:

[0083]

[0084] In formula (6), h is the number of hidden layer nodes, i is the number of input nodes, o is the number of output nodes, and α is a constant between 1 and 10.

[0085] After the feature extraction of the short text in step 1, the extracted feature parameters are used as the input of the BP neural network. First, the output of the BP network is obtained according to the forward propagation of the signal. Then, the overall error of the neural network and the error of each network layer are calculated using the objective function, that is, the square of the error between the predicted value and the true value, and the weights w between each layer are adjusted by the gradient descent method. When the error of the entire neural network reaches the maximum number of iterations or the minimum error, the training is stopped. Finally, the category value of the English string mixed in Chinese is predicted based on the trained model.

[0086] The model objective function used to calculate the overall error of the neural network in the above process has the following specific formula:

[0087]

[0088] Where E is the total error, Y k is the value of the kth dimension in the vector represented by one-hot, O k is the predicted probability value of the kth category, and m is the number of predefined categories, which is 2 in this embodiment.

[0089] Figure 3 The principle of an embodiment of the English pinyin recognition system for multi-language mixed text of the present invention is shown. Figure 3 , the system of this embodiment includes: a feature vectorization module, a normalization module, and a model training module.

[0090] The feature vectorization module is used to perform feature vectorization processing on the acquired English character string.

[0091] The specific processing of the feature vectorization module is as follows.

[0092] English words generally consist of three parts: root, prefix and suffix, and these three parts are composed of specific English characters. The root determines the meaning of the word, the prefix changes the meaning of the word, and the suffix determines the part of speech of the word.

[0093] According to the "Scheme for the Chinese Phonetic Alphabet", the composition of Chinese Pinyin has certain rules, that is, all the initial consonants that can be combined into syllables are a known and fixed set. For example, a can only be followed by i, n, ng, o to form a, ai, an, ang, ao.

[0094] In this embodiment, the syllable sequence value and category label (i.e., indicating whether it is an English character segment or a Pinyin string) of 26 letter combinations are selected as the input feature matrix, where the total number of input texts is defined as a positive integer N, and the i-th text is s i ,s i The text vector V(s i ) is defined as follows:

[0095] V(s i )=(w1,w2,w2…w 26 ) (1)

[0096] j=E1-′a′ (2)

[0097]

[0098] Where 'a' represents the letter a, Indicates the sum of the relative positions of all characters in the word and character a, E i represents the ASCII value corresponding to the i-th letter in the j-th word; j represents the j-th position of the 26-letter sequence; w j represents the vector value corresponding to the word at the jth position; k is the length of the word; tag is the category label, and when its value is 1, it means the text s i It is an English character fragment. When the value is 0, it means text s i is a pinyin string; V(s i ) represents the text s i For example, Table 1 shows that the English string samples contained in the input text can be represented as corresponding feature vectors according to the above formulas (1), (2), and (3).

[0099] Table 1. Feature vector representation of samples

[0100]

[0101]

[0102] When the feature vector of each string segment is obtained, the corresponding output vector is obtained according to the type of the document. The output vector is one-hot encoded and the output format is as follows:

[0103]

[0104] where d i represents the input feature vector, V(d i ) represents the output vector.

[0105] The normalization module is used to obtain the feature matrix represented in the feature vectorization module and normalize the feature matrix.

[0106] The specific processing of the normalization module is as follows.

[0107] Since the dimensions of each type of feature data are different, in order to make the neural network converge quickly, it is necessary to unify and standardize the data. This embodiment uses the maximum-minimum standardization method to normalize the data:

[0108]

[0109] In formula (5), min j is the minimum value of the feature data set of the sample class j, max j is the maximum value of the j-th feature data set of the sample. In order to set the data interval to between 0.1 and 0.9, α is taken as 0.1 and β is taken as 0.8.

[0110] In this way, an original vector w is normalized and mapped to a value w' in the interval [0.1, 0.9] by formula (5), completing one-step processing of the input data.

[0111] The model training module is used to train the mixed language recognition model based on the neural network using the feature vector obtained by the normalization module as the input of the neural network, and predict the category value of the English string mixed in Chinese according to the trained mixed language recognition model.

[0112] The specific processing of the model training module is as follows.

[0113] Construct a three-layer BP (back propagation) neural network, and use the feature vector obtained in the normalization module as the input of the BP neural network. Figure 1 As shown, the number of neurons in the input layer and output layer of the BP neural network are the number of features and the number of categories of the data set, respectively, and the number of hidden layer nodes is obtained using an empirical formula.

[0114] BP neural network is a feedback-type fully connected multi-layer neural network with strong associative memory and generalization capabilities. In the process of fitting historical data, the model can express data more abstractly by extracting features layer by layer, thereby improving prediction accuracy. This embodiment applies BP neural network to the recognition of pinyin and English, and adopts a classic three-layer design: input layer, hidden layer and output layer. Figure 1 As shown in the figure, the number of neurons in the input layer and the output layer are the number of features and the number of categories of the data set, respectively. The selection of the number of nodes in the hidden layer is crucial, because if there are too few nodes, the training results will be poor, and if there are too many nodes, the training time will be long and it is easy to fall into the local minimum. Therefore, this paper adopts the empirical formula:

[0115]

[0116] In formula (6), h is the number of hidden layer nodes, i is the number of input nodes, o is the number of output nodes, and α is a constant between 1 and 10.

[0117] After extracting the features of the short text, the extracted feature parameters are used as the input of the BP neural network. First, the output result of the BP network is obtained according to the forward propagation of the signal. Then, the objective function, that is, the square of the error between the predicted value and the true value, is used to calculate the overall error of the neural network and the error of each network layer, and the weights w between each layer are adjusted by the gradient descent method. When the error of the entire neural network reaches the maximum number of iterations or the minimum error, the training is stopped. Finally, the category value of the English string mixed in Chinese is predicted based on the trained model.

[0118] The model objective function used to calculate the overall error of the neural network in the above process has the following specific formula:

[0119]

[0120] Where E is the total error, Y k is the value of the kth dimension in the vector represented by one-hot, O k is the predicted probability value of the kth category, and m is the number of predefined categories, which is 2 in this embodiment.

[0121] Although the above methods are illustrated and described as a series of actions for simplicity of explanation, it should be understood and appreciated that these methods are not limited by the order of the actions, because according to one or more embodiments, some actions may occur in a different order and / or concurrently with other actions from those illustrated and described herein or not illustrated and described herein but understandable to those skilled in the art.

[0122] Those skilled in the art will further appreciate that the various illustrative logic blocks, modules, circuits, and algorithm steps described in conjunction with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or a combination of the two. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps are generally described above in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. The technician may implement the described functionality in different ways for each specific application, but such implementation decisions should not be interpreted as resulting in a departure from the scope of the present invention.

[0123] The various illustrative logic blocks, modules, and circuits described in conjunction with the embodiments disclosed herein may be implemented or performed with a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof designed to perform the functions described herein. A general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in cooperation with a DSP core, or any other such configuration.

[0124] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software module may reside in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read and write information from / to the storage medium. In an alternative, a storage medium may be integrated into a processor. The processor and the storage medium may reside in an ASIC. The ASIC may reside in a user terminal. In an alternative, the processor and the storage medium may reside in a user terminal as discrete components.

[0125] In one or more exemplary embodiments, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented as a computer program product in software, each function may be stored on or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include both computer storage media and communication media, including any medium that facilitates the transfer of a computer program from one place to another. Storage media may be any available medium that can be accessed by a computer. As an example and not limitation, such a computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer. Any connection is also properly referred to as a computer-readable medium. For example, if the software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, wherein disk often reproduces data magnetically, while disc reproduces data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0126] The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be apparent to those skilled in the art, and the general principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein, but should be granted the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for English pinyin recognition of multilingual mixed spoken text, characterized in that: Methods include: Step 1: Process the acquired English string into feature vectors; Step 2: Get the feature matrix represented in step 1 and normalize it; Step 3: Using the feature vector obtained in step 2 as the input of the neural network, the mixed language recognition model implemented based on the neural network is trained, and the category value of the English character string mixed in the Chinese spoken language is predicted according to the trained mixed language recognition model; In step 1, the syllable sequence number values ​​and category labels of 26 letter combinations are selected as the input feature matrix; the syllable sequence number represents the sequential sequence number from 1 to 26 from letter a to letter z, and the syllable sequence number value represents the sum of the relative distances between the word and letter a under each sequence number; the category label represents whether it is an English character segment or a pinyin string; In step 1, the total number of input texts in the input feature matrix is ​​defined as a positive integer N, and the i-th text is s i ,s i The text vector V(s i ) is defined as follows: V(s i )=(w1,w2,w3…w 26 ) (1) j=E1-′a′ (2) Where 'a' represents the letter a, Represents the sum of the relative distances between all characters in the word and the letter a, E i represents the ASCII value corresponding to the i-th letter in the j-th word; j represents the j-th position of the 26-letter sequence; w j represents the vector value corresponding to the word at the jth position; k is the length of the word; tag is the category label, and when its value is 1, it means the text s i It is an English character fragment. When the value is 0, it means text s i is a pinyin string; V(s i ) represents the text s i The vector representation of ; Among them, the neural network is a BP neural network. The number of neurons in the input layer and output layer of the BP neural network are the number of features and the number of categories of the data set respectively. The number of hidden layer nodes of the BP neural network is obtained using the empirical formula: Among them, h is the number of hidden layer nodes, i is the number of input nodes, o is the number of output nodes, and α is a constant between 1 and 10.

2. The English phonetic recognition method for multilingual mixed text according to claim 1, characterized in that: In step 1, when the feature vector of each string segment is obtained, the corresponding output vector is obtained according to the type of the corresponding document. The output vector is one-hot encoded and the output format is as follows: where d i represents the input feature vector, V(d i ) represents the output vector.

3. The English phonetic recognition method for multilingual mixed text according to claim 1, characterized in that: The model objective function used to calculate the overall error of the neural network is: Where E is the total error, Y k is the value of the kth dimension in the vector represented by one-hot, O k is the predicted probability value of the kth category, and m is the number of predefined categories.

4. The English phonetic recognition method for multilingual mixed text according to claim 1, characterized in that: In step 2, the feature matrix is ​​normalized using the maximum-minimum normalization method: Among them, x represents the value of each serial number in the input feature matrix, min j is the minimum value of the feature data set of the sample class j, max j is the maximum value of the feature data set of the jth class of samples, and α and β are constants.

5. An English pinyin recognition system for multilingual mixed text, characterized in that: The system includes: A feature vectorization module is configured to perform feature vectorization processing on the acquired English character string; A normalization module is configured to normalize the syllable features in each dimension based on the feature matrix obtained by the feature vectorization module; The model training module is configured to use the standard feature vector obtained by the normalization module as the input of the neural network, train the mixed language recognition model implemented based on the neural network, and predict the category value of the English character string mixed in Chinese according to the trained mixed language recognition model; The feature vectorization module is further configured to select syllable sequence values ​​and category labels of 26 letter combinations as input feature matrices; the syllable sequence represents a sequential sequence number from 1 to 26 from letter a to letter z, and the syllable sequence value represents the sum of the relative distances between the word and letter a under each sequence number; the category label represents whether it is an English character segment or a pinyin string; Among them, the feature vector module is further configured as: The total number of input texts in the input feature matrix is ​​defined as a positive integer N, and the i-th text is s i ,s i The text vector V(s i ) is defined as follows: V(s i )=(w1,w2,w3…w 26 ) (1) j=E1-′a′ (2) Where 'a' represents the letter a, Represents the sum of the relative distances between all characters in the word and the letter a, E i represents the ASCII value corresponding to the i-th letter in the j-th word; j represents the j-th position of the 26-letter sequence; w j represents the vector value corresponding to the word at the jth position; k is the length of the word; tag is the category label, and when its value is 1, it means the text s i It is an English character fragment. When the value is 0, it means text s i is a pinyin string; V(s i ) represents the text s i The vector representation of ; Among them, the neural network is a BP neural network. The number of neurons in the input layer and output layer of the BP neural network are the number of features and the number of categories of the data set respectively. The number of hidden layer nodes of the BP neural network is obtained using the empirical formula: Among them, h is the number of hidden layer nodes, i is the number of input nodes, o is the number of output nodes, and α is a constant between 1 and 10.

6. The English pinyin recognition system for multilingual mixed text according to claim 5, characterized in that: The feature vector module is further configured as: When the feature vector of each string segment is obtained, the corresponding output vector is obtained according to the type of the corresponding document. The output vector is one-hot encoded and the output format is as follows: where d i represents the input feature vector, V(d i ) represents the output vector.

7. The English pinyin recognition system for multilingual mixed text according to claim 5, characterized in that: The model objective function used to calculate the overall error of the neural network is: Where E is the total error, Y k is the value of the kth dimension in the vector represented by one-hot, O k is the predicted probability value of the kth category, and m is the number of predefined categories.

8. The English pinyin recognition system for multilingual mixed text according to claim 5, characterized in that: The normalization module is further configured to normalize the input feature matrix using the maximum-minimum normalization method: Among them, x represents the value of each serial number in the input feature matrix, min j is the minimum value of the feature data set of the sample class j, max j is the maximum value of the feature data set of the jth class of samples, and α and β are constants.