Character retrieval method and system
By converting Chinese character information into pinyin standard identification and matching it in the search database, the problems of low efficiency and low accuracy of traditional Chinese character search methods are solved, and fast and accurate Chinese character information retrieval is realized, adapting to different cultural backgrounds, and improving the system Universality and applicability.
Patent Information
- Application Number
- CN202411286434.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-10
AI Technical Summary
Traditional Chinese character search methods have problems such as low efficiency, low accuracy and poor flexibility in the test site management system, especially when facing a huge and changing driver database, which causes staff to spend a lot of time looking for specific driving. information increases the possibility of errors.
By converting the Chinese character information to be entered into a pinyin standard identifier and matching it in the search database, the search method of the full pinyin spelling and the first letter combination of pinyin is supported, which improves the search efficiency, accuracy and flexibility.
It realizes fast and accurate Chinese character information retrieval, improves work efficiency, reduces the possibility of errors, and adapts to staff with different cultural backgrounds, improving the universality and applicability of the system.
Smart Images

Figure CN119293092A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data retrieval, and more specifically, to a character retrieval method and system. Background Art
[0002] In the actual application scenarios of the test field management system, the management of vehicles and drivers is the key link to ensure the smooth operation of the test field. With the expansion of the scale of the test field and the increase in vehicle traffic, the traditional vehicle and driver information registration method can no longer meet the needs of efficient management. Especially when faced with a large and ever-changing driver database, staff often need to spend a lot of time looking for specific driver information, which not only reduces work efficiency but also increases the possibility of errors.
[0003] In this case, the traditional Chinese character search method has obvious limitations. For example, when the staff only know part of the driver's name or surname, it is difficult for them to quickly and accurately find the corresponding driver record in the system. In addition, due to the complexity of Chinese characters and the existence of homophones, even if the full name is entered, the search results may be inaccurate or incomplete. Summary of the invention
[0004] In response to at least one defect or improvement need in the prior art, the present application provides a character retrieval method and system for solving the technical problem of how to improve the retrieval efficiency, retrieval accuracy, retrieval flexibility and fault tolerance of Chinese characters.
[0005] To achieve the above objectives, in a first aspect, the present application provides a character retrieval method, comprising:
[0006] Receive the Chinese character information to be entered and convert it into the corresponding pinyin standard identifier;
[0007] Storing the pinyin standard identifier, the Chinese character information to be entered, and the mapping relationship between them in a search database;
[0008] A search instruction in the form of a standard pinyin identifier is received, data matching is performed in the search database, and a Chinese character information matching item corresponding to the search instruction in the form of a standard pinyin identifier is obtained.
[0009] Furthermore, it also includes:
[0010] receiving a search instruction in the form of Chinese character information and converting it into a corresponding pinyin standard identifier;
[0011] Based on the pinyin standard identifier corresponding to the search instruction in the form of Chinese character information, data matching is performed in the search database to obtain the Chinese character information matching item corresponding to the search instruction in the form of Chinese character information.
[0012] Furthermore, the pinyin standard identifier includes the full pinyin.
[0013] Furthermore, the pinyin standard identifier includes a pinyin initial letter combination.
[0014] Furthermore, it also includes:
[0015] Receiving non-Chinese character information to be entered, and storing the original text of the non-Chinese character information into the retrieval database;
[0016] A search instruction in the form of non-Chinese character information is received, data matching is performed in the search database, and non-Chinese character information matching items corresponding to the search instruction in the form of non-Chinese character information are obtained.
[0017] In a second aspect, the present application provides a character retrieval system, comprising:
[0018] The input conversion module is used to receive the Chinese character information to be input and convert it into the corresponding pinyin standard identifier;
[0019] A first storage module is used to store the pinyin standard identifier, the Chinese character information to be entered, and the mapping relationship between them into a retrieval database;
[0020] The first search module is used to receive a search instruction in the form of a standard pinyin identifier, perform data matching in the search database, and obtain Chinese character information matching items corresponding to the search instruction in the form of a standard pinyin identifier.
[0021] Furthermore, it also includes:
[0022] A search instruction conversion module is used to receive a search instruction in the form of Chinese character information and convert it into a corresponding pinyin standard identifier;
[0023] The second search module is used to perform data matching in the search database based on the pinyin standard identifier corresponding to the search instruction in the form of Chinese character information, and obtain the Chinese character information matching item corresponding to the search instruction in the form of Chinese character information.
[0024] Furthermore, the pinyin standard identifier includes the full pinyin.
[0025] Furthermore, the pinyin standard identifier includes a pinyin initial letter combination.
[0026] Furthermore, it also includes:
[0027] A second storage module is used to receive the non-Chinese character information to be entered, and store the original text of the non-Chinese character information into the retrieval database;
[0028] The third retrieval module is used to receive a retrieval instruction in the form of non-Chinese character information, perform data matching in the retrieval database, and obtain non-Chinese character information matching items corresponding to the retrieval instruction in the form of non-Chinese character information.
[0029] In general, the above technical solutions conceived by the present application can achieve the following beneficial effects compared with the prior art:
[0030] (1) This application converts the Chinese character information to be entered into the corresponding pinyin standard identifier in advance. When performing the corresponding Chinese character search, only the search instruction in the form of the standardized pinyin standard identifier needs to be input to immediately match the Chinese character to be searched, thereby improving the search efficiency of the characters. Moreover, even if the specific Chinese character information of the Chinese character is not clear during the search, the corresponding pinyin standard identifier that is easier to remember can be used to perform fuzzy matching search of the Chinese character, thereby improving the flexibility and fault tolerance of the search.
[0031] (2) The present application uses the pinyin standard identifier corresponding to the search instruction in the form of Chinese character information to quickly match the homophonic Chinese character information in the search database, thereby being able to more quickly retrieve information related to the Chinese character to be searched.
[0032] (3) This application can realize fast and more accurate retrieval of Chinese character information by using the full spelling of pinyin, and can realize faster fuzzy retrieval of Chinese character information by using the combination of the first letters of pinyin. By supporting multiple retrieval methods of Chinese characters, full spelling of pinyin, and combination of the first letters of pinyin, it can adapt to workers with different cultural backgrounds, thereby improving the versatility and applicability of the retrieval system. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A core flow chart of a Chinese character retrieval method provided in an embodiment of the present application;
[0035] Figure 2 A schematic diagram of the functional modules of a Chinese character retrieval system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. In addition, the technical features involved in each embodiment of the present application described below can be combined with each other as long as they do not conflict with each other.
[0037] The terms "first", "second" or "nth" in the specification, claims or drawings of the present application are used to distinguish different objects rather than to describe a specific order. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0038] As described in the background technology section of the specification, with the expansion of the scale of the test site and the increase in vehicle traffic, the traditional vehicle and driver information registration method can no longer meet the needs of efficient management. Especially when faced with a large and ever-changing driver database, staff often need to spend a lot of time looking for specific driver information, which not only reduces work efficiency but also increases the possibility of errors. Traditional Chinese character retrieval methods have obvious limitations. In view of this, the present application provides a character retrieval method and system to solve the technical problem of how to improve the retrieval efficiency, retrieval accuracy, retrieval flexibility and fault tolerance of Chinese characters.
[0039] refer to Figure 1 and Figure 2 An embodiment of the present application provides a method for retrieving Chinese characters, which may mainly include the following steps.
[0040] Step 1: Receive the Chinese character information to be entered and convert it into the corresponding pinyin standard identifier.
[0041] In some embodiments, before entering the driver information, the test field management system is first initialized. More specifically, the deployment of the test field management system adopts an advanced technology stack to ensure the stability and scalability of the system. The Spring Boot framework simplifies Spring-based application development, implements efficient database operations through MyBatis-Plus, and the Pinyin4J library provides powerful technical support for converting Chinese characters to pinyin. During the system initialization process, in addition to loading the core modules, security checks, performance tests, and initial data loading are also performed to ensure that the system can reach the best state before going online.
[0042] After the driver completes the driving license test and obtains the corresponding qualifications, the test site management system will start the information entry process. The staff enters the driver's basic information through a well-designed form interface, including but not limited to name, driving license number, contact information and emergency contact information. This information will be stored in the retrieval database in real time, providing basic data for subsequent retrieval and management.
[0043] After receiving the driver's Chinese name, the test site management system will automatically call the Pinyin4J library to convert the Chinese name into a standard pinyin identifier, such as a standard full pinyin. Preferably, the system will also generate a pinyin initial combination of the name for quick retrieval.
[0044] The test site management system can automatically process the pinyin conversion of names in the background, thus reducing the complexity of manual operations. In addition, the test site management system also provides data verification function to ensure the accuracy and completeness of the input information.
[0045] Step 2: store the pinyin standard identifier, the Chinese character information to be entered, and the mapping relationship between them into the retrieval database.
[0046] These pinyin standard identification information obtained through conversion in step 1 will be stored in the corresponding fields of the retrieval database together with the original Chinese names and the mapping relationship between them. For names in non-Chinese characters, such as English names, the test site management system will directly store the original text in the retrieval database to preserve its original appearance. In this way, when a retrieval instruction in the form of non-Chinese character information is input, data matching can be performed in the retrieval database to obtain non-Chinese character information matching items corresponding to the retrieval instruction in the form of non-Chinese character information, and complete the query of information related to the non-Chinese character names. In addition, the test site management system will also batch process the historical data already in the retrieval database, and add the full pinyin and / or pinyin initials combination to the historical driver names, so as to ensure the integrity of the information and the consistency of the retrieval.
[0047] When designing the retrieval database, the system designer carefully planned the table structure to support efficient data storage and retrieval. In addition to the basic driver information fields, possible future expansions were also considered, such as adding the driver's driving record and violation record. The batch conversion scripts for historical data have been rigorously tested to ensure the accuracy and completeness of data migration.
[0048] Step 3: Receive a search instruction in the form of a standard pinyin identifier, perform data matching in a search database, and obtain Chinese character information matching items corresponding to the search instruction in the form of a standard pinyin identifier.
[0049] When it is necessary to retrieve driver information, staff can search by the Chinese characters, full pinyin or pinyin initials of the driver's name. The system provides an intelligent retrieval interface that supports multiple input methods, including keyboard input and handwriting input. For example, after entering the name in Chinese characters, the system will intelligently identify the user's input intention, automatically convert the input Chinese characters into full pinyin or pinyin initials, and quickly perform fuzzy matching in the retrieval database through the full pinyin or pinyin initials to retrieve all possible matches. The present application is based on the pinyin standard identifier corresponding to the retrieval instruction in the form of Chinese character information, which can quickly match the homophonic Chinese character information in the retrieval database, so that information related to the Chinese characters to be retrieved can be retrieved more quickly.
[0050] The test site management system can also support the search method of Pinyin initial combination, even if the user only remembers the first letter of the driver's name, he can quickly find relevant information. The test site management system can also support the search method of Pinyin full spelling. If you don't know or remember the specific Chinese characters of the name, but only remember the pronunciation of the name, you can also search by entering the full Pinyin.
[0051] This application can realize fast and more accurate retrieval of Chinese character information by using the full spelling of pinyin, and can realize faster fuzzy retrieval of Chinese character information by using the combination of the first letters of pinyin. By supporting multiple retrieval methods of Chinese characters, full spelling of pinyin and the combination of the first letters of pinyin, it can adapt to workers with different cultural backgrounds, thereby improving the versatility and applicability of the retrieval system.
[0052] The front-end and back-end interactions of the test field management system use asynchronous requests, which improves the user experience. The fuzzy query algorithm of the back-end has been optimized to quickly locate matching items in a large amount of data.
[0053] The display of query results uses dynamic loading and paging technology to make the display of results smoother. Staff can select or view detailed information of drivers by simply clicking and operating. The system also provides a feedback mechanism, so staff can evaluate the search results, and these feedbacks are used to further train and optimize the search algorithm.
[0054] System optimization and iteration is an ongoing process. System administrators regularly check system logs, collect performance data, and tune the system. The development team continuously improves system functionality based on user feedback and system performance reports, such as optimizing database queries, enhancing the interactivity of the user interface, and improving data security.
[0055] This application converts the Chinese character information to be entered into the corresponding pinyin standard identifier in advance, and when performing the corresponding Chinese character search, only the search instruction in the form of the standardized pinyin standard identifier needs to be input to immediately match the Chinese character to be searched, thereby improving the search efficiency of the characters. Moreover, even if the specific Chinese character information of the Chinese character is not clear during the search, the fuzzy matching search of the Chinese character can be performed through the corresponding pinyin standard identifier that is easier to remember, thereby improving the flexibility and fault tolerance of the search.
[0056] refer to Figure 2 Another embodiment of the present application provides a character retrieval system, which can mainly include three functional modules: an input conversion module, a first storage module and a first retrieval module.
[0057] The input conversion module is used to receive the Chinese character information to be input and convert it into the corresponding pinyin standard identifier. The pinyin standard identifier includes the full pinyin and / or the pinyin initials combination.
[0058] The first storage module is used to store the pinyin standard identifier, the Chinese character information to be entered and the mapping relationship between them into a retrieval database.
[0059] The first search module is used to receive a search instruction in the form of a standard pinyin identifier, perform data matching in the search database, and obtain Chinese character information matching items corresponding to the search instruction in the form of a standard pinyin identifier.
[0060] Preferably, the character search system may further include a search instruction conversion module and a second search module.
[0061] The search instruction conversion module is used to receive the search instruction in the form of Chinese character information and convert it into the corresponding pinyin standard identifier.
[0062] The second search module is used to perform data matching in the search database based on the pinyin standard identifier corresponding to the search instruction in the form of Chinese character information, and obtain the Chinese character information matching item corresponding to the search instruction in the form of Chinese character information.
[0063] Preferably, the character retrieval system may further include a second storage module and a third retrieval module.
[0064] The second storage module is used to receive the non-Chinese character information to be entered, and store the original text of the non-Chinese character information into the retrieval database.
[0065] The third retrieval module is used to receive a retrieval instruction in the form of non-Chinese character information, perform data matching in the retrieval database, and obtain non-Chinese character information matching items corresponding to the retrieval instruction in the form of non-Chinese character information.
[0066] The specific technical details and technical effects of the character retrieval system can be referred to the aforementioned embodiment of the character retrieval method, which will not be repeated here.
[0067] It should be noted that the functional modules in the various embodiments of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product.
[0068] The flowchart and / or block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method or computer program product according to various embodiments of the present application. In this regard, each box in the flowchart and / or block diagram can represent a part of a module, program segment or code, and a part of the above-mentioned module, program segment or code includes one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from that marked in the accompanying drawings. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0069] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the technical features described in the various embodiments and / or claims of the present application may be combined and / or combined in a variety of ways, and all of these combinations and / or combinations fall within the scope of the present application.
[0070] Although the present application has been shown and described with reference to specific exemplary embodiments of the present application, it should be understood by those skilled in the art that various changes in form and details may be made to the present application without departing from the spirit and scope of the present application as defined by the appended claims and their equivalents. Therefore, the scope of the present application should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.
Claims
1. A character search method, characterized in that: include: Receive the Chinese character information to be entered and convert it into the corresponding pinyin standard identifier; Storing the pinyin standard identifier, the Chinese character information to be entered, and the mapping relationship between them in a search database; A search instruction in the form of a standard pinyin identifier is received, data matching is performed in the search database, and a Chinese character information matching item corresponding to the search instruction in the form of a standard pinyin identifier is obtained.
2. The character search method according to claim 1, wherein: Also includes: receiving a search instruction in the form of Chinese character information and converting it into a corresponding pinyin standard identifier; Based on the pinyin standard identifier corresponding to the search instruction in the form of Chinese character information, data matching is performed in the search database to obtain the Chinese character information matching item corresponding to the search instruction in the form of Chinese character information.
3. The character search method according to claim 1 or 2, wherein: The pinyin standard identifier includes the full pinyin.
4. The character search method according to claim 1 or 2, wherein: The pinyin standard identifier includes a pinyin initial letter combination.
5. The character search method according to claim 1 or 2, wherein: Also includes: Receiving non-Chinese character information to be entered, and storing the original text of the non-Chinese character information into the retrieval database; A search instruction in the form of non-Chinese character information is received, data matching is performed in the search database, and non-Chinese character information matching items corresponding to the search instruction in the form of non-Chinese character information are obtained.
6. A character retrieval system, characterized in that: include: The input conversion module is used to receive the Chinese character information to be input and convert it into the corresponding pinyin standard identifier; A first storage module is used to store the pinyin standard identifier, the Chinese character information to be entered, and the mapping relationship between them into a retrieval database; The first search module is used to receive a search instruction in the form of a standard pinyin identifier, perform data matching in the search database, and obtain Chinese character information matching items corresponding to the search instruction in the form of a standard pinyin identifier.
7. The character search system according to claim 6, wherein: Also includes: A search instruction conversion module is used to receive a search instruction in the form of Chinese character information and convert it into a corresponding pinyin standard identifier; The second search module is used to perform data matching in the search database based on the pinyin standard identifier corresponding to the search instruction in the form of Chinese character information, and obtain the Chinese character information matching item corresponding to the search instruction in the form of Chinese character information.
8. The character search system according to claim 6 or 7, wherein: The pinyin standard identifier includes the full pinyin.
9. The character search system according to claim 6 or 7, wherein: The pinyin standard identifier includes a pinyin initial letter combination.
10. The character search system according to claim 6 or 7, characterized in that: Also includes: A second storage module is used to receive the non-Chinese character information to be entered, and store the original text of the non-Chinese character information into the retrieval database; The third retrieval module is used to receive a retrieval instruction in the form of non-Chinese character information, perform data matching in the retrieval database, and obtain non-Chinese character information matching items corresponding to the retrieval instruction in the form of non-Chinese character information.