A text error correction system after speech recognition in a logistics scenario

By constructing a logistics error correction association graph and a candidate error correction graph, the accuracy and stability issues of the text error correction system after logistics speech recognition in logistics scenarios were solved, achieving accurate error correction of logistics terms, outlet names, and business status names, and reducing the risk of erroneous corrections.

CN123180129APending Publication Date: 2026-11-27SHANGHAI YUANQING INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611403665.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing logistics speech recognition and text correction systems struggle to accurately identify logistics terms, branch names, personnel names, and business status names in logistics scenarios. Furthermore, the correction process can easily become detached from the current business status, leading to problems such as undetected recognition errors, inaccurate selection of candidate correction words, and accidental modification of normal text.

Method used

A logistics error correction association graph is constructed by acquiring standard logistics terminology data, logistics entity data, and historical error correction data. Combined with speech similarity, historical error tendency, and business consistency, the text range to be corrected is determined, and a candidate word set is generated. A candidate error correction graph is constructed based on comprehensive error correction weights, and the target error correction text is output in conjunction with the error correction verification module.

Benefits of technology

It improves the accuracy and stability of error correction, reduces the risk of missed, incorrect, and over-correction, and ensures the consistency of error correction results with logistics business relationships and contextual semantics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180129A_ABST
    Figure CN123180129A_ABST
Patent Text Reader

Abstract

The application discloses a text error correction system after voice recognition in a logistics scene and relates to the technical field of voice recognition text processing, comprising an error correction knowledge construction module, an abnormality positioning module, a candidate generation module, a candidate graph construction module, a constraint error correction module and an error correction verification module. The error correction knowledge construction module constructs a logistics error correction correlation graph according to standard logistics word data, logistics entity data and historical error correction data; the abnormality positioning module calculates voice approximation, historical error tendency and business consistency in combination with original text and business context data, and determines a text interval to be corrected; the candidate generation module extracts a candidate word set; the candidate graph construction module generates comprehensive error correction weights and constructs a candidate error correction graph; the constraint error correction module determines a target error correction path, and generates an initial error correction text; and the error correction verification module outputs the target error correction text according to error correction evidence gain values. The application improves error correction accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of speech recognition and text processing technology, and in particular to a speech recognition and text correction system for logistics scenarios. Background Technology

[0002] In logistics voice input scenarios, existing speech recognition and text correction methods mostly rely on general lexicons, near-sound matching, and text models for processing. However, they lack sufficient constraints on the association between logistics terms, branch names, personnel names, route names, and business status names. This can easily lead to problems such as recognition errors going undetected, inaccurate selection of candidate correction words, and accidental modification of normal text, making it difficult to meet the accuracy and stability requirements of logistics business text.

[0003] Traditional error correction methods typically treat the raw text after speech recognition as a whole for correction, lacking prior location of suspected errors, resulting in an excessively broad correction scope. The candidate word generation process also largely revolves around similar pinyin, similar characters, and mapping of historical misspellings, failing to fully integrate current business context data such as waybills, work orders, branches, personnel, and routes. This leads to candidate words that, while phonetically similar, do not match the current business status. The error correction result verification stage relies primarily on pronunciation similarity rules, making it difficult to determine whether the modified text is truly reasonable in terms of logistics business relationships and contextual semantics.

[0004] To address the aforementioned issues, there is an urgent need in this field for a text correction system following speech recognition in logistics scenarios. This system should be able to locate suspected error intervals in the original text based on logistics error correction knowledge, historical error correction relationships, and the current business context, generate candidate error correction words constrained by business relationships, and verify the semantic and business consistency before and after error correction, thereby reducing the risks of missed corrections, false corrections, and over-corrections. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a text correction system after speech recognition in logistics scenarios.

[0006] This invention provides a text correction system after speech recognition in a logistics scenario, comprising: The error correction knowledge construction module acquires standard logistics terminology data, logistics entity data, and historical error correction data from the lexicon management terminal, extracts error conversion relationships and business association relationships, and constructs a logistics error correction association graph. The anomaly localization module obtains the original text output by the ASR module and the business context data of the logistics business system. It divides the original text into text segments and calculates the speech similarity, historical error tendency and business consistency of each text segment based on the logistics error correction association map and business context data to obtain the text anomaly risk value and determine the text range to be corrected. The candidate generation module extracts speech-related candidate words, error conversion-related candidate words, and business-related candidate words from the logistics error correction association graph based on the text range to be corrected and business context data, forming a candidate word set. The candidate graph construction module generates a comprehensive error correction weight based on the phonetic similarity, semantic consistency, error conversion credibility, and business consistency between candidate words and the text interval to be corrected, and constructs a candidate error correction graph according to the position of the text interval to be corrected. The constraint correction module determines the target correction path based on the comprehensive correction weight of candidate words in the candidate correction graph and the modification cost relative to the original text, and generates the initial correction text. The error correction verification module calculates the semantic consistency change and business consistency change of the initial error correction text relative to the original text, generates an error correction evidence gain value based on the phonetic similarity of candidate words, determines the adoption result of the text interval to be corrected based on the error correction evidence gain value, and outputs the target error correction text.

[0007] In summary, the present invention has at least one of the following beneficial technical effects: 1. This invention provides a text correction system after speech recognition in a logistics scenario. Through a knowledge construction module, it acquires standard logistics terminology data, logistics entity data, and historical error correction data from a historical error correction database. It then extracts error transformation relationships and business association relationships, constructing a logistics error correction association graph containing standard terminology nodes, logistics entity nodes, and error text nodes. This ensures that logistics terms, branch names, personnel names, business processes, and historical ASR error text no longer participate in error correction as isolated entries, but rather form a traceable data association foundation under the joint constraints of speech approximation relationships, historical error correction relationships, and logistics business relationships. The anomaly localization module further acquires the original text output by the ASR module and business context data from the logistics business system. It divides the original text into text segments and calculates speech approximation, historical error tendency, and business consistency based on the logistics error correction association graph. After obtaining the text anomaly risk value, it determines the text range to be corrected. This processing method changes the traditional error correction system's crude approach of directly rewriting the entire sentence text. It enables the system to first identify the segments in the original text that truly require error correction before proceeding to the subsequent candidate generation process. This reduces the possibility of irrelevant text being mistakenly modified and provides clear data and business basis for error localization after logistics voice recognition, thereby improving the accuracy and stability of error correction triggering.

