Short text standardization method, device, equipment and storage medium
By extracting and fusing character, semantic, and pronunciation feature vectors from the original text, the problem of inaccurate standardization of short texts caused by the diversity of doctors' writing habits was solved, achieving higher standardization accuracy.
Patent Information
- Application Number
- CN202211128032.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-09-16
AI Technical Summary
Due to the diversity of short texts caused by the different writing habits and terminology used by doctors, existing deep learning models struggle to accurately understand the semantics of both original and standard texts, leading to inaccurate standardization of medical diagnoses.
By extracting character features, semantic features, and pronunciation feature vectors from the original text and fusing them, the similarity with the standard text is calculated, and the corresponding standard text is determined.
It improves the accuracy of short text standardization by evaluating the similarity between the original text and the standard text from multiple dimensions, thereby enhancing the accuracy of standardization.
Smart Images

Figure CN117010402B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of machine learning technology, and in particular to a short text standardization method, apparatus, device, and storage medium. Background Technology
[0002] In clinical practice, the same diagnosis, surgery, medication, examination, test, and symptom can often be written in various ways due to factors such as individual doctors' writing habits and the diversity of terminology. Medical diagnostic standardization, as a crucial part of the medical informatization process, aims to map non-standard raw text into standardized text within the medical standard system.
[0003] The related technology provides a deep model that can learn deep semantic expressions in standard text and original text based on labeled data using machine learning or deep learning methods. It obtains semantic feature vectors of standard text and original text through backpropagation training, and then measures the similarity between original text and standard text based on the cosine similarity between the semantic feature vectors of standard text and original text.
[0004] However, the original text and standard text are usually short texts that lack effective contextual information. Deep models have difficulty fully understanding the semantics of the original text and standard text, resulting in inaccurate standardization. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for short text standardization. The technical solutions provided by this application are as follows.
[0006] According to one aspect of the embodiments of this application, a short text standardization method is provided, the method comprising:
[0007] Feature extraction is performed on the original text to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector. The first character feature vector is used to characterize the character features of the original text, the first semantic feature vector is used to characterize the semantic features of the original text, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text.
[0008] The first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain a first fused feature vector;
[0009] Calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text; wherein, the second fused feature vector is obtained by feature extraction and fusion of the standard text;
[0010] Based on the similarity, the standard text corresponding to the original text is determined from each of the standard texts.
[0011] According to one aspect of the embodiments of this application, a short text standardization method is provided, the method comprising:
[0012] Obtain at least two sample pairs, each containing one original text sample and one standard text sample;
[0013] The original text sample is subjected to feature extraction using a first feature extraction model to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector; and the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain a first fused feature vector; wherein the first character feature vector is used to characterize the character features of the original text sample, the first semantic feature vector is used to characterize the semantic features of the original text sample, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text sample.
[0014] The standard text sample is subjected to feature extraction using a second feature extraction model to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector; and the second character feature vector, the second semantic feature vector, and the second pronunciation feature vector are fused to obtain a second fused feature vector; wherein the second character feature vector is used to characterize the character features of the standard text sample, the second semantic feature vector is used to characterize the semantic features of the standard text sample, and the second pronunciation feature vector is used to characterize the pronunciation features of the standard text sample; the first feature extraction model and the second feature extraction model are two different feature extraction models;
[0015] By comparing the first fused feature vector with the second fused feature vector, the model training loss is obtained;
[0016] Based on the model training loss, the parameters of the first feature extraction model and the second feature extraction model are adjusted; wherein, the first feature extraction model, after training, is used to extract and fuse features from the original text to determine the standard text corresponding to the original text.
[0017] According to one aspect of the embodiments of this application, a short text standardization apparatus is provided, the apparatus comprising:
[0018] The first feature extraction module is used to extract features from the original text to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector. The first character feature vector is used to characterize the character features of the original text, the first semantic feature vector is used to characterize the semantic features of the original text, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text.
[0019] The feature fusion module is used to fuse the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector to obtain a first fused feature vector;
[0020] The calculation module is used to calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text; wherein, the second fused feature vector is obtained by feature extraction and fusion of the standard text;
[0021] The determination module is used to determine the standard text corresponding to the original text from each of the standard texts based on the similarity.
[0022] According to one aspect of the embodiments of this application, a short text standardization apparatus is provided, the apparatus comprising:
[0023] The acquisition module is used to acquire at least two sample pairs, each sample pair containing one original text sample and one standard text sample;
[0024] The second feature extraction module is used to extract features from the original text sample using a first feature extraction model to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector; and to fuse the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector to obtain a first fused feature vector; wherein the first character feature vector is used to characterize the character features of the original text sample, the first semantic feature vector is used to characterize the semantic features of the original text sample, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text sample.
[0025] The third feature extraction module is used to extract features from the standard text sample using the second feature extraction model to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector; and to fuse the second character feature vector, the second semantic feature vector, and the second pronunciation feature vector to obtain a second fused feature vector; wherein the second character feature vector is used to characterize the character features of the standard text sample, the second semantic feature vector is used to characterize the semantic features of the standard text sample, and the second pronunciation feature vector is used to characterize the pronunciation features of the standard text sample; the first feature extraction model and the second feature extraction model are two different feature extraction models;
[0026] The contrastive learning module is used to compare and learn the first fused feature vector with the second fused feature vector to obtain the model training loss.
[0027] The adjustment module is used to adjust the parameters of the first feature extraction model and the second feature extraction model according to the model training loss; wherein, the first feature extraction model, after training, is used to extract and fuse features from the original text to determine the standard text corresponding to the original text.
[0028] According to one aspect of the embodiments of this application, a computer device is provided, the computer device including a processor and a memory, the memory storing a computer program, the computer program being loaded and executed by the processor to implement the above-described short text standardization method.
[0029] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the above-described short text standardization method.
[0030] According to one aspect of the embodiments of this application, a computer program product is provided, comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the short text standardization method described above.
[0031] The technical solution provided in this application can bring the following beneficial effects:
[0032] By extracting the first character feature vector, first semantic feature vector, and first pronunciation feature vector from the original text, and fusing these three feature vectors to obtain the first fused feature vector, the similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text is calculated. The standard text corresponding to the original text is then determined based on this similarity. This approach fully leverages feature information at different levels. Extracting the first character feature vector models the surface semantics of the original text, extracting the first semantic feature vector models the contextual relationships and hidden deep semantic information of the original text, and extracting the first pronunciation feature vector reduces noise in the original text, improving the accuracy of short text standardization. Further fusing these three feature vectors to form the first fused feature vector of the original text enables a multi-dimensional assessment of the similarity between the original text and the standard text, further improving the accuracy of short text standardization. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 This is a schematic diagram of the implementation environment of a solution provided in one embodiment of this application;
[0035] Figure 2 This is a flowchart of a short text standardization method provided in one embodiment of this application;
[0036] Figure 3 This is a flowchart of a short text standardization method provided in another embodiment of this application;
[0037] Figure 4 This is a flowchart of a short text standardization method provided in another embodiment of this application;
[0038] Figure 5 This is a flowchart of a training method for a short text standardization model provided in one embodiment of this application;
[0039] Figure 6 This is a schematic diagram of an application page for a short text standardization method provided in one embodiment of this application;
[0040] Figure 7 This is a block diagram of a short text standardization apparatus provided in one embodiment of this application;
[0041] Figure 8 This is a block diagram of a short text standardization apparatus provided in another embodiment of this application;
[0042] Figure 9 This is a block diagram of a short text standardization apparatus provided in another embodiment of this application;
[0043] Figure 10 This is a block diagram of a short text standardization apparatus provided in another embodiment of this application;
[0044] Figure 11 This is a structural block diagram of a computer device provided in one embodiment of this application. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0046] Artificial intelligence (AI) is the theory, methods, technology, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to achieve optimal results. In other words, AI is a comprehensive technology within computer science that attempts to understand the essence of intelligence and produce a new kind of intelligent machine that can react in a way similar to human intelligence. AI studies the design principles and implementation methods of various intelligent machines, enabling them to possess the functions of perception, reasoning, and decision-making.
[0047] Artificial intelligence (AI) is a comprehensive discipline encompassing a wide range of fields, including both hardware and software technologies. Fundamental AI technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies primarily include computer vision, speech processing, natural language processing, and machine learning / deep learning.
[0048] Natural Language Processing (NLP) is an important field within computer science and artificial intelligence. It studies the theories and methods for enabling effective communication between humans and computers using natural language. NLP is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field involves natural language—the language people use in daily life—and thus it has a close relationship with linguistic research. NLP techniques typically include text processing, semantic understanding, machine translation, question answering, and knowledge graphs.
[0049] Machine learning (ML) is a multidisciplinary field involving probability theory, statistics, approximation theory, convex analysis, and algorithm complexity theory. It specifically studies how computers can simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to endow computers with intelligence; its applications span all areas of artificial intelligence. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and instructional learning.
[0050] With the research and advancement of artificial intelligence (AI) technology, AI is being studied and applied in various fields, such as smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, autonomous driving, drones, robots, smart healthcare, and smart customer service. It is believed that with the development of technology, AI will be applied in more fields and play an increasingly important role.
[0051] The solutions provided in this application relate to machine learning technology in artificial intelligence, and are specifically illustrated through the following embodiments.
[0052] Please refer to Figure 1 This diagram illustrates an implementation environment provided by one embodiment of the present application. This implementation environment can be implemented as a system architecture for short text standardization. The implementation environment may include: a terminal device 100 and a server 200.
[0053] Terminal device 100 includes, but is not limited to, mobile phones, tablets, wearable devices, PCs (Personal Computers), in-vehicle terminal devices, intelligent voice interaction devices, smart home appliances, aircraft, and other electronic devices. A client application for the target application can be installed and run on terminal device 100. This target application can be a short text standardization application, such as an encoding application, or other applications that provide short text standardization functionality, such as lifestyle service applications, video and music applications, etc. This application does not limit this. The technical solution provided in this application can be applied in the medical field to standardize short texts such as diseases and symptoms. For example, if the target application provides functions such as disease-aided diagnosis and intelligent drug recommendation, the short text standardization method provided in this application can be applied in the process of implementing these functions. It should be noted that the technical solution provided in this application is not limited to short text standardization in the medical field, but can also be applied to other fields, such as the video and music field, the electronic note-taking field, etc. For example, if the target application provides a fuzzy search function, it can search for foreign language songs based on the transliterated short text entered by the user, and the transliterated short text can be processed using the short text standardization method provided in this application. For example, if the target application provides functions such as note categorization or note title extraction, the technical solution provided in this application can be used to process the short text of the notes in the process of implementing the above functions. Furthermore, this application does not limit the form of the target application, including but not limited to Apps (Applications), mini-programs, etc., installed on terminal device 100, and it can also be in the form of a webpage.
[0054] Server 200 can be a standalone physical server, a server cluster or distributed system consisting of multiple physical servers, or a cloud server providing cloud computing services. Server 200 can be the backend server for the aforementioned target application, used to provide backend services to the clients of the target application.
[0055] Terminal device 100 and server 200 can communicate via a network, such as a wired or wireless network.
[0056] The short text standardization method provided in this application embodiment can be executed by a computer device, which refers to an electronic device with data computing, processing, and storage capabilities. Figure 1Taking the scheme implementation environment shown as an example, the short text standardization method may be executed by the terminal device 100 (for example, executed by the client of the target application installed and running in the terminal device 100), or executed by the server 200, or executed by the terminal device 100 and the server 200 in interactive cooperation, which is not limited in this application. For example, the server 200 trains the short text standardization model, deploys the trained short text standardization model in the terminal device 100, and the terminal device 100 executes the short text standardization method.
[0057] The embodiments of the present application may be applied to various scenarios, including but not limited to short text encoding, online diagnosis, song search, and the like. For ease of description, in the following method embodiments, the description is only made with the execution subject of each step of the short text standardization method being a computer device.
[0058] Please refer to Figure 2 , which shows a flowchart of a short text standardization method provided by an embodiment of the present application. The method may include at least one of the following steps 210 to 240.
[0059] Step 210: perform feature extraction on the original text to obtain a first character feature vector, a first semantic feature vector and a first pronunciation feature vector, wherein the first character feature vector is used to characterize the character feature of the original text, the first semantic feature vector is used to characterize the semantic feature of the original text, and the first pronunciation feature vector is used to characterize the pronunciation feature of the original text.
[0060] The original text refers to the short text that needs to be standardized, each short text includes at least one word, and each word includes at least one character. A word is the smallest sentence-making unit composed of morphemes, and a character refers to characters and symbols, such as Chinese characters and punctuation marks. Exemplarily, the original text is "infantile anorexia", which includes the words "infant" and "anorexia", wherein "infant" includes two characters "small" and "child", and "anorexia" includes two characters "disgust" and "food".
[0061] Due to the diversity of expressions and different writing habits, the original text for the same object usually has various expressions. Exemplarily, in the field of medical diagnosis, there are various expressions for the same medical concept. For example, "lung tumor" is usually also written as "pulmonary tumor", and "open wound of knee" is usually also written as "open knee injury".
[0062] The first character feature vector refers to a vector obtained by encoding the character string corresponding to the original text and mapping it to a digital vector representation, and the first character feature vector is used to characterize the character feature of the original text. The character string refers to the set of all characters contained in the original text.
[0063] In some embodiments, at least two characters are obtained from the original text; the position of each of the at least two characters in a vocabulary is determined, and the occurrence count of each of the at least two characters in the original text is determined, where the vocabulary contains at least two candidate characters; a first character feature vector is obtained according to the position of each character in the vocabulary and the occurrence count of each character in the original text.
[0064] The vocabulary refers to an ordered sequence composed of all characters that may appear in the original text and the standard text. The position of each character in the vocabulary refers to the ordinal number of the position where each character appears in the vocabulary. The occurrence count of each character in the original text refers to the number of times each character appears among the characters that can be segmented from the original text.
[0065] For example, the vocabulary is {xiao, zheng, er, shen, yan, shi}, and the original text is "xiao er yan shi", then four characters "xiao", "er", "yan" and "shi" can be obtained from the original text, the positions of the four characters in the vocabulary are 1, 3, 5 and 6 respectively, and the occurrence count of each character in the original text is 1, so the first character feature vector {1, 0, 1, 0, 1, 1} is obtained. It should be noted that the vocabulary in practical applications will contain more characters, and this example is only for the convenience of understanding, and has no relation to the vocabulary in practical applications.
[0066] In some embodiments, at least two phrases are obtained from the original text, each phrase contains at least two characters, and there is at least one overlapping character between every two adjacent phrases; the position of each of the at least two phrases in the vocabulary is determined, and the occurrence count of each of the at least two phrases in the original text is determined, where the vocabulary contains at least two candidate phrases; a first character feature vector is obtained according to the position of each phrase in the vocabulary and the occurrence count of each phrase in the original text.
[0067] The vocabulary refers to an ordered sequence composed of all phrases that may appear in the original text and the standard text. The position of each phrase in the vocabulary refers to the ordinal number of the position where each phrase appears in the vocabulary. The occurrence count of each phrase in the original text refers to the number of times each phrase appears among the phrases that can be segmented from the original text.
[0068] For example, the vocabulary is {xiao er, shen jing, er yan, xing yan, yan shi, shi zheng}, and the original text is "xiao er yan shi", three phrases "xiao er", "er yan" and "yan shi" can be obtained from the original text, the positions of the three phrases in the vocabulary are 1, 3 and 5 respectively, and the occurrence count of each phrase in the original text is 1, so the first character feature vector {1, 0, 1, 0, 1, 0} is obtained.
[0069] The first semantic feature vector is a vector obtained by extracting the contextual information of each character in the original text. The first semantic feature vector is used to characterize the semantic features of the original text.
[0070] Optionally, the character sequence corresponding to the original text is obtained, which includes at least two characters arranged in order from the original text; the context information of each character in the character sequence is extracted to obtain the first semantic feature vector.
[0071] Contextual information refers to the context and semantics of the text. The contextual information between each character in the character sequence and all other characters in the sequence is extracted, ensuring that the contextual information of each character in the sequence contains all the semantic features of the original text. The contextual information of any single character in the sequence can be used as the first semantic feature vector.
[0072] The first pronunciation feature vector is a vector obtained by encoding the phonemes of each character in the original text and mapping them to a numerical vector representation. The first pronunciation feature vector is used to characterize the pronunciation features of the original text. For example, pronunciation features in Chinese characters can be represented as pinyin features, and in English, they can be represented as phonetic symbols.
[0073] In some embodiments, the phoneme corresponding to each character in the original text is obtained; at least two phonemes are obtained based on the phonemes corresponding to each character in the original text; the position of each phoneme in the phoneme vocabulary is determined, and the number of times each phoneme appears in the original text is determined, wherein the phoneme vocabulary contains at least two candidate phonemes; and a first pronunciation feature vector is obtained based on the position of each phoneme in the phoneme vocabulary and the number of times each phoneme appears in the original text.
[0074] For example, if the phoneme vocabulary is {xiao, shen, er, jing, yan, shi, xing}, and each character in the original text corresponds to the phoneme “xiao”, “er”, “yan”, and “shi”, respectively, and these four phonemes occupy positions 1, 3, 5, and 6 in the phoneme vocabulary, and each phoneme appears once in the original text, then the first pronunciation feature vector is obtained as {1, 0, 1, 0, 1, 1, 0}. It should be noted that phonemes can also include the tone of each word; this application does not impose any limitation on this. In some embodiments, the phonemes corresponding to each character in the original text are obtained; at least two phoneme phrases are obtained based on the phonemes corresponding to each character in the original text, each phoneme phrase containing at least two phonemes corresponding to characters, and there is at least one overlapping phoneme corresponding to a character between two adjacent phoneme phrases; the position of each phoneme phrase in the phoneme vocabulary is determined, and the number of occurrences of each phoneme phrase in the original text is determined, the phoneme vocabulary containing at least two candidate phoneme phrases; a first pronunciation feature vector is obtained based on the position of each phoneme phrase in the phoneme vocabulary and the number of occurrences of each phoneme phrase in the original text.
[0075] A phoneme vocabulary is an ordered sequence of all possible phoneme phrases that may appear in the original and standard texts. The position of each phoneme phrase in the phoneme vocabulary refers to its ordinal number. The number of times each phoneme phrase appears in the original text refers to the number of times each phoneme phrase appears among the phoneme phrases that can be identified in the original text.
[0076] For example, if the phoneme vocabulary is {xiaoer, shenjing, eryan, jingxing, yanshi}, and the phonemes corresponding to each character in the original text are used to obtain three phoneme phrases “xiaoer”, “eryan”, and “yanshi”, the positions of these three phoneme phrases in the phoneme vocabulary are 1, 3, and 5 respectively, and each phoneme phrase appears once in the original text, then the first pronunciation feature vector {1, 0, 1, 0, 1} is obtained.
[0077] Because the original text may contain spelling errors with the same pronunciation but different meanings, it introduces noise into the first semantic feature vector of the original text. However, this noise cannot be identified when extracting the first semantic feature vector of the original text, which affects the accuracy of short text standardization. Therefore, extracting the first pronunciation vector feature of the original text can reduce the noise in the original text and improve the accuracy of short text standardization.
[0078] Step 220: The first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain the first fused feature vector.
[0079] In some embodiments, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector can be fused by concatenation to obtain a first fused feature vector. For example, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are represented as A, B, and C, respectively, and the first fused feature vector obtained by concatenation can be ABC.
[0080] In some embodiments, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector can be fused using a weighted summation method to obtain a first fused feature vector. For example, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are represented as A, B, and C, respectively. The first fused feature vector obtained by weighted summation can be represented as D, where D is obtained by multiplying A, B, and C by a weight and then summing them. The weights multiplied by A, B, and C can be the same or different, and this application does not limit this.
[0081] In some embodiments, a first fused feature vector can be obtained by weighted concatenation of the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector. For example, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are represented as A, B, and C, respectively. The first fused feature vector obtained by weighted concatenation can be D, which is obtained by concatenating A, B, and C after multiplying each by a weight. The weights multiplied by A, B, and C can be the same or different, and this application does not limit this. This application does not limit the specific method used to fuse the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector to obtain the first fused feature vector.
[0082] Step 230: Calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text; wherein, the second fused feature vector is obtained by feature extraction and fusion of the standard text.
[0083] Optionally, the standard text can be any standard text from a list of standard texts, and this application does not limit the version of the standard text list. For example, in the field of medical diagnostics, the versions of the standard text list can be divided according to region, application scenario, etc., such as clinical version, medical insurance version, and Beijing version.
[0084] Optionally, the similarity between the first fusion feature vector and the second fusion feature vector corresponding to each standard text in a list of standard texts can be calculated, or the similarity between the first fusion feature vector and the second fusion feature vector corresponding to each standard text in multiple lists of standard texts can be calculated; this application does not limit this. For example, the similarity between the first fusion feature vector and the second fusion feature vector corresponding to each standard text in a clinical version list of standard texts, and the similarity between the first fusion feature vector and the second fusion feature vector corresponding to each standard text in a medical insurance version list of standard texts, can be calculated.
[0085] Optionally, the second fused feature vector can be obtained using the same method as the first fused feature vector.
[0086] For example, feature extraction is performed on each standard text to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector. The second character feature vector represents the character features of the standard text, the second semantic feature vector represents the semantic features, and the second pronunciation feature vector represents the pronunciation features. These three feature vectors are then fused to obtain a second fused feature vector for the standard text.
[0087] This application does not limit the method for calculating the similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text. For example, the cosine similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text can be calculated, or the Pearson correlation coefficient between the first fused feature vector and the second fused feature vectors corresponding to each standard text can be calculated.
[0088] Step 240: Based on similarity, determine the standard text corresponding to the original text from each standard text.
[0089] Optionally, based on the similarity ranking, one or more standard texts with the highest similarity are selected as the standard text corresponding to the original text. For example, based on the similarity ranking, the K most similar standard texts are selected as the standard text corresponding to the original text, where K is an integer greater than 0. When K is 1, the standard text with the highest similarity is selected as the standard text corresponding to the original text.
[0090] Optionally, a similarity threshold is preset, and standard text with a similarity higher than the similarity threshold is identified as the standard text corresponding to the original text. For example, a similarity threshold of 90% is preset, and standard text with a similarity value higher than 90% is identified as the standard text corresponding to the original text.
[0091] It should be noted that this application does not limit the specific method for determining the standard text corresponding to the original text from various standard texts based on similarity; the above are merely exemplary embodiments. For example, a similarity threshold is preset, and a standard text is randomly selected from standard texts with a similarity higher than the threshold to be determined as the standard text corresponding to the original text. For example, a similarity threshold of 90% is preset, and a standard text is randomly selected from standard texts with a similarity higher than 90% to be determined as the standard text corresponding to the original text.
[0092] The technical solution provided in this application extracts a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector from the original text, and fuses these three feature vectors to obtain a first fused feature vector. The similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text is calculated, and the standard text corresponding to the original text is determined based on the similarity. This approach fully leverages feature information at different levels. By extracting the first character feature vector to model the surface semantics of the original text, extracting the first semantic feature vector to model the contextual relationships and hidden deep semantic information of the original text, and extracting the first pronunciation feature vector to reduce noise in the original text, the accuracy of short text standardization is improved. Furthermore, by fusing the three feature vectors to form the first fused feature vector of the original text, the similarity between the original text and the standard text is evaluated from multiple dimensions, thus improving the accuracy of short text standardization.
[0093] Please refer to Figure 3 The diagram illustrates a flowchart of a short text standardization method provided in another embodiment of this application. This method may include at least one of the following steps 310-370.
[0094] Step 310: Extract features from the original text to obtain the first character feature vector.
[0095] Optionally, at least two phrases are obtained from the original text, each phrase containing at least two characters, and there is at least one overlapping character between adjacent phrases; the position of each of the at least two phrases in the vocabulary is determined, and the number of times each of the at least two phrases appears in the original text is determined, the vocabulary containing at least two candidate phrases; a first character feature vector is obtained based on the position of each phrase in the vocabulary and the number of times each phrase appears in the original text.
[0096] Exemplarily, a window with a width of two characters is slid starting from the start end of the original text, sliding one character each time until it slides to the end, wherein the two characters selected by the window in each sliding are regarded as a phrase. For example, "infantile anorexia" can be divided into three phrases: "infant", "ntoa", and "norexia".
[0097] Exemplarily, the vocabulary is {infant, ntoa, norexia, exia}, then the positions of the three phrases "infant", "ntoa", and "norexia" divided from "infantile anorexia" in the vocabulary are 1, 2, and 3 respectively, and the number of occurrences in the original text is all 1. Then, the first character feature vector can be obtained as {1, 1, 1, 0} according to the position of each phrase in the vocabulary and the number of occurrences of each phrase in the original text.
[0098] Optionally, an initial character feature vector is obtained according to the position of each phrase in the vocabulary and the number of occurrences of each phrase in the original text, and the initial character feature vector is mapped to a low-dimensional space to obtain a low-dimensional vector as the first character feature vector.
[0099] Optionally, the initial character feature vector can be mapped to the low-dimensional space by a linear mapping method.
[0100] Exemplarily, through the formula h c =W1a+b, the initial character feature vector is mapped to the low-dimensional space, where a is the initial character feature vector; W1 and b are learnable parameters; h c represents the real first character feature vector.
[0101] Mapping the initial character feature vector to the low-dimensional space to obtain a low-dimensional vector as the first character feature vector reduces the dimension of the first character feature vector, avoids the dimension disaster problem, and thus helps reduce the complexity of calculating the similarity between the first fused feature vector and the second fused feature vector.
[0102] Step 320: perform feature extraction on the original text to obtain a first semantic feature vector.
[0103] Optionally, a character sequence corresponding to the original text is obtained, and the character sequence includes at least two characters arranged in sequence obtained by dividing the original text; the context information of each character in the character sequence is extracted to obtain the first semantic feature vector.
[0104] Exemplarily, "infantile anorexia" can be divided into a character sequence of {in, fa, nt, ile}.
[0105] Optionally, a special marker is added to each of the start end and the end end of the character sequence to obtain a new character sequence, the context information of each character in the new character sequence described above is extracted to obtain a semantic feature vector corresponding to each character, and any one of the semantic feature vectors is selected as the first semantic feature vector. For example, the semantic feature vector corresponding to the first character is selected as the first semantic feature vector.
[0106] Optionally, a neural network model is used to perform feature extraction on the original text to obtain a first semantic feature vector.
[0107] Exemplarily, a BERT model is used to perform feature extraction on the original text to obtain a first semantic feature vector. Specifically, it is assumed that the original text is a character sequence composed of T characters {m1, ..., m t , ..., m T}, a new character sequence is formed by adding special markers <[BOS_never_used_51bce0c785ca2f68081bfa7d91973934]> and [SEP] at the start end and the end end of the character sequence and input into the BERT model, and the vector representation corresponding to the marker output by BERT is taken as the first semantic feature vector h of the original text r :
[0108] h r =BERT({<[BOS_never_used_51bce0c785ca2f68081bfa7d91973934]>, m1, ..., m t , ..., m T , [SEP]})
[0109] The BERT model can not only capture bidirectional context information in the character sequence, but also the attention mechanism therein can capture longer sequence dependencies, extract more important sentence components as the overall semantic representation, and have more powerful representation capability and generalization capability than character features.
[0110] It should be noted that the present application does not limit the neural network model used for performing feature extraction on the original text to obtain the first semantic feature vector. For example, the BERT model may be used, and other models with similar functions may also be used, such as a recurrent neural network model, an ALBERT model, and the like.
[0111] Step 330: Perform feature extraction on the original text to obtain a first pronunciation feature vector.
[0112] Since some words have the same pronunciation but different writing forms and different meanings, there may be writing errors in the original text. Therefore, extracting the first pronunciation feature vector of the original text can avoid inaccurate short text standardization caused by such situations, and improve the robustness of the model. For example, "耵聍滴耳液" (cerumen ear drops) is usually incorrectly written as "叮咛滴耳液", where "叮咛" and "耵聍" have the same pronunciation "dingning".
[0113] Optionally, phonemes corresponding to each character in the original text are acquired; at least two phoneme phrases are obtained according to the phonemes corresponding to each character in the original text, each phoneme phrase comprises phonemes corresponding to at least two characters, and there is at least one overlapping phoneme corresponding to a character between two adjacent phoneme phrases; the position of each of the at least two phoneme phrases in a phoneme vocabulary and the occurrence count of each of the at least two phoneme phrases in the original text are determined, wherein the phoneme vocabulary comprises at least two candidate phoneme phrases; a first pronunciation feature vector is obtained according to the position of each phoneme phrase in the phoneme vocabulary and the occurrence count of each phoneme phrase in the original text.
[0114] Exemplarily, a window with a width of two characters slides starting from the start end of the phonemes corresponding to the original text, slides one character each time until it slides to the end, wherein the phonemes corresponding to the two characters framed by the window in each sliding process are taken as one phoneme phrase. For example, the phoneme corresponding to "小儿厌食" is "xiaoeryanshi", which can be divided into three phoneme phrases: "xiaoer", "eryan" and "yanshi".
[0115] Exemplarily, the phoneme vocabulary is {xiaoer, eryan, yanshi, shizheng}, then the positions of the three phoneme phrases "xiaoer", "eryan" and "yanshi" divided from "小儿厌食" in the vocabulary are 1, 2 and 3 respectively, and the occurrence count in the original text is all 1, so that the first character feature vector can be obtained as {1, 1, 1, 0} according to the position of each phrase in the vocabulary and the occurrence count of each phrase in the original text.
[0116] Optionally, an initial pronunciation feature vector is obtained according to the position of each phoneme phrase in the phoneme vocabulary and the occurrence count of each phoneme phrase in the original text, and the initial pronunciation feature vector is mapped to a low-dimensional space to obtain a low-dimensional vector as the first pronunciation feature vector.
[0117] Optionally, the initial pronunciation feature vector may be mapped to the low-dimensional space by a linear mapping method.
[0118] Exemplarily, through the formula h u =W2c+d, the initial pronunciation feature vector is mapped to the low-dimensional space, where c is the initial pronunciation feature vector; W2 and d are learnable parameters; h u represents the real first pronunciation feature vector.
[0119] Mapping the initial pronunciation feature vector to a low-dimensional space yields a low-dimensional vector that serves as the first pronunciation feature vector. This reduces the dimensionality of the first pronunciation feature vector, avoiding the curse of dimensionality and thus helping to reduce the complexity of calculating the similarity between the first and second fused feature vectors.
[0120] It should be noted that steps 310, 320 and 330 can be executed simultaneously or in sequence. This application does not limit the execution order of steps 310, 320 and 330.
[0121] Step 340: The first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain the first fused feature vector.
[0122] Optionally, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector can be fused using a weighted concatenation method to obtain the first fused feature vector.
[0123]
[0124] For example, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused using formula (1) to obtain the first fused feature vector, where ⊕ represents a weighted concatenation operation; w i ,i∈{c,r,u} represent the weights of feature vectors at different granularities, which are learnable parameters, where W c W represents the weight of the first character feature vector. r W represents the weight of the first semantic feature vector. u h represents the weight of the first pronunciation feature vector. i ,i∈{c,r,u} represent feature vectors of different granularities, h c h is the feature vector of the first character. r h is the first semantic feature vector. u This is the first pronunciation feature vector.
[0125] Optionally, the weights of the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector in the first fused feature vector can be the same or different, and this application does not limit this. In one example, the weights of the three feature vectors in the first fused feature vector are all one-third. In another example, the weight of the first character feature vector in the first fused feature vector is one-half, the weight of the first semantic feature vector is one-third, and the weight of the first pronunciation feature vector is one-sixth.
[0126] In some embodiments, during the training of the first feature extraction model, the weights of the three feature vectors in the first fused feature vector can be adjusted according to the backpropagation of the model training loss.
[0127] Optionally, before fusing the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are normalized. For example, the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are normalized to obtain normalized first character feature vectors, normalized first semantic feature vectors, and normalized first pronunciation feature vectors. These normalized first character feature vectors, normalized first semantic feature vectors, and normalized first pronunciation feature vectors are then fused to obtain a first fused feature vector. Optionally, the elements contained in the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are each normalized to vector elements with a normal distribution and a mean of 0 and a variance of 1.
[0128] First fusion feature vector h o By fusing feature vectors of different dimensions and granularities into a single feature vector, and by comprehensively considering information at different levels of the original text, a more flexible and robust short text standardization process can be achieved.
[0129] Optionally, steps 310 to 340 above can be implemented using a first feature extraction model.
[0130] Step 350: Based on the literal matching degree between the original text and the standard texts in the standard text list, filter the standard texts in the standard text list to obtain a recall standard text list, which contains a portion of the standard texts selected from the standard text list.
[0131] Literal matching degree refers to the literal similarity between two texts. Optionally, literal matching degree can be calculated based on statistical methods through word overlap.
[0132] The standard text list usually contains a large number of standard texts. For example, ICD10 (International Classification of Diseases) contains about 30,000 standard texts. If each pair of the original text and each standard text in the standard text list is compared, the computational cost will be very high, which is difficult to meet the needs of real-world online deployment scenarios. Therefore, it is necessary to first pre-screen the standard texts in the standard text list and select a small portion (e.g., hundreds) for the next stage of calculation.
[0133] Since the greater the literal similarity between two words, the greater the probability of semantic association between them, the candidate size can be quickly narrowed down by the degree of literal matching between the original text and the standard text.
[0134] Optionally, a probabilistic statistical model can be used to filter the standard texts in the standard text list based on the literal matching degree between the original text and the standard texts in the standard text list, thus obtaining a recall standard text list. For example, the BM25 model can be used to filter the standard texts in the standard text list based on the literal matching degree between the original text and the standard texts in the standard text list, thus obtaining a recall standard text list. The BM25 model can measure the relevance between the original text and the standard texts, and is simple, effective, and fast, enabling rapid recall of relevant standard texts and meeting the requirements of online query efficiency.
[0135] Specifically, for the original text s, the original text is segmented using a word segmentation tool to obtain the original text sequence {q1, ..., q}. i , ..., q T}, where q i Let be the i-th feature (character or phrase) in the original text sequence. Given a standard text d ∈ D from a list of standard texts, where D is the set of all standard texts in the list, each standard text d is segmented in the same way as the original text to obtain the corresponding standard text sequence. The formula for calculating the relevance score S between the original text s and the standard text d is as follows:
[0136]
[0137] Among them, w i Representing feature q i The weights, R(q) i ,d) represents feature q i The relevance score to the standard text d, where the symbol "*" indicates element-wise multiplication, w i The formula for calculating the value is as follows:
[0138]
[0139] Where N is the total number of standard texts in the standard text list, df(q i ) is the feature q i The standard text quantity.
[0140] Correlation score R(q) i The formula for calculating d) is as follows:
[0141]
[0142]
[0143] Where f i Representing feature q i The frequency dl in the standard text d represents the length of the standard text d, avgdl represents the average length of all standard texts in the standard text list D, and k1 and b are manually set hyperparameters.
[0144] The relevance score between the original text s and each standard text d is calculated using the formula above. The higher the relevance score, the greater the probability that the two texts express the same semantics. Therefore, the top-K standard texts d can be selected from the highest to lowest relevance scores as the standard texts with the highest similarity to the original text s, forming a recall standard text list. By setting the size of TOP-K, a balance can be struck between performance and efficiency. A larger TOP-K results in better recall, but also requires greater computational overhead in subsequent stages. Generally, increasing the value of TOP-K is beneficial to improving the model's performance while meeting online query efficiency requirements.
[0145] This application does not limit the word segmentation tool used by the model; for example, jieba can be used as the word segmentation tool.
[0146] Optionally, the value of TOP-K can be determined based on the number of standard texts N in the standard text list. For example, if the standard text list contains 30,000 standard texts, the value of TOP-K is set to 500; if the standard text list contains 1,000 standard texts, the value of TOP-K is set to 100.
[0147] Step 360: Calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text in the recall standard text list.
[0148] Optionally, the second fused feature vector can be obtained through a second feature extraction model, which is a different feature extraction model from the first feature extraction model.
[0149] Considering that the original text and the standard text have different characteristics, the original text is generally relatively colloquial and written casually, and usually contains some noise (such as redundant symbols or typos), while the standard text is standardized and highly professional. Moreover, the standard text of the mapping system is large in volume but within a finite set. Therefore, the first feature extraction model and the second feature extraction model can have the same structure but different parameters. Using independent feature extraction models to extract features from the original text and the standard text respectively is beneficial to unleash the feature extraction model's ability to extract different features.
[0150] It should be noted that the second fused feature vector can be obtained before or after step 340, and this application does not limit it in this regard.
[0151] Step 370: Based on similarity, determine the standard text corresponding to the original text from each standard text.
[0152] The technical solution provided in this application uses the degree of literal matching to filter standard texts in a standard text list, thereby forming a recall standard text list, reducing the candidate size of standard texts, reducing computational overhead, and improving online query efficiency.
[0153] Please refer to Figure 4 The diagram illustrates a flowchart of a short text standardization method provided in another embodiment of this application. This method may include at least one of the following steps 410-450.
[0154] Step 410: Obtain at least two sample pairs, each containing one original text sample and one standard text sample.
[0155] In some embodiments, at least two sample pairs include a positive sample pair and a negative sample pair. The standard text sample contained in the positive sample pair is the labeled standard text of the original text sample; the standard text sample contained in the negative sample pair is the unlabeled standard text of the original text sample.
[0156] Optionally, the standard text sample in the negative sample pair can be randomly selected from the unlabeled standard text of the original text.
[0157] In some embodiments, at least two sample pairs include: positive sample pairs, random negative sample pairs, and hard negative sample pairs. Specifically, the standard text samples in the random negative sample pairs are randomly selected from a list of standard texts and are not the labeled standard text of the original text sample; the standard text samples in the hard negative sample pairs have a feature similarity to the original text sample greater than or equal to a threshold and are not the labeled standard text of the original text sample, where feature similarity refers to the similarity between the first fused feature vector of the original text sample and the second fused feature vector of the standard text sample.
[0158] Because random negative sample pairs often contain easily distinguishable negative samples, such as "childhood anorexia" and "small bowel obstruction," it's easy to differentiate them based on character or semantic features, indicating they don't belong to the same disease concept. However, "childhood anorexia" and "neurotic anorexia" share the similar disease concept of "anorexia," but due to differences in the modifying components (childhood vs. neurotic), they do not belong to the same disease concept. We hope the model can learn from difficult negative samples like the latter, extracting more valuable and discriminative features. Therefore, in addition to obtaining random negative sample pairs, we also obtained difficult negative sample pairs.
[0159] One possible method for obtaining difficult negative samples is to calculate the feature similarity between the original text sample and each standard text in the standard text list; select the K standard texts with the highest feature similarity (excluding the labeled standard texts of the original text sample) as standard text samples, and form K difficult negative sample pairs with the original text sample, where K is an integer greater than 1. Optionally, the value of K can be determined based on the number of standard texts contained in the standard text list, or it can be determined based on the feature similarity threshold; this application does not limit this.
[0160] Optionally, feature similarity may refer to the similarity between the first fused feature vector of the original text sample and the second fused feature vector of the standard text sample, or it may refer to the degree of literal matching between the original text sample and the standard text sample. This application does not limit this.
[0161] It should be noted that this application does not limit the method for obtaining difficult negative sample pairs; nor does it limit the specific meaning and calculation method of feature similarity. The above is only an illustrative example.
[0162] Optionally, the standard text sample is obtained from the recall standard text list.
[0163] Step 420: Using the first feature extraction model, feature extraction is performed on the original text sample to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector; and the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain a first fused feature vector; wherein, the first character feature vector is used to represent the character features of the original text sample, the first semantic feature vector is used to represent the semantic features of the original text sample, and the first pronunciation feature vector is used to represent the pronunciation features of the original text sample.
[0164] Step 430: Using the second feature extraction model, feature extraction is performed on the standard text sample to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector; and the second character feature vector, the second semantic feature vector, and the second pronunciation feature vector are fused to obtain a second fused feature vector; wherein, the second character feature vector is used to represent the character features of the standard text sample, the second semantic feature vector is used to represent the semantic features of the standard text sample, and the second pronunciation feature vector is used to represent the pronunciation features of the standard text sample; the first feature extraction model and the second feature extraction model are two different feature extraction models.
[0165] Step 440: Compare the first fused feature vector with the second fused feature vector to obtain the model training loss.
[0166] Optionally, a first loss parameter is obtained by comparing and learning the first fused feature vector and the second fused feature vector; a second loss parameter is obtained by comparing and learning the first character feature vector and the second character feature vector; a third loss parameter is obtained by comparing and learning the first semantic feature vector and the second semantic feature vector; a fourth loss parameter is obtained by comparing and learning the first pronunciation feature vector and the second pronunciation feature vector; and the model training loss is calculated based on the first loss parameter, the second loss parameter, the third loss parameter, and the fourth loss parameter.
[0167] Optionally, the loss parameter mentioned above refers to similarity.
[0168] For example, the first fused feature vector and the second fused feature vector are compared and learned according to the following formula to obtain the first loss parameter (first similarity):
[0169] f(p i q i ) = exp(G p (p i )·G q (q i ) / γ)
[0170] Here, the symbol [·] represents the dot product operation. i ,q i Let G represent the original text sample and the standard text sample in the i-th sample pair, respectively. γ is a hyperparameter. p G represents the first feature extraction model. q This represents the second feature extraction model.
[0171] For example, the formula for calculating the model training loss is as follows:
[0172]
[0173] Where I is the number of original texts; Let j represent the j-th random negative sample pair, and k1 be the number of random negative sample pairs; Let represent the j-th difficult negative sample pair, and k2 be the number of difficult negative sample pairs.
[0174] By comparing and contrasting the character feature vectors, semantic feature vectors, pronunciation feature vectors, and fused feature vectors to obtain the corresponding loss parameters, it is not only required that the fused features comprehensively judge the alignment relationship between the original text and the standard text based on feature information of different granularities, but also that each feature information obtains a more discriminative boundary to improve the discriminativeness of the feature information.
[0175] Step 450: Adjust the parameters of the first feature extraction model and the second feature extraction model according to the model training loss; wherein, the first feature extraction model, after training, is used to extract and fuse features from the original text in order to determine the standard text corresponding to the original text.
[0176] Optionally, the training process of the short text normalization model is as follows: Figure 5As shown, the short text standardization model includes a recall model 510, a first feature extraction model 520, a third feature extraction model 530, and a contrastive learning layer 540. The recall model 510 filters the standard texts in the standard text list 511 based on the literal matching degree between the original text sample 513 and the standard texts in the standard text list, resulting in a recall standard text list 512. The first feature extraction model 520 extracts features from the original text sample 513, obtaining a first character feature vector 521, a first semantic feature vector 522, and a first pronunciation feature vector 523; and fuses the first character feature vector 521, the first semantic feature vector 522, and the first pronunciation feature vector 523 to obtain a first fused feature vector 524. The second feature extraction model 530 is used to extract features from standard text samples to obtain a second character feature vector 531, a second semantic feature vector 532, and a second pronunciation feature vector 533; and to fuse the second character feature vector 531, the second semantic feature vector 532, and the second pronunciation feature vector 533 to obtain a second fused feature vector 534. The contrastive learning layer 540 is used to contrast and learn the first fused feature vector 524 and the second fused feature vector 534 to obtain the first loss parameter 541; to contrast and learn the first character feature vector 521 and the second character feature vector 531 to obtain the second loss parameter 542; to contrast and learn the first semantic feature vector 522 and the second semantic feature vector 532 to obtain the third loss parameter 543; to contrast and learn the first pronunciation feature vector 523 and the second pronunciation feature vector 533 to obtain the fourth loss parameter 544; based on the first loss parameter 541, the second loss parameter 541, the third loss parameter 543 and the fourth loss parameter 544, the model training loss 545 is calculated; finally, based on the model training loss 545, the parameters of the first feature extraction model 520 and the second feature extraction model 530 are adjusted.
[0177] The technical solution provided in this application training method trains a first feature extraction model and a second feature extraction model respectively. It uses two models with the same structure but different parameters to extract features from the original text and the standard text, which can fit the characteristics of the original text and the standard text and mine more discriminative features.
[0178] In addition, by mining difficult negative sample pairs, the first feature extraction model and the second feature extraction model are trained to deeply mine more valuable and discriminative discriminative features. The corresponding loss parameters are obtained by comparing and learning character feature vectors, semantic feature vectors, pronunciation feature vectors and fused feature vectors respectively, so that each feature information obtains a more discriminative boundary and improves the discriminativeness of feature information.
[0179] It should be noted that the above embodiments regarding the use and training processes of the short text standardization model are mutually corresponding. For details not described in one embodiment, please refer to the description in the other embodiment.
[0180] To verify the effectiveness of the short text standardization method proposed in this application, we sampled some diagnostic data used in real-world scenarios and commissioned medical experts to manually annotate the diagnostic data for experiments. A total of 4279 annotated data points were collected, with 3273 points in the training set and 1006 points in the test set. Based on this data, we evaluated the performance of traditional text matching methods and this application. The metrics used included Acc@1, Acc@5, Acc@10, and Acc@20. Acc@K represents the proportion of correct standard text contained in the top-K results. The experimental data is shown in Table 1.
[0181] Table 1: Comparison of Experimental Data
[0182] Acc@1 Acc@5 Acc@10 Acc@20 Traditional text matching methods 0.226 0.317 0.346 0.364 This application 0.873 0.962 0.978 0.988
[0183] As shown in Table 1, the short text standardization method proposed in this application significantly outperforms traditional text matching methods in all metrics on diagnostic data from real-world scenarios. For example, Acc@1 achieves a 286% improvement over text matching methods, reaching an accuracy of 0.873, demonstrating the effectiveness of the proposed short text standardization method. Furthermore, we further qualitatively analyzed the differences in the output results of the two methods, as shown in Table 2.
[0184] Table 2: Comparison of Experimental Results
[0185] Original text Standard text Traditional text matching results Results of the Invention Lung tumor Lung tumor Back tumor Lung tumor tuberculoma in the upper lobe of the right lung Pulmonary tuberculoma malignant tumor in the upper lobe of the right lung Pulmonary tuberculoma Open knee injury Open wound on the knee Open chest injury Open wound on the knee Idiopathic facial nerve palsy Bell's facial paralysis Multiple mononeuritis Facial nerve inflammation
[0186] As shown in Table 2, traditional text matching methods tend to output words that are more literally similar to the original text, ignoring the semantic information behind the original text. For example, "open knee injury" and "open chest injury" differ by only one character, but they are different diseases because they belong to completely different anatomical locations (knee vs. chest). In another example, in case 4, traditional text matching methods cannot map "idiopathic facial nerve palsy" to "Bell's palsy" on a literal level. Although these two terms are completely different, they are synonyms. By incorporating semantic features, the more abstract semantic expression behind the original text can be captured. From a medical perspective, the output of traditional text matching methods lacks medical rationality. Introducing multi-granularity feature comparison can effectively alleviate this situation because the model can measure the similarity between the original text and the standard text from different dimensions rather than relying solely on literal information.
[0187] Please refer to Figure 6 The diagram illustrates an application page for a short text standardization method provided in one embodiment of this application. The short text standardization page 600 includes a function list section 610, a raw text input section 620, a result display section 630, and other function sections 640.
[0188] The feature list section 610 displays the name of the short text standardization application and a list of its available features.
[0189] The raw text input section 620 includes a model selection bar 621, a raw text input box 622, and an input button 623. Users can select the neural network model used in the short text standardization process from the model list provided in the model selection bar 621, enter the raw text content in the raw text input box 622 according to the prompts, and click the input button 623 to apply the short text standardization method to standardize the raw text.
[0190] The results show that section 630 can display the results of short text standardization. When there are multiple versions of the standard text list, the results of short text standardization for each version of the standard text list can be displayed separately, such as the "Clinical Version", "Medical Insurance Version", and "Beijing Version" shown in the figure. In addition, it can also display the number of standard texts contained in each version of the standard text list, the number of standard texts in the recall standard text list used, etc. This application does not limit this.
[0191] Other functional modules 640 can be used to display other content related to short text standardization. For example, they can display the original text operation tree, standard texts contained in the recall standard text list, etc.
[0192] It should be noted that, Figure 6 The illustrations provided are merely exemplary representations of embodiments of this application. This application does not limit the specific display format of the short text standardization method on the page of the application.
[0193] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0194] Please refer to Figure 7 This diagram illustrates a block diagram of a short text standardization apparatus according to an embodiment of this application. The apparatus has the function of implementing the aforementioned short text standardization method; this function can be implemented in hardware or by hardware executing corresponding software. The apparatus can be a computer device or can be installed within a computer device. The apparatus 700 may include: a first feature extraction module 710, a feature fusion module 720, a calculation module 730, and a determination module 740.
[0195] The first feature extraction module 710 is used to extract features from the original text to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector. The first character feature vector is used to characterize the character features of the original text, the first semantic feature vector is used to characterize the semantic features of the original text, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text.
[0196] The feature fusion module 720 is used to fuse the first character feature vector, the first semantic feature vector and the first pronunciation feature vector to obtain a first fused feature vector.
[0197] The calculation module 730 is used to calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text; wherein the second fused feature vector is obtained by feature extraction and fusion of the standard text.
[0198] The determining module 740 is used to determine the standard text corresponding to the original text from each of the standard texts based on the similarity.
[0199] In some embodiments, the first feature extraction module 710 is configured to obtain at least two phrases from the original text, each phrase containing at least two characters, and at least one overlapping character between adjacent phrases; determine the position of each of the at least two phrases in a vocabulary, and determine the number of times each of the at least two phrases appears in the original text, the vocabulary containing at least two candidate phrases; and obtain the first character feature vector based on the position of each phrase in the vocabulary and the number of times each phrase appears in the original text.
[0200] In some embodiments, the first feature extraction module 710 is used to obtain the character sequence corresponding to the original text, wherein the character sequence includes at least two characters arranged in order by dividing the original text; and to extract the context information of each character in the character sequence to obtain the first semantic feature vector.
[0201] In some embodiments, the first feature extraction module 710 is used to obtain the phoneme corresponding to each character in the original text; obtain at least two phoneme phrases based on the phoneme corresponding to each character in the original text, each phoneme phrase containing at least two phonemes corresponding to characters, and there is at least one overlapping phoneme corresponding to a character between adjacent phoneme phrases; determine the position of each phoneme phrase in the phoneme vocabulary and determine the number of times each phoneme phrase appears in the original text, the phoneme vocabulary containing at least two candidate phoneme phrases; and obtain the first pronunciation feature vector based on the position of each phoneme phrase in the phoneme vocabulary and the number of times each phoneme phrase appears in the original text.
[0202] In some embodiments, such as Figure 8 As shown, the device 700 also includes a recall module 750.
[0203] The recall module 750 is used to filter the standard texts in the standard text list based on the literal matching degree between the original text and the standard texts in the standard text list, and obtain a recall standard text list, wherein the recall standard text list contains a portion of the standard texts selected from the standard text list.
[0204] The calculation module 730 is used to calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text in the recall standard text list.
[0205] In some embodiments, the original text is extracted using a first feature extraction model, and the standard text is extracted using a second feature extraction model. The first feature extraction model and the second feature extraction model are two different feature extraction models.
[0206] In some embodiments, the first feature extraction model and the second feature extraction model have the same structure but different parameters.
[0207] The technical solution provided in this application extracts a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector from the original text, and fuses these three feature vectors to obtain a first fused feature vector. The similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text is calculated, and the standard text corresponding to the original text is determined based on the similarity. This approach fully leverages feature information at different levels. By extracting the first character feature vector to model the surface semantics of the original text, extracting the first semantic feature vector to model the contextual relationships and hidden deep semantic information of the original text, and extracting the first pronunciation feature vector to reduce noise in the original text, the accuracy of short text standardization is improved. Furthermore, by fusing the three feature vectors to form the first fused feature vector of the original text, the similarity between the original text and the standard text is evaluated from multiple dimensions, thus improving the accuracy of short text standardization.
[0208] Please refer to Figure 9 This diagram illustrates a block diagram of a short text standardization apparatus according to another embodiment of this application. The apparatus has the function of implementing the aforementioned short text standardization method; this function can be implemented in hardware or by hardware executing corresponding software. The apparatus 900 can be a computer device or can be installed within a computer device. The apparatus 900 includes: an acquisition module 910, a second feature extraction module 920, a third feature extraction module 930, a contrast learning module 940, and an adjustment module 950.
[0209] The acquisition module 910 is used to acquire at least two sample pairs, each containing an original text sample and a standard text sample.
[0210] The second feature extraction module 920 is used to extract features from the original text sample using a first feature extraction model to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector; and to fuse the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector to obtain a first fused feature vector; wherein the first character feature vector is used to characterize the character features of the original text sample, the first semantic feature vector is used to characterize the semantic features of the original text sample, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text sample.
[0211] The third feature extraction module 930 is used to extract features from the standard text sample using a second feature extraction model to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector; and to fuse the second character feature vector, the second semantic feature vector, and the second pronunciation feature vector to obtain a second fused feature vector; wherein the second character feature vector is used to characterize the character features of the standard text sample, the second semantic feature vector is used to characterize the semantic features of the standard text sample, and the second pronunciation feature vector is used to characterize the pronunciation features of the standard text sample; the first feature extraction model and the second feature extraction model are two different feature extraction models.
[0212] The contrastive learning module 940 is used to compare and learn the first fused feature vector and the second fused feature vector to obtain the model training loss.
[0213] The adjustment module 950 is used to adjust the parameters of the first feature extraction model and the second feature extraction model according to the model training loss; wherein, the first feature extraction model that has completed training is used to extract and fuse features from the original text in order to determine the standard text corresponding to the original text.
[0214] In some embodiments, the at least two sample pairs include: a positive sample pair, a random negative sample pair, and a difficult negative sample pair; wherein, the standard text sample included in the positive sample pair is the labeled standard text of the original text sample; the standard text sample included in the random negative sample pair is randomly selected from a list of standard texts and is not the labeled standard text of the original text sample; the standard text sample included in the difficult negative sample pair has a feature similarity greater than or equal to a threshold with the original text sample and is not the labeled standard text of the original text sample, wherein the feature similarity refers to the similarity between the first fused feature vector of the original text sample and the second fused feature vector of the standard text sample.
[0215] In some embodiments, such as Figure 10 As shown, the device 900 also includes a selection module 960.
[0216] The selection module 960 is used to calculate the feature similarity between the original text sample and each standard text in the standard text list; and select the K standard texts with the highest feature similarity, excluding the labeled standard texts of the original text sample, as standard text samples, which together with the original text sample form K hard negative sample pairs, where K is an integer greater than 1.
[0217] In some embodiments, the contrastive learning module 940 is used to compare and learn the first fused feature vector and the second fused feature vector to obtain a first loss parameter; compare and learn the first character feature vector and the second character feature vector to obtain a second loss parameter; compare and learn the first semantic feature vector and the second semantic feature vector to obtain a third loss parameter; compare and learn the first pronunciation feature vector and the second pronunciation feature vector to obtain a fourth loss parameter; and calculate the model training loss based on the first loss parameter, the second loss parameter, the third loss parameter, and the fourth loss parameter.
[0218] The technical solution provided in this application training method trains a first feature extraction model and a second feature extraction model respectively. It uses two models with the same structure but different parameters to extract features from the original text and the standard text, which can fit the characteristics of the original text and the standard text and mine more discriminative features.
[0219] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0220] Please refer to Figure 11 This illustration shows a schematic diagram of a computer device according to an embodiment of this application. The computer device can be any electronic device with data computing, processing, and storage functions. This computer device can be used to implement the short text standardization method provided in the above embodiments. Specifically:
[0221] The computer device 1100 includes a central processing unit (such as a CPU, GPU, or FPGA) 1101, a system memory 1104 including RAM (Random-Access Memory) 1102 and ROM (Read-Only Memory) 1103, and a system bus 1105 connecting the system memory 1104 and the central processing unit 1101. The computer device 1100 also includes a basic input / output system (I / O system) 1106 to facilitate information transfer between various devices within the server, and a large-capacity storage device 1107 for storing the operating system 1113, application programs 1114, and other program modules 1111.
[0222] In some embodiments, the basic input / output system 1106 includes a display 1108 for displaying information and an input device 1109 for user input, such as a mouse or keyboard. Both the display 1108 and the input device 1109 are connected to the central processing unit 1101 via an input / output controller 1110 connected to the system bus 1105. The basic input / output system 1106 may also include the input / output controller 1110 for receiving and processing input from multiple other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 1110 also provides output to a display screen, printer, or other types of output devices.
[0223] The mass storage device 1107 is connected to the central processing unit 1101 via a mass storage controller (not shown) connected to the system bus 1105. The mass storage device 1107 and its associated computer-readable media provide non-volatile storage for the computer device 1100. That is, the mass storage device 1107 may include computer-readable media (not shown) such as a hard disk or a CD-ROM (Compact Disc Read-Only Memory) drive.
[0224] Without loss of generality, the computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other solid-state storage technologies, CD-ROM, DVD (Digital Video Disc) or other optical storage, magnetic tape cassettes, magnetic tape, disk storage, or other magnetic storage devices. Of course, those skilled in the art will recognize that the computer storage medium is not limited to the above-mentioned types. The system memory 1104 and mass storage device 1107 described above can be collectively referred to as memory.
[0225] According to an embodiment of this application, the computer device 1100 can also be connected to a remote computer on a network, such as the Internet. That is, the computer device 1100 can be connected to the network 1112 via the network interface unit 1111 connected to the system bus 1105, or the network interface unit 1111 can be used to connect to other types of networks or remote computer systems (not shown).
[0226] The memory stores a computer program, which is loaded and executed by the processor to implement the short text standardization method described above.
[0227] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored therein, the computer program being loaded and executed by a processor to implement the short text standardization method described above.
[0228] Optionally, the computer-readable storage medium may include: ROM (Read-Only Memory), RAM (Random-Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0229] In an exemplary embodiment, a computer program product is also provided, the computer program product including a computer program stored in a computer-readable storage medium, wherein a processor reads from the computer-readable storage medium and executes the computer program to implement the short text standardization method described above.
[0230] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0231] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A short text standardization method, characterized in that, The method includes: At least two sample pairs are obtained, each sample pair containing an original text sample and a standard text sample. The at least two sample pairs include: positive sample pairs, random negative sample pairs, and difficult negative sample pairs. The standard text sample in the positive sample pair is the labeled standard text of the original text sample. The standard text sample in the random negative sample pair is randomly selected from a list of standard texts and is not the labeled standard text of the original text sample. The standard text sample in the difficult negative sample pair has a feature similarity greater than or equal to a threshold with the original text sample and is not the labeled standard text of the original text sample. The feature similarity refers to the similarity between the first fused feature vector of the original text sample and the second fused feature vector of the standard text sample. The original text sample is subjected to feature extraction using a first feature extraction model to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector; and the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain a first fused feature vector; wherein the first character feature vector is used to characterize the character features of the original text sample, the first semantic feature vector is used to characterize the semantic features of the original text sample, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text sample. The standard text sample is subjected to feature extraction using a second feature extraction model to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector; and the second character feature vector, the second semantic feature vector, and the second pronunciation feature vector are fused to obtain a second fused feature vector; wherein, the second character feature vector is used to characterize the character features of the standard text sample, the second semantic feature vector is used to characterize the semantic features of the standard text sample, and the second pronunciation feature vector is used to characterize the pronunciation features of the standard text sample; the first feature extraction model and the second feature extraction model are two different feature extraction models; By comparing the first fused feature vector with the second fused feature vector, the model training loss is obtained; Based on the model training loss, the parameters of the first feature extraction model and the second feature extraction model are adjusted; wherein, the first feature extraction model, after training, is used to extract and fuse features from the original text to determine the standard text corresponding to the original text.
2. The method according to claim 1, characterized in that, The method further includes: Calculate the feature similarity between the original text sample and each standard text in the list of standard texts; Select the K standard texts with the highest feature similarity, excluding the labeled standard texts of the original text samples, as standard text samples. These standard texts, together with the original text samples, form K difficult negative sample pairs, where K is an integer greater than 1 and is determined based on the threshold.
3. The method according to claim 1, characterized in that, The comparative learning of the first fused feature vector and the second fused feature vector yields the model training loss, including: By comparing and learning the first fused feature vector and the second fused feature vector, the first loss parameter is obtained; By comparing the first character feature vector with the second character feature vector, a second loss parameter is obtained; By comparing the first semantic feature vector with the second semantic feature vector, a third loss parameter is obtained; By comparing the first pronunciation feature vector with the second pronunciation feature vector, a fourth loss parameter is obtained; The model training loss is calculated based on the first loss parameter, the second loss parameter, the third loss parameter, and the fourth loss parameter.
4. The method according to any one of claims 1 to 3, characterized in that, The method includes: The first feature extraction model, after training, is used to extract features from the original text to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector. The first character feature vector is used to characterize the character features of the original text, the first semantic feature vector is used to characterize the semantic features of the original text, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text. The first character feature vector, the first semantic feature vector, and the first pronunciation feature vector are fused to obtain the first fused feature vector; Calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text; wherein, the second fused feature vector is obtained by feature extraction and fusion of the standard text, and the standard text is feature extracted using the trained second feature extraction model; Based on the similarity, the standard text corresponding to the original text is determined from each of the standard texts.
5. The method according to claim 4, characterized in that, The step of using the trained first feature extraction model to extract features from the original text to obtain a first character feature vector includes: Based on the original text, at least two phrases are obtained, each phrase containing at least two characters, and there is at least one overlapping character between adjacent phrases; Determine the position of each of the at least two phrases in a vocabulary, and determine the number of times each of the at least two phrases appears in the original text, wherein the vocabulary contains at least two candidate phrases; The first character feature vector is obtained based on the position of each phrase in the vocabulary and the number of times each phrase appears in the original text.
6. The method according to claim 4, characterized in that, The step of using the trained first feature extraction model to extract features from the original text to obtain a first semantic feature vector includes: Obtain the character sequence corresponding to the original text, wherein the character sequence includes at least two characters arranged in order from the original text; The context information of each character in the character sequence is extracted to obtain the first semantic feature vector.
7. The method according to claim 4, characterized in that, The step of using the trained first feature extraction model to extract features from the original text to obtain a first pronunciation feature vector includes: Obtain the phoneme corresponding to each character in the original text; At least two phoneme phrases are obtained based on the phonemes corresponding to each character in the original text. Each phoneme phrase contains at least two phonemes corresponding to characters, and there is at least one overlapping phoneme corresponding to a character between two adjacent phoneme phrases. Determine the position of each of the at least two phoneme phrases in a phoneme vocabulary, and determine the number of times each of the at least two phoneme phrases appears in the original text, wherein the phoneme vocabulary contains at least two candidate phoneme phrases; The first pronunciation feature vector is obtained based on the position of each phoneme phrase in the phoneme vocabulary and the number of times each phoneme phrase appears in the original text.
8. The method according to claim 4, characterized in that, Before calculating the similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text, the method further includes: Based on the degree of literal matching between the original text and the standard texts in the standard text list, the standard texts in the standard text list are filtered to obtain a recall standard text list, which contains a portion of the standard texts selected from the standard text list; The calculation of the similarity between the first fused feature vector and the second fused feature vectors corresponding to each standard text includes: Calculate the similarity between the first fused feature vector and the second fused feature vector corresponding to each standard text in the recall standard text list.
9. The method according to any one of claims 1 to 3, characterized in that, The first feature extraction model and the second feature extraction model have the same structure, but different parameters.
10. A short text standardization device, characterized in that, The device includes: An acquisition module is used to acquire at least two sample pairs, each sample pair containing an original text sample and a standard text sample. The at least two sample pairs include: positive sample pairs, random negative sample pairs, and difficult negative sample pairs. The standard text sample in the positive sample pair is the labeled standard text of the original text sample. The standard text sample in the random negative sample pair is randomly selected from a list of standard texts and is not the labeled standard text of the original text sample. The standard text sample in the difficult negative sample pair has a feature similarity greater than or equal to a threshold with the original text sample and is not the labeled standard text of the original text sample. The feature similarity refers to the similarity between the first fused feature vector of the original text sample and the second fused feature vector of the standard text sample. The second feature extraction module is used to extract features from the original text sample using a first feature extraction model to obtain a first character feature vector, a first semantic feature vector, and a first pronunciation feature vector; and to fuse the first character feature vector, the first semantic feature vector, and the first pronunciation feature vector to obtain a first fused feature vector; wherein the first character feature vector is used to characterize the character features of the original text sample, the first semantic feature vector is used to characterize the semantic features of the original text sample, and the first pronunciation feature vector is used to characterize the pronunciation features of the original text sample. The third feature extraction module is used to extract features from the standard text sample using the second feature extraction model to obtain a second character feature vector, a second semantic feature vector, and a second pronunciation feature vector; and to fuse the second character feature vector, the second semantic feature vector, and the second pronunciation feature vector to obtain a second fused feature vector; wherein the second character feature vector is used to represent the character features of the standard text sample, the second semantic feature vector is used to represent the semantic features of the standard text sample, and the second pronunciation feature vector is used to represent the pronunciation features of the standard text sample; the first feature extraction model and the second feature extraction model are two different feature extraction models; The contrastive learning module is used to compare and learn the first fused feature vector with the second fused feature vector to obtain the model training loss. The adjustment module is used to adjust the parameters of the first feature extraction model and the second feature extraction model according to the model training loss; wherein, the first feature extraction model, after training, is used to extract and fuse features from the original text to determine the standard text corresponding to the original text.
11. The apparatus according to claim 10, characterized in that, The device further includes: The selection module is used to calculate the feature similarity between the original text sample and each standard text in the list of standard texts; The selection module is further configured to select the K standard texts with the highest feature similarity, excluding the labeled standard texts of the original text sample, as standard text samples, and form K difficult negative sample pairs with the original text sample, where K is an integer greater than 1 and is determined according to the threshold.
12. The apparatus according to claim 10, characterized in that, The contrastive learning module is used for: By comparing and learning the first fused feature vector and the second fused feature vector, the first loss parameter is obtained; By comparing the first character feature vector with the second character feature vector, a second loss parameter is obtained; By comparing the first semantic feature vector with the second semantic feature vector, a third loss parameter is obtained; By comparing the first pronunciation feature vector with the second pronunciation feature vector, a fourth loss parameter is obtained; The model training loss is calculated based on the first loss parameter, the second loss parameter, the third loss parameter, and the fourth loss parameter.
13. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program that is loaded and executed by the processor to implement the short text standardization method as described in any one of claims 1 to 9.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the short text standardization method as described in any one of claims 1 to 9.
15. A computer program product, characterized in that, The computer program product includes a computer program that is loaded and executed by a processor to implement the short text standardization method as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Text error correction method and device and storage medium
CN113255331A
Method for converting text data into phoneme sequence and equipment
CN113823259A
