Mechanism query method and device, storage medium and electronic equipment
By using abbreviation, word segmentation and word segmentation combinations to match in institutional query, the problem that users find it difficult to query institutional information quickly and accurately is solved, and a more efficient and accurate query process is achieved, enhancing the user experience.
Patent Information
- Application Number
- CN202411973032.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-27
AI Technical Summary
The prior art requires users to enter accurate names when inquiring institutions, which makes it difficult for users to quickly and accurately query institutional information without knowing the full name of the organization, and the user experience is poor.
By obtaining the search statements and organization attributes entered by the user, using the abbreviation, word segmentation and word segmentation combinations in the preset organization index table to match, and filter out the target organization name and push it to the user.
It realizes that even if the user does not know the full name of the organization, he can quickly and accurately query organization information, enhance the user experience, and improve the query accuracy and efficiency.
Smart Images

Figure CN120045776A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information technology, and in particular to an organization query method, device, storage medium and electronic device. Background Art
[0002] In our daily information acquisition and business processing, we often need to find relevant information about specific institutions. For example, in the fields of finance and healthcare, users can enter the name of a bank or hospital to query its specific information.
[0003] Currently, when searching for an organization, users are typically required to enter the precise name of the organization. However, a large organization may have hundreds of branches, each with a unique name. It's impossible for users to clearly know the full name of each organization. Therefore, this existing method cannot enable users to quickly and accurately query organization information, resulting in a poor user experience. Summary of the Invention
[0004] In view of this, the present application provides an organization query method, device, storage medium and electronic device, the main purpose of which is to ensure that users can quickly and accurately query organization information and enhance user experience.
[0005] According to a first aspect of the present application, a method for querying an organization is provided, the method comprising:
[0006] Obtaining a search statement and institution attributes input by a user, wherein the institution attributes include institution nature, institution level, and regulatory agency;
[0007] Querying the names of various institutions that meet the institution attributes from a preset institution index table, wherein the preset institution index table records the abbreviations, individual participles, and participle combinations corresponding to different institution names;
[0008] Performing word segmentation processing on the search statement to obtain each word segmentation and word segmentation combination corresponding to the search statement;
[0009] Matching each participle and participle combination corresponding to the search statement with the abbreviation, each participle and participle combination corresponding to each institution name in the institution names to obtain a matching result;
[0010] According to the matching result, the target organization name is selected from the various organization names and pushed to the user.
[0011] According to a second aspect of the present application, there is provided an organization query device, the device comprising:
[0012] An acquisition unit, configured to acquire a search statement and institution attributes input by a user, wherein the institution attributes include the nature of the institution, the level of the institution, and the regulatory agency;
[0013] A query unit, configured to query the names of various institutions that meet the institution attributes from a preset institution index table, wherein the preset institution index table records the abbreviations, individual participles, and participle combinations corresponding to different institution names;
[0014] A word segmentation unit is used to perform word segmentation processing on the search sentence to obtain each word segmentation and word segmentation combination corresponding to the search sentence;
[0015] A matching unit, configured to match each of the segmented words and segmented word combinations corresponding to the search statement with the abbreviations, segmented words, and segmented word combinations corresponding to each of the institution names to obtain a matching result;
[0016] The push unit is used to filter out a target organization name from the various organization names according to the matching result and push the target organization name to the user.
[0017] According to a third aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned mechanism query method is implemented.
[0018] According to the fourth aspect of the present application, an electronic device is provided, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned mechanism query method when executing the program.
[0019] By means of the above-mentioned technical solution, the present application provides an institution query method, device, storage medium and electronic device, which, compared with the prior art, can obtain the search statement and institution attributes input by the user, wherein the institution attributes include the nature of the institution, the level of the institution and the regulatory agency, and then query the names of each institution that meets the institution attributes from the preset institution index table, wherein the preset institution index table records the abbreviations, individual participles and participle combinations corresponding to different institution names, and then perform word segmentation processing on the search statement to obtain the individual participles and participle combinations corresponding to the search statement. At the same time, the individual participles and participle combinations corresponding to the search statement are matched with the abbreviations, individual participles and participle combinations corresponding to each institution name in each institution name to obtain matching results. Finally, based on the matching results, the target institution name is screened out from the various institution names and pushed to the user. From this, it can be seen that this application can optimize the institution query process by adopting query methods such as abbreviations, word segmentation and word segmentation combinations in the institution query process. Even if the user is not clear about the full name of the institution, it can ensure that the user can quickly and accurately query the institution information, thereby enhancing the user experience. In addition, this application pre-screens the institution names that meet the institution attributes from the preset institution index table based on the institution attributes entered by the user, which can further ensure the query accuracy of the institution and improve the query efficiency.
[0020] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0022] Figure 1 A schematic diagram of a flow chart of an institution query method provided in an embodiment of the present application is shown;
[0023] Figure 2 A schematic diagram of the organization name push process provided in an embodiment of the present application is shown;
[0024] Figure 3 A schematic diagram of the initialization process provided by an embodiment of the present application is shown;
[0025] Figure 4 It shows a schematic diagram of a newly added process provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of the deletion process provided in an embodiment of the present application is shown;
[0027] Figure 6 A schematic diagram of the search process provided in an embodiment of the present application is shown;
[0028] Figure 7 A schematic diagram of the scoring and sorting process provided in an embodiment of the present application is shown;
[0029] Figure 8 A schematic structural diagram of an organization query device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that, unless there is a conflict, the embodiments and features in the embodiments of the present application can be combined with each other.
[0031] Therefore, the existing precise name query method cannot enable users to quickly and accurately query institution information, and the user experience is poor.
[0032] In order to solve the above problems, the embodiment of the present invention provides an organization query method, such as Figure 1 As shown, the method includes:
[0033] Step 10: Obtain the search statement and organization attributes entered by the user.
[0034] Among them, the institutional attributes include the nature of the institution, the institutional level and the regulatory agency. The nature of the institution includes the industry type to which the institution belongs and the characteristics of its products or services. The institutional level includes the head office, branches, etc. The regulatory agencies include: financial regulatory agencies, environmental protection agencies, food and drug regulatory agencies, etc.
[0035] The embodiment of the present invention is mainly applicable to the query scenario of the organization name. The execution subject of the embodiment of the present invention is a device or equipment capable of querying the organization name.
[0036] In embodiments of the present invention, when performing a search query, a user enters a search phrase, which may not be a standard full name of an institution. For example, a user may enter the search phrase "SPD" to search for "Shanghai Pudong Development Bank." Another example is a user entering the search phrase "PICC" to search for "China Life Insurance Company Limited." To ensure that the institution name ultimately retrieved meets the user's needs, the user also selects corresponding institution attributes while entering the search phrase, specifically including the nature of the institution, the level of the institution, and the regulatory body.
[0037] Step 20: Query the names of various institutions that meet the institution attributes from the preset institution index table.
[0038] Among them, the preset institution index table records the abbreviations corresponding to different institution names, as well as each word segment and word segment combination. In addition, the specific different institution names refer to the full names of legal person institutions.
[0039] In order to enable users to quickly and accurately query institution information when they are not clear about the full name of the institution, thereby enhancing the user experience, the embodiments of the present invention need to pre-configure a preset institution index table. For this process, the method includes: obtaining the abbreviations corresponding to the configured different institution names; performing word segmentation on the different institution names to obtain each word segment corresponding to the different institution names; for any one of the different institution names, combining each word segment corresponding to the any one institution name to obtain the word segment combination corresponding to the any one institution name; generating a preset institution index table according to the abbreviations, each word segment and word segment combination corresponding to the different institution names.
[0040] Among them, the word segmentation granularity of the embodiments of the present invention can be a single character.
[0041] Taking the full name of the legal person institution "Industrial and Commercial Bank of China Beijing Shijingshan Branch" as an example, first set its corresponding abbreviation as "ICBC". Then perform word segmentation on the full name of the legal person institution "Industrial and Commercial Bank of China Beijing Shijingshan Branch" to obtain "China", "Industrial", "Commercial", "Bank", "Beijing", "Shijingshan", "Branch". Then combine adjacent word segments to form multiple grouped combinations, such as "China", "Industry and Commerce", "Bank", "Beijing", "Shijingshan", "Branch", "Industrial and Commercial Bank", "Beijing Shijingshan", "Industrial and Commercial Bank of China", "Shijingshan Branch", "Industrial and Commercial Bank of China Beijing Shijingshan Branch", etc. In this way, the abbreviations, each word segment and word segment combination corresponding to different full names of legal person institutions can be obtained.
[0042] After obtaining the abbreviations, each word segment and word segment combination corresponding to different full names of legal person institutions, establish the mapping relationship between the full name of the legal person institution and the abbreviation, each word segment and word segment combination, and record the full name of the legal person institution and its corresponding abbreviation, each word segment and word segment combination into the preset institution index table, and then configure it into the index file.
[0043] Furthermore, the embodiments of the present invention not only need to establish the mapping relationship between the full name of the legal person institution and the abbreviation, but also need to specify the institution nature, institution level and regulatory institution corresponding to each full name of the legal person institution in the preset institution index table, so as to facilitate subsequent quick query according to the institution attribute conditions input by the user.
[0044] After the user selects the corresponding institution type, institution level, and regulatory agency in the operation interface, it is necessary to query the preset institution index table for the names of various institutions that meet the aforementioned institution attributes based on the institution type, institution level, and regulatory agency selected by the user. Regarding this process, the method includes: comparing the institution attributes input by the user with the attribute information corresponding to the different institution names in the preset institution index table to obtain a comparison result; and based on the comparison result, screening out the various institution names in the preset institution index table that meet the institution attributes.
[0045] For example, the user selects the institutional attribute of a commercial bank, the institutional level of a branch, and the regulatory agency of the State Administration of Financial Supervision. Based on the above institutional attributes selected by the user, legal entities with attributes such as commercial banks and branch levels and supervised by the State Administration of Financial Supervision can be first filtered out in the preset institutional index table.
[0046] Step 30: Perform word segmentation processing on the search statement to obtain each word segmentation and word segmentation combination corresponding to the search statement.
[0047] For the embodiment of the present invention, in order to realize the query method of abbreviation and word segmentation, after obtaining the search statement input by the user, it is necessary to perform word segmentation processing on the search statement input by the user. Specifically, natural language processing technology can be used to perform word segmentation processing on the search statement, and then the individual word segments corresponding to the search statement are combined to obtain the word segmentation combination corresponding to the search statement.
[0048] For example, the search sentence entered by the user is "ICBC Beijing Shijingshan". After word segmentation, we can get "ICBC", "Bank", "Beijing", "Jing", "Shi", "Jing" and "Shan". Then, by combining adjacent word segments, we can get "ICBC", "Beijing", "Shijingshan", "Beijing Shijingshan", etc.
[0049] Step 40: Match each of the segmented words and segmented word combinations corresponding to the search statement with the abbreviation, segmented words and segmented word combinations corresponding to each of the institution names to obtain a matching result.
[0050] For the embodiments of the present invention, when matching each word segment and word segment combination corresponding to the retrieval statement with the abbreviations corresponding to each institution name, and each word segment and word segment combination, step 104 specifically includes: for any one of the word segments corresponding to the retrieval statement, respectively matching the any one word segment with each word segment corresponding to each institution name; if there is a target word segment identical to the any one word segment among the word segments corresponding to each institution name, determining that the any one word segment is matched with the target word segment; matching the word segment combination corresponding to the retrieval statement with the abbreviations and word segment combinations corresponding to each institution name; if the abbreviation or word segment combination corresponding to each institution name is identical to the word segment combination corresponding to the retrieval statement, determining that the word segment combination corresponding to the retrieval statement is matched with the abbreviation or word segment combination corresponding to each institution name.
[0051] For example, the abbreviation corresponding to the full name of the legal person institution "Industrial and Commercial Bank of China Beijing Shijingshan Branch" is "ICBC", and the word segments corresponding to the full name of the legal person institution "Industrial and Commercial Bank of China Beijing Shijingshan Branch" are "China", "Industrial", "Commercial", "Bank", "Beijing", "Shijingshan", "Branch", etc. The word segment combinations corresponding to "Industrial and Commercial Bank of China Beijing Shijingshan Branch" are "China", "Industrial and Commercial", "Bank", "Beijing", "Shijingshan", "Branch", "Industrial and Commercial Bank", "Beijing Shijingshan", "Industrial and Commercial Bank of China", "Shijingshan Branch", "Industrial and Commercial Bank of China Beijing Shijingshan Branch", etc. The word segments corresponding to the retrieval statement "ICBC Beijing Shijingshan" input by the user are "Industrial", "Commercial", "Bank", "Beijing", "Shijingshan", etc., and the word segment combinations corresponding to "ICBC Beijing Shijingshan" are "ICBC", "Beijing", "Shijingshan", "Beijing Shijingshan", etc. Respectively matching each word segment corresponding to the retrieval statement "ICBC Beijing Shijingshan" with each word segment corresponding to the full name of the legal person institution "Industrial and Commercial Bank of China Beijing Shijingshan Branch", if the two are exactly the same for a certain word segment, it means that the word segment is successfully matched. For example, the word segments "Industrial", "Commercial", "Bank", "Beijing", "Shijingshan" in the retrieval statement are all matched with the word segments of the full name of the legal person institution. At the same time, matching the word segment combination corresponding to the retrieval statement "ICBC Beijing Shijingshan" with the abbreviation and word segment combination corresponding to the full name of the legal person institution "Industrial and Commercial Bank of China Beijing Shijingshan Branch", it can be found that the word segment combination "ICBC" corresponding to the retrieval statement is matched with the abbreviation "ICBC" corresponding to "Industrial and Commercial Bank of China Beijing Shijingshan Branch", and at the same time, the word segment combinations "Beijing", "Shijingshan", "Beijing Shijingshan" corresponding to the retrieval statement are matched with the word segment combinations "Beijing", "Shijingshan", "Beijing Shijingshan" corresponding to "Industrial and Commercial Bank of China Beijing Shijingshan Branch".
[0052] In this way, the matching results between the retrieval statement and the full name of each legal person institution that meets the institution attributes can be determined according to the above method.
[0053] Step 50: According to the matching results, screen out the target institution names from the various institution names and push them to the user.
[0054] For the embodiments of the present invention, after determining the matching results of the full name of each legal person institution, a scoring method can be adopted to screen out the target institutions that meet certain scoring requirements and push them to the user. For this process, as Figure 2 shown, the method includes:
[0055] Step 51: According to the matching results, score each of the various institution names respectively to obtain the scores corresponding to the various institution names.
[0056] For the embodiments of the present invention, when performing specific scoring, first, according to the matching results, determine the number of word segments and word segment combinations that the retrieval statement matches with the various institution names, and whether the retrieval statement matches the abbreviations corresponding to the various institution names; if the retrieval statement matches the abbreviations corresponding to the various institutions, determine the first score corresponding to the retrieval statement; calculate the third score according to the second score corresponding to each matching word segment or word segment combination, and the number of matching word segments and word segment combinations, where the first score is greater than the second score; add the first score and the third score to obtain the scores corresponding to the various institution names.
[0057] Continuing with the above example, the words "Industrial", "Bank", "Beijing", "Shi", "Jing", and "Shan" in the retrieval statement all match the word segments of the full name of the legal person institution. At the same time, the word segment combinations "Beijing", "Shijingshan", and "Beijing Shijingshan" corresponding to the retrieval statement match the word segment combinations "Beijing", "Shijingshan", and "Beijing Shijingshan" corresponding to "Industrial and Commercial Bank of China Beijing Shijingshan Branch". It can be seen that the number of word segments and word segment combinations that the retrieval statement matches with the full name of the legal person institution is 10. Each matching word segment or word segment combination is assigned 1 point, and the total of the 10 matching word segments and word segment combinations is 10 points. In addition, the word segment combination "ICBC" corresponding to the retrieval statement matches the abbreviation "ICBC" corresponding to "Industrial and Commercial Bank of China Beijing Shijingshan Branch". Since the abbreviation matches, 10 points are assigned. Finally, the score corresponding to the full name of this legal person institution is 10 + 10 = 20 points.
[0058] Step 52: According to the scores corresponding to the various institution names, screen out the target institution names with scores greater than the preset threshold from the various institution names and push them to the user.
[0059] For an embodiment of the present invention, target institution names with scores greater than a preset threshold can be screened out from the various institution names based on the scores corresponding to the various institution names. If there are at least two target institution names, they are sorted according to the scores corresponding to the at least two target institution names, and the at least two target institution names are pushed to the user in the sorted order. If there is a target institution name with the same score among the at least two target institution names, the sorting order is determined based on the length of the target institution names with the same score.
[0060] The preset threshold value may be set according to actual business requirements, and is not specifically limited in the embodiment of the present invention.
[0061] For example, a preset threshold is set at 15 points, and the target organization names with scores greater than 15 points are screened out as target organization name A, target organization name B, target organization name C, and target organization name D, and they are sorted from large to small in order of score, respectively, target organization name B, target organization name C, target organization name D, and target organization name A. Among them, target organization name D and target organization name A have the same score. At this time, the order of arrangement between target organization name D and target organization name A can be determined according to the number of words in target organization name D and target organization name A. The longer the number of words, the higher the ranking. Assuming that the number of words in target organization name D is longer than that in target organization name A, target organization name D is sorted before target organization name A. Finally, the order of pushing the target organization names is target organization name B, target organization name C, target organization name D, and target organization name A.
[0062] The embodiment of the present invention provides a search function with configurable abbreviations, segmentation words and segmentation word combinations. While improving the user's query efficiency, it can provide diversified query methods. The embodiment of the present invention can consider cost issues, deployment methods, technology selection, database performance and other factors on the basis of ensuring query efficiency and not affecting other functions, and modify the technical solution selected on the basis of the open source framework (lucene), and add the function of configuring the abbreviation word library. The abbreviation word library mainly includes abbreviations, segmentation words and segmentation word combinations. The framework is extremely small in size. It only needs to introduce the expanded dependency package (lucene) where it is used, and connect with the abbreviation word library to generate an index file. The index file can be quickly generated and completely replace the database query method, thereby realizing functions such as generating indexes, fast retrieval and abbreviation retrieval. At the same time, the hit ratio of the search results is judged and sorted by the ratio score. The above functions of the embodiment of the present invention are jointly implemented by the vue page (abbreviation configuration), java code combination, redis, and database, wherein the database is designed to save the abbreviation configuration information. The processes that can be implemented by this function include: initialization process, new addition process, deletion process, retrieval process and scoring and sorting process, such as Figure 3-7shown.
[0063] For the initialization process, such as Figure 3 As shown, first delete the Redis version number on the backend, then obtain the organization abbreviation information from the database, generate a vocabulary and save it to the NAS server, then synchronize the vocabulary to the local cache, and finally generate an index file and save it to the NAS server, and update the Redis version number on the backend.
[0064] For new processes, such as Figure 4 As shown, first obtain the organization abbreviation information from the database, and write the relationship between the organization and the abbreviation into the database. Then, the new abbreviation and the old abbreviation of each organization are spliced together on the back end. Then, the abbreviation is appended to the NAS server vocabulary, and the vocabulary is synchronized to the local cache. Finally, the corresponding old index file in the NAS server is deleted, the index file is appended and stored in the NAS server, and the Redis version number is updated.
[0065] For the deletion process, such as Figure 5 As shown, first obtain the organization abbreviation information from the database, and delete the relationship between the organization and the abbreviation in the database. Then, splice the non-deleted abbreviations of each organization on the back end, and update the non-deleted abbreviations to the NAS server vocabulary. Then, synchronize the vocabulary to the local cache on the back end, delete the corresponding old index files in the NAS server, and finally append the index files to the NAS server and update the Redis version number.
[0066] For the search process, such as Figure 6 As shown, the backend first checks whether the local version number is consistent with the Redis version number. If they are consistent, the search statement is directly segmented on the backend. If they are inconsistent, the NAS vocabulary is synchronized to the local cache, the local version number is synchronized on the backend, and the search statement is segmented on the backend again. The index file is then retrieved from the NAS server, sorted and paginated according to the scoring algorithm, and the search results are returned.
[0067] For the scoring and sorting process, such as Figure 7 As shown, first, the scoring rules are introduced in the backend, then the index file is read in the NAS server, and the searched fields are set in the backend, with the weights set to 1 to 10 for the ratio of common segmentation or segmentation combination to abbreviation. Then, the search statement is segmented in the NAS server and searched. Finally, the results are sorted according to the scoring results. Search results with the same score are sorted in ascending order of word length and returned.
[0068] An embodiment of the present invention provides an organization query method, which can optimize the organization query process by adopting query methods such as abbreviations, word segmentation and word segmentation combinations in the organization query process. Even if the user is not clear about the full name of the organization, it can ensure that the user can quickly and accurately query the organization information, thereby enhancing the user experience. In addition, the embodiment of the present invention pre-screens the organization names that meet the organization attributes from the preset organization index table based on the organization attributes input by the user, which can further ensure the query accuracy of the organization and improve the query efficiency.
[0069] Further, as Figure 1 and Figure 2 The specific implementation of the method shown in this embodiment provides an organization query device, such as Figure 8 As shown, the device includes: an acquisition unit 101, a query unit 102, a word segmentation unit 103, a matching unit 104 and a push unit 105.
[0070] The acquisition unit 101 may be used to acquire a search statement and institution attributes input by a user, wherein the institution attributes include the nature of the institution, the level of the institution, and the regulatory agency.
[0071] The query unit 102 can be used to query various institution names that meet the institution attributes from a preset institution index table, wherein the preset institution index table records the abbreviations, various participles and participle combinations corresponding to different institution names.
[0072] The word segmentation unit 103 may be used to perform word segmentation processing on the search statement to obtain individual word segments and word segmentation combinations corresponding to the search statement.
[0073] The matching unit 104 may be configured to match each segment word and segment word combination corresponding to the search statement with the abbreviation, each segment word and segment word combination corresponding to each organization name in the organization names to obtain a matching result.
[0074] The push unit 105 may be configured to filter out a target organization name from the various organization names based on the matching result and push the target organization name to the user.
[0075] In some embodiments, the apparatus further comprises: a generating unit.
[0076] The generation unit can be used to obtain the abbreviations corresponding to the configured different organization names; perform word segmentation processing on the different organization names to obtain the individual word segments corresponding to the different organization names; for any one of the different organization names, combine the individual word segments corresponding to the any one organization name to obtain the word segmentation combination corresponding to the any one organization name; generate a preset organization index table based on the abbreviations, individual word segments and word segmentation combinations corresponding to the different organization names.
[0077] In some embodiments, the query unit 102 can be specifically used to compare the organization attributes input by the user with the attribute information corresponding to the different organization names in the preset organization index table to obtain a comparison result; based on the comparison result, the organization names that meet the organization attributes are filtered out from the different organization names in the preset organization index table.
[0078] In some embodiments, the matching unit 104 can be specifically used to match any one of the segmented words corresponding to the search statement with the segmented words corresponding to each institution name; if there is a target segmented word that is the same as any one of the segmented words in the segmented words corresponding to each institution name, then it is determined that the any one of the segmented words matches the target segmented word; the segmented word combination corresponding to the search statement is matched with the abbreviation and segmented word combination corresponding to each institution name; if the abbreviation or segmented word combination corresponding to each institution name is the same as the segmented word combination corresponding to the search statement, then it is determined that the segmented word combination corresponding to the search statement matches the abbreviation or segmented word combination corresponding to each institution name.
[0079] In some embodiments, the push unit 105 includes: a scoring module and a push module.
[0080] The scoring module can be used to score each of the institution names according to the matching results to obtain a score corresponding to each of the institution names.
[0081] The push module can be used to filter out target organization names with scores greater than a preset threshold from the organization names according to the scores corresponding to the organization names and push them to the user.
[0082] In some embodiments, the scoring module can be specifically used to determine, based on the matching results, the number of participles and participle combinations that match the search statement with the names of the various institutions, and whether the search statement matches the abbreviations corresponding to the names of the various institutions; if the search statement matches the abbreviations corresponding to the various institutions, determine the first score corresponding to the search statement; calculate a third score based on the second score corresponding to each matching participle or participle combination, and the number of matching participles and participle combinations, wherein the first score is greater than the second score; and add the first score and the third score to obtain the score corresponding to the names of the various institutions.
[0083] In some embodiments, the push module can be specifically used to filter out target institution names with scores greater than a preset threshold from the various institution names based on the scores corresponding to the various institution names; if there are at least two target institution names, they are sorted according to the scores corresponding to the at least two target institution names, and the at least two target institution names are pushed to the user in the sorted order; if there are target institution names with the same score among at least two target institution names, the sorting order is determined according to the length of the target institution names with the same score.
[0084] It should be noted that for other corresponding descriptions of the functional units involved in the mechanism query device provided by the embodiment of the present invention, please refer to Figure 1 and Figure 2 The corresponding description in will not be repeated here.
[0085] Based on the above Figure 1 and Figure 2 The method shown in FIG. 1 is a method for performing the above-mentioned operation. Accordingly, this embodiment further provides a storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned Figure 1 and Figure 2 The institution query method shown.
[0086] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.), and includes a number of instructions for enabling an electronic device (which can be a personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of the present application.
[0087] Based on the above Figure 1 and Figure 2 The method shown, and Figure 8In order to achieve the above-mentioned purpose, the embodiment of the present application further provides an electronic device, which can be a personal computer, a tablet computer, a server, or other network equipment, etc. The device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 and Figure 2 The institution query method shown.
[0088] Optionally, the physical device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a Wi-Fi module, and the like. The user interface may include a display, an input unit such as a keyboard, and the like. The optional user interface may also include a USB interface, a card reader interface, and the like. The network interface may optionally include a standard wired interface, a wireless interface (such as a Wi-Fi interface), and the like.
[0089] Those skilled in the art will understand that the above-mentioned physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or a combination of certain components, or different component arrangements.
[0090] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the physical device, supporting the execution of information processing programs and other software and / or programs. The network communication module is used to enable communication between components within the storage medium, as well as with other hardware and software within the physical information processing device.
[0091] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by hardware.
[0092] The embodiment of the present invention can optimize the organization query process by adopting query methods such as abbreviations, word segmentation and word segmentation combinations in the organization query process. Even if the user is not clear about the full name of the organization, it can ensure that the user can quickly and accurately query the organization information, thereby enhancing the user experience. In addition, the embodiment of the present invention pre-screens the organization names that meet the organization attributes from the preset organization index table based on the organization attributes input by the user, which can further ensure the query accuracy of the organization and improve the query efficiency.
[0093] Those skilled in the art will understand that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required to implement the present application. Those skilled in the art will understand that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0094] The serial numbers of the above application are for descriptive purposes only and do not represent the advantages or disadvantages of the implementation scenarios. The above disclosure only discloses several specific implementation scenarios of the present application, but the present application is not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the scope of protection of the present application.
Claims
1. A method for querying an organization, characterized in that: include: Acquire a search statement and institution attributes input by a user, wherein the institution attributes include institution nature, institution level and regulatory agency; Querying each institution name that meets the institution attribute from a preset institution index table, wherein the preset institution index table records the abbreviations, each participle and participle combination corresponding to different institution names; Performing word segmentation processing on the search sentence to obtain each word segmentation and word segmentation combination corresponding to the search sentence; Matching each participle and participle combination corresponding to the search statement with the abbreviation, each participle and participle combination corresponding to each institution name in the institution names to obtain a matching result; According to the matching result, the target organization name is selected from the various organization names and pushed to the user.
2. The method according to claim 1, characterized in that: Before searching the preset institution index table for names of institutions that satisfy the institution attribute, the method further includes: Obtain the abbreviations corresponding to the configured different institution names; Performing word segmentation processing on the names of the different institutions to obtain the word segments corresponding to the names of the different institutions; For any one of the different institution names, combining each participle corresponding to the any one of the institution names to obtain a participle combination corresponding to the any one of the institution names; A preset organization index table is generated according to the abbreviations, individual participles and participle combinations corresponding to the names of the different organizations.
3. The method according to claim 1, characterized in that: The querying of each institution name satisfying the institution attribute from the preset institution index table includes: Compare the institution attribute input by the user with the attribute information corresponding to the different institution names in the preset institution index table to obtain a comparison result; According to the comparison result, each institution name that meets the institution attribute is screened out from the different institution names in the preset institution index table.
4. The method according to any one of claims 1 to 3, characterized in that: The matching results obtained by matching each of the participles and participle combinations corresponding to the search statement with the abbreviations, each participle and participle combinations corresponding to each of the institution names include: For any one of the participles corresponding to the search statement, the any one participle is matched with each participle corresponding to each institution name; If there is a target participle identical to any one of the participles in each participle corresponding to each of the institution names, then determining that the any one of the participles matches the target participle; Matching the participle combination corresponding to the search statement with the abbreviation and participle combination corresponding to each institution name; If the abbreviation or participle combination corresponding to each institution name is the same as the participle combination corresponding to the search statement, it is determined that the participle combination corresponding to the search statement matches the abbreviation or participle combination corresponding to each institution name.
5. The method according to claim 1, characterized in that The step of selecting a target organization name from the organization names and pushing the target organization name to the user according to the matching result includes: According to the matching results, score each of the institution names respectively to obtain a score corresponding to each of the institution names; According to the scores corresponding to the various institution names, target institution names with scores greater than a preset threshold are screened out from the various institution names and pushed to the user.
6. The method according to claim 5, characterized in that According to the matching results, scoring each institution name to obtain a score corresponding to each institution name includes: According to the matching results, determining the number of participles and participle combinations of the search statement that match the names of the respective institutions, and whether the search statement matches the abbreviations corresponding to the names of the respective institutions; If the search statement matches the abbreviation corresponding to each of the institutions, determining that the search statement corresponds to a first score; Calculate a third score according to the second score corresponding to each matching participle or participle combination and the number of the matching participles and participle combinations, wherein the first score is greater than the second score; The first score and the third score are added together to obtain the scores corresponding to the names of the respective institutions.
7. The method according to claim 5, characterized in that The step of selecting target institution names with scores greater than a preset threshold from the institution names according to the scores corresponding to the institution names and pushing them to the user includes: According to the scores corresponding to the respective institution names, target institution names having scores greater than a preset threshold are screened out from the respective institution names; If there are at least two target institution names, sort the names of the at least two target institutions according to the scores corresponding to the at least two target institution names, and push the at least two target institution names to the user in the sorted order; If there is a target institution name with the same score among at least two of the target institution names, the sorting order is determined according to the length of the target institution name with the same score.
8. An organization query device, characterized in that: include: An acquisition unit, used to acquire a search statement and an institution attribute input by a user, wherein the institution attribute includes the nature of the institution, the level of the institution and the regulatory agency; A query unit, used to query various institution names that meet the institution attributes from a preset institution index table, wherein the preset institution index table records the abbreviations, various participles and participle combinations corresponding to different institution names; A word segmentation unit, used to perform word segmentation processing on the search sentence to obtain each word segmentation and word segmentation combination corresponding to the search sentence; A matching unit, used for matching each participle and participle combination corresponding to the search sentence with the abbreviation, each participle and participle combination corresponding to each institution name in the institution names to obtain a matching result; The push unit is used to filter out a target organization name from the various organization names according to the matching result and push the target organization name to the user.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.