[0008] 2. This invention, through a candidate generation module, extracts speech-related candidate words, error conversion-related candidate words, and business-related candidate words from a logistics error correction association graph based on the text interval to be corrected and business context data. This forms a candidate word set adapted to the current logistics business status, avoiding candidate bias caused by determining the correction target solely based on similar pinyin. The candidate graph construction module further generates comprehensive error correction weights based on the speech similarity, semantic consistency, error conversion credibility, and business consistency between candidate words and the text interval to be corrected. It then constructs a candidate error correction graph according to the position of the text interval to be corrected, enabling the candidate relationships between multiple text intervals to be corrected to be comprehensively measured within the same error correction search space. The constraint error correction module determines the target error correction path in the candidate error correction graph by combining the comprehensive error correction weights and the modification cost relative to the original text, generating initial error correction text. This ensures that the error correction result balances the credibility of candidate words and the extent of changes to the original text. The error correction verification module then calculates the semantic consistency change and business consistency change of the initial corrected text relative to the original text, and generates an error correction evidence gain value by combining the phonetic similarity of candidate words. This determines the adoption result of the text interval to be corrected and outputs the target corrected text. This mechanism requires each text replacement to undergo joint verification of pronunciation, history, semantics, and business relationships, which can effectively reduce the risks of missed corrections, false corrections, and over-corrections. At the same time, the knowledge update module writes the adopted new ASR error text and the new corrected text into the historical error correction data and updates the error transformation credibility in the logistics error correction association graph, so that the subsequent anomaly location and candidate generation of the original text can obtain error correction basis that is more in line with the logistics business scenario. Attached Figure Description

[0009] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 This is a framework diagram of a text correction system after speech recognition in a logistics scenario provided by an embodiment of the present invention.

[0011] Figure 2 This is a flowchart of logistics error correction association map construction and anomaly location provided in the embodiments of the present invention.

[0012] Figure 3 This is a flowchart of candidate error correction graph construction, path search, and verification feedback provided in an embodiment of the present invention. Detailed Implementation

[0013] The following description, in conjunction with the implementation of the present invention, is merely an example and illustration of the concept of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described, or use similar methods to replace them, as long as they do not deviate from the concept of the invention, and all such modifications and additions should fall within the protection scope of the present invention.

[0014] Example This invention is applicable to voice input scenarios such as express delivery, warehousing and distribution scheduling, branch customer service, and delivery follow-up. It primarily addresses the problem that logistics terms, branch names, personnel names, and business status names in the original text output by the ASR module are easily identified as near-phonetic texts, and that ordinary text correction is prone to errors due to being out of touch with the current logistics business status. In this embodiment, the system does not directly rewrite the entire original text. Instead, the error correction knowledge construction module first organizes standard logistics terminology data, logistics entity data, and historical error correction data into a logistics error correction association graph. Then, the anomaly localization module determines the text interval to be corrected in the original text. Subsequently, a candidate word set is generated around the text interval to be corrected, and a candidate error correction graph is constructed. Finally, the constraint error correction module and the error correction verification module determine the target error correction text. Throughout the process, the speech similarity, historical error tendency, business consistency, comprehensive error correction weight, text modification cost, and error correction evidence gain value are all dimensionless proportional data with clear meanings, allowing for comparison and combination within the same scale.

[0015] This application discloses a text correction system after speech recognition in a logistics scenario.

[0016] Reference Figures 1 to 3 A text correction system based on speech recognition in a logistics scenario, specifically including: The error correction knowledge construction module acquires standard logistics terminology data, logistics entity data, and historical error correction data from the lexicon management terminal, extracts error conversion relationships and business association relationships, and constructs a logistics error correction association graph. Specifically, the error correction knowledge construction module establishes data interfaces with the thesaurus management terminal, the historical error correction database, and the logistics business system. The thesaurus management terminal transmits standard logistics terminology data and logistics entity data to the error correction knowledge construction module. A single record of standard logistics terminology data can include a term identifier, a standard logistics term name, business attribution data, and a term status field. The standard logistics term name can be a logistics business expression such as "scanned upon arrival," "in dispatch," "problem item registration," or "pickup exception." A single record of logistics entity data can include an entity identifier, a logistics entity name, business attribution data, and entity association data. The logistics entity name can be a branch name, route name, region name, or personnel name.

[0017] The historical error correction database transmits historical error correction data to the error correction knowledge construction module. Each record in the historical error correction data can include a record identifier, ASR error text, correction text, current business object identifier, and current business process identifier. Upon receiving this data, the error correction knowledge construction module first performs name standardization processing on the standard logistics terminology data and logistics entity data, eliminating name differences caused by spaces, capitalization, full-width / half-width characters, and common suffixes. It then generates pinyin codes for the standard logistics terminology names and logistics entity names, thereby forming standard terminology node data and logistics entity node data.

[0018] The error correction knowledge construction module reads ASR error text and corrected text from historical error correction data. It matches the corrected text with standard word node data and logistics entity node data to find the target node that the ASR error text should point to, and forms an error transformation relationship accordingly. Simultaneously, the module extracts business attribution data from standard logistics word data and logistics entity data, and entity association data from logistics entity data, expressing the business connections between standard word nodes and logistics entity nodes as business association relationships. For ASR error text that does not overlap with standard word nodes and logistics entity nodes, the module creates an error text node and writes the error text node, standard word nodes, and logistics entity nodes, along with their pinyin codes, error transformation relationships, and business association relationships, into a graph data storage area, forming a logistics error correction association graph.

[0019] The anomaly localization module obtains the original text output by the ASR module and the business context data of the logistics business system. It divides the original text into text segments and calculates the speech similarity, historical error tendency and business consistency of each text segment based on the logistics error correction association map and business context data to obtain the text anomaly risk value and determine the text range to be corrected. Specifically, after the logistics error correction association graph is constructed, the anomaly localization module begins processing the raw text output by the ASR module. The ASR module can be provided by the speech recognition service in the logistics customer service system, the courier's voice input terminal, or the intelligent outbound call platform, and the output is a text string arranged in character order. Simultaneously, the logistics business system transmits business context data to the anomaly localization module. This business context data includes the current business object identifier, the current business process identifier, and the current associated entity identifier. The current business object identifier can correspond to business objects such as waybills, work orders, and scheduling tasks. The current business process identifier indicates the business process in which the current text was generated, and the current associated entity identifier is used to locate the logistics entities involved in the current voice interaction, such as branches, personnel, routes, and regions.

[0020] After receiving the original text and business context data, the anomaly localization module divides the original text into continuous text segments according to character position and converts each text segment into a pinyin sequence. Each text segment is sent to the logistics error correction association graph for matching. The anomaly localization module determines the speech similarity based on the syllable edit distance between the pinyin sequence of the text segment and the pinyin encoding of the graph node. Simultaneously, it reads the error conversion confidence level corresponding to the erroneous text node matched by the text segment as a historical error tendency, and calculates the business consistency of the corresponding text segment in conjunction with the business context data. Speech similarity indicates the degree to which the text segment is phonetically close to the graph node; historical error tendency indicates the stability of the same ASR erroneous text being corrected to the target node in historical error correction data; and business consistency indicates the tightness of the business connection between the node corresponding to the text segment and the current business state.

[0021] The anomaly localization module uses three anomaly metrics: subtracting speech similarity, subtracting business consistency, and historical error tendency. It then averages these three metrics to obtain a text anomaly risk value. A higher text anomaly risk value indicates that the text segment is more likely to require correction. The anomaly localization module merges adjacent text segments with anomaly risk values ​​reaching a preset threshold based on their character positions in the original text, forming a text interval to be corrected. This text interval is then transmitted to the candidate generation module.

[0022] The candidate generation module extracts speech-related candidate words, error conversion-related candidate words, and business-related candidate words from the logistics error correction association graph based on the text range to be corrected and business context data, forming a candidate word set. Specifically, after receiving the text range to be corrected and the business context data, the candidate generation module does not directly use a single pinyin matching result as the correction object. Instead, it extracts candidates from multiple sources in the logistics error correction association graph. For each text range to be corrected, the candidate generation module first extracts standard word nodes and logistics entity nodes with pinyin encoding matching from the logistics error correction association graph based on the pinyin sequence of the text range to form speech-related candidate words.

[0023] Next, based on the erroneous text nodes matched within the text range to be corrected, the corresponding target nodes are extracted along the error transformation relationship to form error transformation-related candidate words. Simultaneously, the candidate generation module locates the current associated entity node based on the current associated entity identifier in the business context data, and extracts standard word nodes and logistics entity nodes connected to the current associated entity node along the business relationship to form business-related candidate words. Speech-related candidate words are used to retain the characteristic that ASR errors typically manifest as near-sound errors; error transformation-related candidate words are used to introduce error patterns that have already appeared in historical error correction data; and business-related candidate words are used to include the current logistics business status in the candidate range. After the candidate generation module collects the three types of candidate words, it performs deduplication according to the node identifier to obtain a candidate word set, and transmits the candidate word set along with the text range to be corrected to the candidate graph construction module.

[0024] The candidate graph construction module generates a comprehensive error correction weight based on the phonetic similarity, semantic consistency, error conversion credibility, and business consistency between candidate words and the text interval to be corrected, and constructs a candidate error correction graph according to the position of the text interval to be corrected. Specifically, after receiving the candidate word set, the candidate graph construction module performs feature calculations on each candidate word at a uniform scale. Following the method used by the anomaly localization module to determine speech similarity, the module calculates the speech similarity between the candidate word and the text interval to be corrected. Then, it replaces the corresponding text interval to be corrected with the candidate word to form candidate text. From the candidate text, it extracts the adjacent text before and after the candidate word, and counts the number of records where the candidate word and its adjacent text co-occur in the corrected text of historical error correction data, thereby obtaining the semantic consistency.

[0025] Subsequently, the business consistency is determined based on the shortest business association path between the candidate word's corresponding node and the current business-related node set, and the error transformation credibility of the candidate word's corresponding target node is read. The candidate graph construction module averages the speech similarity, semantic consistency, error transformation credibility, and business consistency to obtain a comprehensive error correction weight. The comprehensive error correction weight is used to represent the comprehensive fit of the candidate word with the text interval to be corrected in terms of pronunciation, text context, historical error correction records, and logistics business status. After completing the calculation of the comprehensive error correction weight for each candidate word, the candidate graph construction module uses the candidate word as a candidate node, connects adjacent candidate nodes according to the order of each text interval to be corrected in the original text, forms a candidate error correction graph, and transmits the candidate error correction graph to the constraint error correction module.

[0026] The constraint correction module determines the target correction path based on the comprehensive correction weight of candidate words in the candidate correction graph and the modification cost relative to the original text, and generates the initial correction text. Specifically, the constraint correction module determines the target correction path in the candidate correction graph. For each candidate node, the constraint correction module counts the number of character replacements, insertions, and deletions generated by replacing the text interval to be corrected with candidate words. The sum of these three types of character counts yields the number of character edits, and the text modification cost is determined by the ratio of the number of character edits to the length of the longer character in the text interval to be corrected and the length of the candidate word. The text modification cost is also a dimensionless proportional data point, representing the extent of text modification required to adopt the candidate word; a larger ratio indicates a larger modification.

[0027] The constraint correction module generates candidate correction paths from the candidate correction graph, sequentially traversing each text interval to be corrected. It calculates the average comprehensive correction weight and the average text modification cost for each candidate correction path, then subtracts the average text modification cost from the average comprehensive correction weight to obtain the path correction benefit. The path correction benefit measures the balance between the correction reliability and the magnitude of text modification for a candidate correction path. The constraint correction module selects the candidate correction path with the highest path correction benefit as the target correction path and replaces the corresponding text intervals to be corrected with candidate words from the target correction path to generate the initial corrected text.

[0028] If there are candidate error correction paths with the same path correction benefits, the candidate error correction path with the lower text modification cost can be selected first during implementation, so that the initial error correction text retains as much of the content in the original text that has not been proven to need modification as possible.

[0029] The error correction verification module calculates the semantic consistency change and business consistency change of the initial error correction text relative to the original text, generates an error correction evidence gain value based on the phonetic similarity of candidate words, determines the adoption result of the text interval to be corrected based on the error correction evidence gain value, and outputs the target error correction text. Specifically, after the initial error-correction text is generated, the error-correction verification module verifies each replaced text interval to be corrected. Following the method used by the candidate graph construction module to determine semantic and business consistency, the error-correction verification module calculates the semantic and business consistency of corresponding positions in the original text and the initial error-correction text for each text interval to be corrected.

[0030] Subsequently, the semantic consistency of the initial corrected text is subtracted from the semantic consistency of the original text to obtain the semantic consistency change; the business consistency of the initial corrected text is subtracted from the business consistency of the original text to obtain the business consistency change. The semantic consistency change indicates whether the collocation relationship between the candidate word after replacement and its adjacent texts is better than that of the original text, while the business consistency change indicates whether the relationship between the candidate word after replacement and the current business state is better than that of the original text.

[0031] The error correction verification module averages the semantic consistency change and the business consistency change to obtain the consistency improvement. This consistency improvement is then multiplied by the phonetic similarity of the corresponding candidate word in the target error correction path to obtain the error correction evidence gain value. If the error correction evidence gain value is greater than zero, it indicates that the corresponding candidate word not only explains the ASR error phonetically but also improves the text's relationship with the logistics business status and context after replacement; the error correction verification module retains this candidate word. If the error correction evidence gain value is not greater than zero, it indicates that the replacement did not achieve effective improvement, and the error correction verification module restores the text segment to be corrected to its original text. After each text segment to be corrected undergoes adoption judgment, the error correction verification module outputs the target corrected text, which is then transmitted to the logistics customer service system, work order system, scheduling system, or subsequent text analysis system for use.

[0032] Furthermore, a logistics error correction correlation graph is constructed, including: The standard logistics terminology data and logistics entity data are processed for name standardization, and the standard logistics terminology names, logistics entity names and corresponding pinyin codes are extracted to form standard terminology node data and logistics entity node data; Extract ASR error texts and corresponding corrected texts from historical error correction data, match the corrected texts with standard word node data and logistics entity node data to determine the target node corresponding to each ASR error text, and determine the error conversion credibility based on the number of historical error correction records pointing to the target node by each ASR error text to form an error conversion relationship; Extract business attribution data from standard logistics terminology data and logistics entity data, and extract entity association data from logistics entity data. Establish business association relationships between standard terminology nodes and logistics entity nodes based on business attribution data, and establish business association relationships between logistics entity nodes based on entity association data. For ASR error texts that do not overlap with standard word nodes and logistics entity nodes, error text nodes are created. The error text nodes are connected to the target nodes according to the error transformation relationship. Each node is connected according to the business relationship, and the pinyin encoding is configured to the corresponding node to construct a logistics error correction association graph.

[0033] In a specific embodiment, the logistics error correction association graph can be stored using both a node table and a relationship table. The node table stores at least the node identifier, node type, node name, pinyin encoding, and business attribution data. Node types include standard word nodes, logistics entity nodes, and error text nodes. The relationship table stores at least the start node identifier, end node identifier, relationship type, and relationship attributes. Relationship types include error conversion relationships and business association relationships. After name normalization, the standard logistics word names and logistics entity names are written into the node name field as normalized text, and the pinyin encoding is generated according to the syllable order of the Chinese characters and written into the pinyin encoding field.

[0034] If the corrected text in the historical error correction data matches the standard logistics term name in the standard term node data, the corresponding target node is the standard term node; if it matches the logistics entity name in the logistics entity node data, the corresponding target node is the logistics entity node; if the corrected text does not match in either node set, the historical error correction data will not participate in the error transformation relationship establishment, in order to avoid corrected text without a source from entering the logistics error correction association graph.

[0035] Business attribution data is used to express the applicable business scope of standard logistics terms and logistics entities, while entity association data is used to express the hierarchical, route, service area, and personnel affiliation relationships between logistics entities. The business association relationships between standard term nodes and logistics entity nodes are derived from the business attribution data, and the business association relationships between logistics entity nodes are derived from the entity association data. This logistics error correction association graph supports both voice similarity-based recall and candidate range narrowing under the current business state.

[0036] Furthermore, the reliability of the error conversion specifically includes: The historical error correction data is grouped according to the ASR error text, and the number of historical error correction records corresponding to each target node for the same ASR error text is counted, as well as the total number of historical error correction records corresponding to the ASR error text. Calculate the proportion of the number of historical error correction records of each target node in the total number of historical error correction records, and use the corresponding proportion as the credibility of the error conversion of ASR error text to the corresponding target node. The credibility of the error transformation is written into the error transformation relationship between the corresponding error text node and the target node, so that the subsequent candidate generation module can extract error transformation-related candidate words based on the error transformation relationship and the error transformation credibility.

[0037] In one specific embodiment, the calculation of error transformation confidence can be completed within the error correction knowledge construction module. The error correction knowledge construction module groups historical error correction data according to the ASR error text, ensuring that multiple error correction records under the same ASR error text are grouped together. For each group, the error correction knowledge construction module counts the number of historical error correction records pointing to each target node by that ASR error text, and also counts the total number of historical error correction records corresponding to that ASR error text.

[0038] The ratio obtained by dividing the number of historical error correction records for each target node by the total number of historical error correction records is the error transformation credibility of the ASR error text pointing to the corresponding target node. Error transformation credibility represents the relative frequency with which the same ASR error text is corrected to a certain target node in historical error correction data. Its value ranges from zero to one, and it is dimensionless data. Since both the numerator and denominator are the number of historical error correction records, there is no issue of inconsistent dimensions during calculation. The error correction knowledge construction module writes the error transformation credibility into the error transformation relationship between the error text node and the target node. When the subsequent candidate generation module extracts error transformation-related candidate words along the error transformation relationship, it can directly read this error transformation credibility. The candidate graph construction module can also reuse this error transformation credibility when generating comprehensive error correction weights, avoiding the same historical error correction data being repeatedly interpreted as data with different meanings.

[0039] Furthermore, the business context data includes the current business object identifier, the current business process identifier, and the current associated entity identifier. The anomaly location module uses the current business object identifier and the current business process identifier as the basis for its location. From the logistics error correction association graph, select business associations with consistent business affiliation data, locate the current associated entity node based on the current associated entity identifier, extract the associated nodes connected to the current associated entity node along the selected business associations, and form the current business associated node set; For each text fragment matched in the logistics error correction association graph, the shortest business association path from the corresponding node to the current business association node set is determined. The reciprocal of the connection level of the shortest business association path plus one is used as the business consistency degree. The business consistency degree of the node that has not formed a business association path is set to zero. This is used for the calculation of text anomaly risk value and the calculation of comprehensive error correction weight of candidate words.

[0040] In a specific embodiment, given that the aforementioned logistics error correction association graph has been established, the anomaly localization module calculates the current business association node set based on the business context data. The current business object identifier in the business context data is used to define the logistics business object corresponding to the current text, the current business process identifier is used to define the business processing stage, and the current associated entity identifier is used to determine the logistics entity directly associated with the current voice text.

[0041] The anomaly localization module first filters out business relationships with consistent business affiliation data from the logistics error correction association graph based on the current business object identifier and the current business process identifier, and filters out relationships that are unrelated to the current business object and the current business process.

[0042] Subsequently, the anomaly localization module locates the current associated entity node in the logistics error correction association graph based on the current associated entity identifier, and extracts the associated nodes connected to the current associated entity node along the filtered business association relationships to form the current business association node set.

[0043] For each text fragment matched to a node in the logistics error correction association graph, the anomaly localization module determines the shortest business association path from that node to the current business association node set through graph traversal. If the node itself belongs to the current business association node set, the connection level of the shortest business association path is zero, and the business consistency is one. If the node needs to be connected to the current business association node set through a business association relationship, the connection level is one, and the business consistency is half. As the connection level continues to increase, the business consistency decreases by the reciprocal of the connection level plus one. Nodes without a business association path have a business consistency value of zero. The above business consistency is based on the connection level in the graph, without using untraceable subjective scoring. The obtained data is then used to calculate the text anomaly risk value and continues to be used in the comprehensive error correction weight calculation when candidate words enter the candidate graph construction module.

[0044] Furthermore, the text range to be corrected is determined, including: The original text is divided into continuous text segments according to character positions, and each text segment is converted into a pinyin sequence; Calculate the syllable edit distance of the pinyin sequence and the node pinyin code in the logistics error correction association graph, and obtain the speech similarity by subtracting the ratio of the syllable edit distance to the longer syllable length of the two; Extract the error transformation confidence level corresponding to the erroneous text node that matches the text fragment, take the highest error transformation confidence level as the historical error tendency level, and take the historical error tendency level as zero when no erroneous text node is matched, and obtain the business consistency level of the corresponding node of the text fragment; The text anomaly risk value is obtained by subtracting one from the speech similarity, one from the business consistency, and the historical error tendency, respectively, and averaging the three anomalies. Merge adjacent text segments whose text anomaly risk values ​​reach a preset threshold according to the character positions in the original text to form a text range to be corrected.

[0045] In one specific embodiment, the process of forming the text range to be corrected can be performed using a sliding character segment method. The anomaly location module uses the character positions of the original text as a reference and generates continuous text segments starting from each character position. The length of the text segments can be set to two to eight characters based on the common length of logistics terms and logistics entity names.

[0046] After each text segment is generated, the anomaly localization module converts the text segment into a pinyin sequence and calculates the syllable edit distance between this pinyin sequence and the pinyin encoding of a node in the logistics error correction association graph. The syllable edit distance represents the minimum total number of syllable replacements, syllable insertions, and syllable deletions required to transform from one pinyin sequence to another, and its unit is the number of syllables.

[0047] The anomaly localization module calculates the speech approximation by subtracting the ratio of the syllable edit distance to the longer syllable length of both. Since both the syllable edit distance and the longer syllable length are measured in syllables, the division yields a dimensionless ratio, keeping the speech approximation within a comparison scale of zero to one. The historical error tendency is derived from the error conversion confidence level corresponding to the erroneous text nodes matched by the text segment. When a text segment matches multiple erroneous text nodes, the highest error conversion confidence level is taken as the historical error tendency; when no erroneous text nodes are matched, the historical error tendency is zero. Business consistency is determined according to the aforementioned shortest business association path. The anomaly localization module averages the speech approximation, business consistency, and historical error tendency as three anomaly quantities to obtain the text anomaly risk value. In this embodiment, the preset threshold is calibrated based on the risk distribution of anomaly and normal text in the historical error correction samples and can be set to 0.6. Text segments with anomaly risk values ​​reaching 0.6 are entered into a merge set. The anomaly localization module then merges adjacent text segments according to their character positions in the original text, forming a text interval to be corrected. The merged text range to be corrected contains both the text content and retains the starting and ending character positions, making it easier to locate the original text when replacing candidate words.

[0048] Furthermore, a candidate word set is formed, including: Based on the pinyin sequence of the text range to be corrected, standard word nodes and logistics entity nodes with pinyin encoding matching are extracted from the logistics error correction association graph to form speech association candidate words; Based on the erroneous text nodes matched in the text range to be corrected, the corresponding target nodes are extracted along the error transformation relationship to form candidate words related to error transformation; Based on business context data, locate the current associated entity node, extract standard word nodes and logistics entity nodes connected to the current associated entity node along the business relationship, and form business association candidate words; Collect candidate words related to speech, error conversion, and business, and deduplicate them according to node identifiers to obtain a candidate word set.

[0049] In one specific embodiment, the generation of the candidate word set incorporates the location results of the text intervals to be corrected. The candidate generation module reads the pinyin sequence of each text interval to be corrected and searches for standard word nodes and logistics entity nodes with matching pinyin codes in the logistics error correction association graph, writing the corresponding node names into the speech association candidate words. For text intervals to be corrected that have already matched erroneous text nodes during the anomaly localization stage, the candidate generation module reads the target node along the error transformation relationship of that erroneous text node and writes the target node name into the error transformation association candidate words.

[0050] For business-related candidate words, the candidate generation module reuses the current associated entity identifier from the business context data, locates the current associated entity node in the logistics error correction association graph, and then extracts the standard word nodes and logistics entity nodes connected to the current associated entity node along the business association relationship. After the three types of candidate words enter the same candidate cache, the candidate generation module performs deduplication based solely on the node identifier; when the same node comes from speech-related candidate words, error conversion-related candidate words, and business-related candidate words simultaneously, only one candidate record is retained, and the source mark is retained in the candidate record to facilitate subsequent reading of speech similarity, error conversion credibility, and business consistency. The deduplicated candidate word set is associated one-to-one with the text interval to be corrected, ensuring that the candidate graph construction module can accurately know which interval in the original text each candidate word is used to replace.

[0051] Furthermore, a candidate error correction graph is constructed, including: For each candidate word in the candidate word set, the speech similarity between the candidate word and the text interval to be corrected is calculated according to the method of determining speech similarity by the anomaly localization module. Replace the candidate words with the corresponding text intervals to be corrected to form candidate text, and extract the text adjacent to the candidate words in the candidate text. The semantic consistency score is obtained by counting the number of records in the corrected text of historical error correction data where candidate words appear together with the preceding and following texts, and calculating the proportion of the number of such records in the total number of records appearing in the preceding and following texts. When the total number of records is zero, the semantic consistency score is zero. Determine the business consistency based on the shortest business association path between the node corresponding to the candidate word and the current business-related node set; Read the error transformation confidence of the target node corresponding to the candidate word. When the candidate word does not form an error transformation relationship, the corresponding error transformation confidence is set to zero. The speech similarity, semantic consistency, error transformation confidence and business consistency are averaged to obtain the comprehensive error correction weight. Using candidate words as candidate nodes, adjacent candidate nodes are connected according to the order of their positions in the original text to form a candidate error correction graph.

[0052] In one specific embodiment, the construction of the candidate correction graph focuses on transforming candidate words from a discrete list into a searchable graph structure. For each candidate word in the candidate word set, the candidate graph construction module calculates the phonetic similarity between the candidate word and the text interval to be corrected, using the syllable edit distance normalization method from the anomaly localization module, ensuring consistency in the pronunciation comparison between the candidate stage and the anomaly localization stage.

[0053] The candidate graph construction module then replaces the corresponding text intervals to be corrected with candidate words to form candidate text, and extracts the text adjacent to the candidate words before and after them. The adjacent text can be determined according to the word segmentation unit. When the text interval to be corrected is at the beginning of the sentence, only the text adjacent to the end is extracted; when the text interval to be corrected is at the end of the sentence, only the text adjacent to the beginning is extracted.

[0054] The candidate graph construction module counts the number of records in the corrected text of historical error correction data where candidate words co-occur with adjacent text, and also counts the total number of such records in adjacent text. The percentage of co-occurring records in the total number of such records is used as the semantic consistency score. Both the number of co-occurring records and the total number of such records are counts of records, resulting in a dimensionless proportion for the semantic consistency score. If the total number of such records is zero, the semantic consistency score is zero to avoid erroneously amplifying the semantic fit of candidate words when historical evidence is lacking.

[0055] Business consistency is still determined by the shortest business association path between the candidate word's corresponding node and the current business-related node set; error transformation confidence is read from the error transformation relationship of the candidate word's corresponding target node, and the corresponding error transformation confidence is zero when no error transformation relationship is formed between the candidate words. The candidate graph construction module averages the speech similarity, semantic consistency, error transformation confidence, and business consistency to obtain the comprehensive error correction weight. All four data are dimensionless proportions between zero and one, and averaging will not result in mixed dimensions.

[0056] The candidate graph construction module uses candidate words as candidate nodes, grouping candidate nodes belonging to the same text interval to be corrected into the same position layer. It then connects candidate nodes in adjacent position layers according to the order of the text intervals to be corrected in the original text, thus forming a candidate correction graph. When there is only one text interval to be corrected in the original text, the candidate correction graph is composed of candidate nodes in that position layer, and the constraint correction module directly selects the candidate node corresponding to the target correction path in that position layer.

[0057] Furthermore, the initial error correction text is generated, including: For each candidate node in the candidate error correction graph, the number of character replacements, character insertions, and character deletions generated by replacing the text interval to be corrected with candidate words are counted. The number of characters of the three types is added together to obtain the number of characters edited. The text modification cost is determined by the ratio of the number of characters edited to the length of the longer character in the text interval to be corrected and the length of the longer character in the candidate words. From the candidate error correction graph, generate candidate error correction paths that pass through each text interval to be corrected in sequence. Calculate the average value of the comprehensive error correction weight and the average value of the text modification cost in each candidate error correction path. Subtract the latter from the former to obtain the path error correction benefit. The candidate error correction path with the greatest path correction benefit is selected as the target error correction path. The corresponding text interval to be corrected is replaced with the candidate words in the target error correction path to generate the initial error correction text.

[0058] In one specific embodiment, the initial error-corrected text is generated by the constraint error correction module. The constraint error correction module first calculates the text modification cost for each candidate node in the candidate error correction graph. The number of character replacements represents the number of characters in the text interval to be corrected that are replaced by characters at the corresponding positions of the candidate words; the number of character insertions represents the number of characters added to the text interval to be corrected relative to the candidate words; and the number of character deletions represents the number of characters removed from the text interval to be corrected relative to the candidate words. The sum of these three types of character counts yields the number of character edits. This number of character edits is then divided by the longer character length between the text interval to be corrected and the candidate words to obtain the text modification cost. Since both the number of character edits and the longer character length are character counts, the text modification cost is a dimensionless proportion.

[0059] The constraint correction module then generates candidate correction paths from the candidate correction graph, sequentially traversing each text interval to be corrected. Each candidate correction path selects one candidate node within each text interval. The constraint correction module calculates the average comprehensive correction weight of each candidate correction path, and simultaneously calculates the average text modification cost of that path. Subtracting the average text modification cost from the average comprehensive correction weight yields the path correction benefit. Since both the average comprehensive correction weight and the average text modification cost are dimensionless proportions, the path correction benefit is also a dimensionless comparison value. The constraint correction module selects the candidate correction path with the highest path correction benefit as the target correction path, writes the candidate words from the target correction path into the replacement positions of the corresponding text intervals to be corrected, and keeps the characters in the original text that did not enter the text intervals to be corrected unchanged, thus generating the initial corrected text. This processing ensures that the correction process considers both the credibility of the candidate words and the extent of changes to the original text, avoiding over-replacement based solely on the highest-scoring candidate word.

[0060] Furthermore, the output target correction text includes: Based on the method of determining semantic consistency and business consistency in the candidate graph construction module, the semantic consistency and business consistency of the corresponding positions of each text interval to be corrected in the original text and the initial correction text are calculated respectively. The change in semantic consistency is obtained by subtracting the semantic consistency of the original text from the semantic consistency of the initial corrected text. The change in business consistency is obtained by subtracting the business consistency of the original text from the business consistency of the initial error correction text. The consistency improvement is obtained by averaging the semantic consistency change and the business consistency change. The consistency improvement is then multiplied by the speech similarity of the corresponding candidate word in the target error correction path to obtain the error correction evidence gain value. Candidate words are retained for the text intervals to be corrected where the error correction evidence gain value is greater than zero, and the original text is restored for the text intervals to be corrected where the error correction evidence gain value is not greater than zero, thus forming the target error-corrected text.

[0061] In one specific embodiment, the output of the target error-corrected text is not simply the initial error-corrected text, but rather the error correction verification module evaluates each interval of the text to be corrected one by one. The error correction verification module retains the original content of each interval in the original text, reads the candidate words after the target error-correction path replacement in the initial error-corrected text, and then calculates the semantic consistency of the corresponding positions in both the original and initial error-corrected texts, following the method used by the candidate graph construction module to determine semantic consistency. Similarly, following the method used by the candidate graph construction module to determine business consistency, the module calculates the business consistency of the corresponding positions in both the original and initial error-corrected texts.

[0062] The semantic consistency change is obtained by subtracting the semantic consistency of the original text from the semantic consistency of the initial corrected text; the business consistency change is obtained by subtracting the business consistency of the original text from the business consistency of the initial corrected text. Both changes can be positive, zero, or negative. A positive value indicates an increase in consistency after replacement, while a negative value indicates a decrease. The error correction verification module averages the semantic consistency change and the business consistency change to obtain the consistency improvement. This improvement is then multiplied by the phonetic similarity of the corresponding candidate words in the target error correction path to obtain the error correction evidence gain value. Phonetic similarity, used as a multiplier, does not change the direction of the consistency improvement; it is only used to restrict the adoption of candidate words with dissimilar pronunciations. For text intervals with an error correction evidence gain value greater than zero, the error correction verification module retains the candidate words; for text intervals with an error correction evidence gain value not greater than zero, the module restores the original text.

[0063] The error correction and verification module reconstructs the text according to the character order of the original text to form the target error-corrected text, and outputs the target error-corrected text to the calling terminal. The calling terminal can display the target error-corrected text to customer service personnel, or use it as data input for subsequent processing such as work order summaries, waybill remarks, and dispatch instruction recognition.

[0064] Furthermore, it also includes a knowledge update module: Obtain the target text to be corrected and the adoption results for each text range to be corrected; Based on the adoption results, determine the text range to be corrected for the candidate words, take the corresponding original text as the new ASR error text, extract the text at the corresponding position from the target error text as the new correction text, and write the new ASR error text and the new correction text into the historical error correction data. Based on the updated historical error correction data, the number of historical error correction records and the total number of historical error correction records that the newly added ASR error text points to the corresponding target node are statistically analyzed. The proportion of the former in the latter is used as the updated error transformation credibility. The updated error transformation credibility is written into the corresponding error transformation relationship in the logistics error correction association graph for subsequent anomaly location and candidate generation of the original text.

[0065] After the aforementioned processing steps are completed, the knowledge update module can update the historical error correction data using the adoption results of the target correction text and each text interval to be corrected. The knowledge update module only reads the text interval to be corrected whose adoption result is a retained candidate word, uses the content of the text interval to be corrected in the original text as the new ASR error text, and extracts the text at the corresponding position from the target correction text as the new correction text.

[0066] When new ASR error texts and new corrected texts are written to historical error correction data, the current business object identifier, the current business process identifier, and the current associated entity identifier can also be written simultaneously, ensuring that subsequent error conversion credibility calculations retain the business source. For text ranges to be corrected where the adoption result is to restore the original text, the knowledge update module does not generate new ASR error texts and new corrected texts, preventing candidate relationships that have been rolled back from entering historical error correction data.

[0067] After the historical error correction data is updated, the knowledge update module, following the method used by the error correction knowledge construction module to determine the error transformation credibility, recalculates the number of historical error correction records and the total number of historical error correction records pointing to the corresponding target node for the newly added ASR error text. The proportion of the number of historical error correction records to the total number of historical error correction records is used as the updated error transformation credibility, and this updated credibility is written into the corresponding error transformation relationship in the logistics error correction association graph. If the logistics error correction association graph does not yet contain an error text node corresponding to the newly added ASR error text, the knowledge update module first creates the error text node and then connects it to the target node according to the updated error transformation credibility. The updated logistics error correction association graph will continue to be used by the anomaly localization module and the candidate generation module in subsequent raw text processing, thus enabling verified error correction results to be transformed into new graph relationships, while unadopted candidate relationships will not affect subsequent error correction judgments.

[0068] The above content is merely an example and illustration of the concept of the present invention. Those skilled in the art can make various modifications or additions to the specific embodiments described or use similar methods to replace them, as long as they do not deviate from the concept of the invention, they should all fall within the protection scope of the present invention.

[0069] In the description of this specification, references to terms such as "an embodiment," "example," "specific example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0070] The preferred embodiments of the present invention disclosed above are merely illustrative of the invention. These preferred embodiments do not exhaustively describe all details, nor do they limit the invention to any specific implementation. Clearly, many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention.

Claims

1. A text correction system after speech recognition in a logistics scenario, characterized in that, include: The error correction knowledge construction module acquires standard logistics terminology data, logistics entity data, and historical error correction data from the lexicon management terminal, extracts error conversion relationships and business association relationships, and constructs a logistics error correction association graph. The anomaly localization module obtains the original text output by the ASR module and the business context data of the logistics business system. It divides the original text into text segments and calculates the speech similarity, historical error tendency and business consistency of each text segment based on the logistics error correction association map and business context data to obtain the text anomaly risk value and determine the text range to be corrected. The candidate generation module extracts speech-related candidate words, error conversion-related candidate words, and business-related candidate words from the logistics error correction association graph based on the text range to be corrected and business context data, forming a candidate word set. The candidate graph construction module generates a comprehensive error correction weight based on the phonetic similarity, semantic consistency, error conversion credibility, and business consistency between candidate words and the text interval to be corrected, and constructs a candidate error correction graph according to the position of the text interval to be corrected. The constraint correction module determines the target correction path based on the comprehensive correction weight of candidate words in the candidate correction graph and the modification cost relative to the original text, and generates the initial correction text. The error correction verification module calculates the semantic consistency change and business consistency change of the initial error correction text relative to the original text, generates an error correction evidence gain value based on the phonetic similarity of candidate words, determines the adoption result of the text interval to be corrected based on the error correction evidence gain value, and outputs the target error correction text.

2. The text correction system after speech recognition in a logistics scenario according to claim 1, characterized in that, Constructing a logistics error correction correlation graph, including: The standard logistics terminology data and logistics entity data are processed for name standardization, and the standard logistics terminology names, logistics entity names and corresponding pinyin codes are extracted to form standard terminology node data and logistics entity node data; Extract ASR error texts and corresponding corrected texts from historical error correction data, match the corrected texts with standard word node data and logistics entity node data to determine the target node corresponding to each ASR error text, and determine the error conversion credibility based on the number of historical error correction records pointing to the target node by each ASR error text to form an error conversion relationship; Extract business attribution data from standard logistics terminology data and logistics entity data, and extract entity association data from logistics entity data. Establish business association relationships between standard terminology nodes and logistics entity nodes based on business attribution data, and establish business association relationships between logistics entity nodes based on entity association data. For ASR error texts that do not overlap with standard word nodes and logistics entity nodes, error text nodes are created. The error text nodes are connected to the target nodes according to the error transformation relationship. Each node is connected according to the business relationship, and the pinyin encoding is configured to the corresponding node to construct a logistics error correction association graph.

3. A text correction system for speech recognition in a logistics scenario according to claim 2, characterized in that, The reliability of the error conversion specifically includes: The historical error correction data is grouped according to the ASR error text, and the number of historical error correction records corresponding to each target node for the same ASR error text is counted, as well as the total number of historical error correction records corresponding to the ASR error text. Calculate the proportion of the number of historical error correction records of each target node in the total number of historical error correction records, and use the corresponding proportion as the credibility of the error conversion of ASR error text to the corresponding target node. The credibility of the error transformation is written into the error transformation relationship between the corresponding error text node and the target node, so that the subsequent candidate generation module can extract error transformation-related candidate words based on the error transformation relationship and the error transformation credibility.

4. A text correction system for speech recognition in a logistics scenario according to claim 2, characterized in that, The business context data includes the current business object identifier, the current business process identifier, and the current associated entity identifier. The anomaly location module uses the current business object identifier and the current business process identifier. From the logistics error correction association graph, select business associations with consistent business affiliation data, locate the current associated entity node based on the current associated entity identifier, extract the associated nodes connected to the current associated entity node along the selected business associations, and form the current business associated node set; For each text fragment matched in the logistics error correction association graph, the shortest business association path from the corresponding node to the current business association node set is determined. The reciprocal of the connection level of the shortest business association path plus one is used as the business consistency degree. The business consistency degree of the node that has not formed a business association path is set to zero. This is used for the calculation of text anomaly risk value and the calculation of comprehensive error correction weight of candidate words.

5. A text correction system for speech recognition in a logistics scenario according to claim 4, characterized in that, The text range to be corrected includes: The original text is divided into continuous text segments according to character positions, and each text segment is converted into a pinyin sequence; Calculate the syllable edit distance of the pinyin sequence and the node pinyin code in the logistics error correction association graph, and obtain the speech similarity by subtracting the ratio of the syllable edit distance to the longer syllable length of the two; Extract the error transformation confidence level corresponding to the erroneous text node that matches the text fragment, take the highest error transformation confidence level as the historical error tendency level, and take the historical error tendency level as zero when no erroneous text node is matched, and obtain the business consistency level of the corresponding node of the text fragment; The text anomaly risk value is obtained by subtracting one from the speech similarity, one from the business consistency, and the historical error tendency, respectively, and averaging the three anomalies. Merge adjacent text segments whose text anomaly risk values ​​reach a preset threshold according to the character positions in the original text to form a text range to be corrected.

6. A text correction system for speech recognition in a logistics scenario according to claim 5, characterized in that, Form a candidate word set, including: Based on the pinyin sequence of the text range to be corrected, standard word nodes and logistics entity nodes with pinyin encoding matching are extracted from the logistics error correction association graph to form speech association candidate words; Based on the erroneous text nodes matched in the text range to be corrected, the corresponding target nodes are extracted along the error transformation relationship to form candidate words related to error transformation; Based on business context data, locate the current associated entity node, extract standard word nodes and logistics entity nodes connected to the current associated entity node along the business relationship, and form business association candidate words; Collect candidate words related to speech, error conversion, and business, and deduplicate them according to node identifiers to obtain a candidate word set.

7. A text correction system for speech recognition in a logistics scenario according to claim 6, characterized in that, Constructing a candidate error correction graph includes: For each candidate word in the candidate word set, the speech similarity between the candidate word and the text interval to be corrected is calculated according to the method of determining speech similarity by the anomaly localization module. Replace the candidate words with the corresponding text intervals to be corrected to form candidate text, and extract the text adjacent to the candidate words in the candidate text. The semantic consistency score is obtained by counting the number of records in the corrected text of historical error correction data where candidate words appear together with the preceding and following texts, and calculating the proportion of the number of such records in the total number of records appearing in the preceding and following texts. When the total number of records is zero, the semantic consistency score is zero. Determine the business consistency based on the shortest business association path between the node corresponding to the candidate word and the current business-related node set; Read the error transformation confidence of the target node corresponding to the candidate word. When the candidate word does not form an error transformation relationship, the corresponding error transformation confidence is set to zero. The speech similarity, semantic consistency, error transformation confidence and business consistency are averaged to obtain the comprehensive error correction weight. Using candidate words as candidate nodes, adjacent candidate nodes are connected according to the order of their positions in the original text to form a candidate error correction graph.

8. A text correction system for speech recognition in a logistics scenario according to claim 7, characterized in that, Generate initial error correction text, including: For each candidate node in the candidate error correction graph, the number of character replacements, character insertions, and character deletions generated by replacing the text interval to be corrected with candidate words are counted. The number of characters of the three types is added together to obtain the number of characters edited. The text modification cost is determined by the ratio of the number of characters edited to the length of the longer character in the text interval to be corrected and the length of the longer character in the candidate words. From the candidate error correction graph, generate candidate error correction paths that pass through each text interval to be corrected in sequence. Calculate the average value of the comprehensive error correction weight and the average value of the text modification cost in each candidate error correction path. Subtract the latter from the former to obtain the path error correction benefit. The candidate error correction path with the greatest path correction benefit is selected as the target error correction path. The corresponding text interval to be corrected is replaced with the candidate words in the target error correction path to generate the initial error correction text.

9. A text correction system for speech recognition in a logistics scenario according to claim 8, characterized in that, Output the target correction text, including: Based on the method of determining semantic consistency and business consistency in the candidate graph construction module, the semantic consistency and business consistency of the corresponding positions of each text interval to be corrected in the original text and the initial correction text are calculated respectively. The change in semantic consistency is obtained by subtracting the semantic consistency of the original text from the semantic consistency of the initial corrected text. The change in business consistency is obtained by subtracting the business consistency of the original text from the business consistency of the initial error correction text. The consistency improvement is obtained by averaging the semantic consistency change and the business consistency change. The consistency improvement is then multiplied by the speech similarity of the corresponding candidate word in the target error correction path to obtain the error correction evidence gain value. Candidate words are retained for the text intervals to be corrected where the error correction evidence gain value is greater than zero, and the original text is restored for the text intervals to be corrected where the error correction evidence gain value is not greater than zero, thus forming the target error-corrected text.

10. A text correction system for speech recognition in a logistics scenario according to claim 1, characterized in that, It also includes a knowledge update module: Obtain the target text to be corrected and the adoption results for each text range to be corrected; Based on the adoption results, determine the text range to be corrected for the candidate words, take the corresponding original text as the new ASR error text, extract the text at the corresponding position from the target error text as the new correction text, and write the new ASR error text and the new correction text into the historical error correction data. Based on the updated historical error correction data, the number of historical error correction records and the total number of historical error correction records that the newly added ASR error text points to the corresponding target node are statistically analyzed. The proportion of the former in the latter is used as the updated error transformation credibility. The updated error transformation credibility is written into the corresponding error transformation relationship in the logistics error correction association graph for subsequent anomaly location and candidate generation of the original text.