Enterprise information retrieval method and device, electronic equipment and medium
By identifying and splitting regional words and organizational forms of search text entered by users, performing search strategies separately and performing intersection recalls, the problem of data being unable to be recalled due to information input errors in the existing technology is solved, and the user experience is improved and the accuracy of information retrieval.
Patent Information
- Application Number
- CN202411537702.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-14
AI Technical Summary
When existing enterprise information retrieval methods process search texts containing regional words and organizational forms, they are prone to inability to recall data due to incorrect information input, resulting in poor user experience.
By recognizing regional word and organizing formal word recognition on the search text entered by the user, split it into independent parts such as the regional word part and organizational form word part, the search strategy is performed separately, and recalled based on the intersection of enterprise information retrieved by each part. .
It effectively solves the problem that data cannot be recalled due to errors in inputting regional and organizational terms in the search text, and improves the accuracy of user experience and information retrieval.
Smart Images

Figure CN119441618A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computers, and in particular to the fields of information retrieval and natural language processing technology, and specifically to an enterprise information retrieval method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] As an important type of data, corporate information is needed by many groups of people, including business owners, salespeople, lawyers, and job seekers. Corporate information retrieval technology can help users find the required corporate information more conveniently and efficiently. The quality of the retrieval method directly affects the user experience. A better retrieval method can meet user needs faster and better, thereby retaining and accumulating more loyal users, which is beneficial to the long-term healthy development of the retrieval platform. Summary of the invention
[0003] The present disclosure provides an enterprise information retrieval method, device, electronic device, computer-readable storage medium and computer program product.
[0004] According to one aspect of the present disclosure, a method for retrieving enterprise information is provided, comprising: acquiring a first search text; performing regional word recognition and organizational form word recognition on the first search text respectively; in response to determining that the first search text includes at least one of the regional word and the organizational form word, determining the remaining search texts in the first search text except for the at least one; performing enterprise information retrieval based on the remaining search texts and each of the at least one to obtain respectively retrieved enterprise information; and recalling the enterprise information corresponding to the first search text based on the intersection of the respectively retrieved enterprise information.
[0005] According to another aspect of the present disclosure, there is provided an enterprise information retrieval device, comprising: an acquisition unit configured to acquire a first search text; an identification unit configured to perform regional word identification and organizational form word identification on the first search text, respectively; a determination unit configured to determine the remaining search texts in the first search text except for at least one of the regional word and the organizational form word in response to determining that the first search text includes at least one of the regional word and the organizational form word; a retrieval unit configured to perform enterprise information retrieval based on the remaining search text and each of the at least one, respectively, to obtain respectively retrieved enterprise information; and a recall unit configured to recall enterprise information corresponding to the first search text based on the intersection of the respectively retrieved enterprise information.
[0006] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the present disclosure.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided. The computer instructions are used to cause a computer to execute the method described in the present disclosure.
[0008] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which implements the method described in the present disclosure when executed by a processor.
[0009] According to one or more embodiments of the present disclosure, the search text input by the user is split into a geographical word part and / or an organizational form word part, as well as other parts, so that each part executes a search strategy separately, and the intersection information between the enterprise information retrieved based on each part is recalled, thereby solving the problem of being unable to recall data due to incorrect input of a certain type of search text or part of the search text, which can better meet user needs and improve user experience.
[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0012] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;
[0013] Figure 2 A flowchart of an enterprise information retrieval method according to an embodiment of the present disclosure is shown;
[0014] Figure 3 A flow chart of performing regional word recognition on a search text according to an embodiment of the present disclosure is shown;
[0015] Figure 4 A flow chart of obtaining enterprise information through enterprise information retrieval according to an embodiment of the present disclosure is shown;
[0016] Figure 5 A structural block diagram of an enterprise information retrieval device according to an embodiment of the present disclosure is shown; and
[0017] Figure 6 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0019] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.
[0020] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.
[0021] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0022] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
[0023] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable the method of enterprise information retrieval to be performed.
[0024] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.
[0025] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
[0026] The user may use client devices 101, 102, 103, 104, 105 and / or 106 to input retrieval information, such as retrieving text information. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.
[0027] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptop computers), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing various different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.
[0028] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0029] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0030] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0031] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.
[0032] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
[0033] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as an enterprise. The databases 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.
[0034] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.
[0035] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.
[0036] The traditional enterprise information retrieval method is to perform full-text matching in the enterprise information database based on the query text entered by the user, and then calculate a ranking score based on the query text matching degree and field weight, and then output the recall results to the user after sorting them from high to low. However, the recall results are completely dependent on the query text entered by the user. By monitoring and analyzing the query text entered by the user, it is found that data cannot be recalled for query texts including geographical terms and names, and query texts with incorrect geographical information or organizational form information.
[0037] Therefore, according to an embodiment of the present disclosure, a method for retrieving enterprise information is provided. Figure 2 A flow chart of an enterprise information retrieval method according to an embodiment of the present disclosure is shown. Figure 2 As shown, method 200 includes: obtaining a first search text (step 210); performing regional word recognition and organizational form word recognition on the first search text respectively (step 220); in response to determining that the first search text includes at least one of the regional word and the organizational form word, determining the remaining search text in the first search text except for the at least one (step 230); based on the remaining search text and each of the at least one, performing enterprise information retrieval respectively to obtain respectively retrieved enterprise information (step 240); and based on the intersection of the respectively retrieved enterprise information, recalling the enterprise information corresponding to the first search text (step 250).
[0038] According to the embodiments of the present disclosure, the search text input by the user is split into a geographical word part and / or an organizational form word part, as well as other parts, so that each part executes a search strategy separately, and the intersection information between the enterprise information retrieved based on each part is recalled, thereby solving the problem that a certain type of search text or part of the search text is incorrectly input and the data cannot be recalled, which can better meet the needs of users and improve the user experience.
[0039] In this disclosure, organizational form refers to the form and type of an enterprise. Specifically, organizational form is a specific vocabulary and expression used to describe the structure, composition and management of an organization or enterprise. Its terms help to clearly express the hierarchical relationship, departmental division, management structure and decision-making process within the organization. By using these specific expressions, people can more accurately understand and describe the operating mechanism of the organization.
[0040] For example, organizational form words can cover many aspects, including common corporate structures such as limited liability companies and joint stock companies. In addition, they also include the division of relevant departments, such as the human resources department, the finance department and other administrative departments. When describing the organizational structure of a company, hierarchical terms are often used, such as senior management, middle management, grassroots employees, etc. In addition, there are some terms used to describe the company's management and decision-making process, such as centralized management and decentralized management.
[0041] In the present disclosure, a geographical term refers to a word related to a geographical location. In some examples, the geographical term may refer to a hierarchical regional division made by a country for the convenience of administrative management, such as mainly including provincial administrative regions, prefecture-level administrative regions, county-level administrative regions, and township-level administrative regions.
[0042] According to some embodiments, based on a preset regional word library and a preset organizational form word library, regional words and organizational form words are respectively identified for the first search text.
[0043] Specifically, in some examples, the preset regional word library may include a full set of regional words, such as the three-level administrative division nouns of province / city / district divided according to the unified national administrative division. By matching the first search text with the regional word library, when the first search text includes the corresponding noun in the regional word library or semantically matches the corresponding noun in the regional word library, the corresponding noun can be used as the identified regional word.
[0044] Similarly, in some examples, the preset organizational form word library may include a full set of organizational form words, such as terms used to describe company structures, including the following: unlimited liability company, limited liability company, joint stock company, and joint stock cooperative company. By matching the first search text with the organizational form word library, when the first search text includes a corresponding noun in the organizational form word library or semantically matches a corresponding noun in the organizational form word library, the corresponding noun may be used as the identified organizational form word.
[0045] In some examples, performing regional word recognition and organizational form word recognition on the first search text may include: performing regional word recognition and organizational form word recognition on the first search text based on a preset order. For example, regional word recognition is performed first and then organizational form word recognition is performed, or organizational form word recognition is performed first and then regional word recognition is performed, which is not limited here.
[0046] In some examples, when regional words and organizational form words are identified in a first search text based on a preset order, after one type of word (such as a regional word) is first identified, another type of word (such as an organizational form word) is identified when the number of characters in the first search text after removing the first identified word is greater than a preset threshold, otherwise the other type of word is not identified.
[0047] According to some embodiments, after respectively identifying the regional words and the organizational form words in the first search text, it also includes: identifying invalid words in the first search text, wherein the invalid words are words that interfere with the retrieval of enterprise information; and in response to determining that the first search text includes the invalid words, obtaining the first search text after deleting the invalid words.
[0048] In some examples, when searching for corporate information, many users are accustomed to using search texts such as "xxx company address", "xxx company legal person", "xxx company how is it", "is xxx company a scam", etc. The information such as "address", "legal person", "how is it", "is it a scam", etc. contained in this type of search text may be the search intention words for users, but they are interference words for corporate information search, because the system ultimately returns a list of specific corporate entities that meet the conditions, and users click on the list items to jump to the corporate information details page to view the detailed data of the company.
[0049] Therefore, through the above embodiment, invalid words are firstly identified on the first search text to delete words that interfere with the enterprise information retrieval, thereby making it more helpful for the system to recall the enterprise information required by the user.
[0050] According to some embodiments, obtaining the first search text after deleting the invalid word includes: determining whether the identified invalid word is the ending word of the first search text; and in response to determining that the invalid word is the ending word of the first search text, obtaining the first search text after deleting the invalid word; and in response to determining that the invalid word is not the ending word of the first search text, obtaining the first search text that retains the invalid word.
[0051] As in the examples described above, many users are accustomed to using search texts such as "xxx company address", "xxx company legal person", "xxx company how is it", "is xxx company a scam", etc. when searching for corporate information. It can be seen that the end of this type of search text contains invalid words such as "address", "legal person", "how is it", "is it a scam", etc. In other words, by observing the user's input habits, it is found that they usually identify their specific search intentions at the end of the search text, and this part of information may be interference words for information retrieval and recall. Therefore, through the above embodiment, the invalid words at the end of the search text are limited and identified, thereby effectively preventing accidental deletion and recalling corporate information that meets the user's search intention.
[0052] According to some embodiments, performing invalid word recognition on the first search text includes: determining a first number of characters in the first search text; and in response to determining that the first number of characters is greater than a first threshold, performing invalid word recognition on the first search text.
[0053] In some examples, before performing invalid word recognition on the first search text, it is necessary to first determine the number of characters in the first search text, that is, the length of the first search text. If the first search text is too short (for example, less than 6 characters), the invalid word recognition operation will not be performed. For example, there may be a situation where the company name or company trademark is composed of invalid words in the usual sense, such as a company name of "How is it". Therefore, through the above embodiments, it is possible to effectively prevent mistaken identification and recall corporate information that meets the user's search intent.
[0054] According to some embodiments, invalid words are identified on the first search text based on a preset invalid word library, wherein the preset invalid word library includes a plurality of invalid words.
[0055] In some embodiments, the invalid word library is obtained based on the following operations: obtaining multiple search texts that failed to retrieve corresponding enterprise information within a preset time period in the past; and respectively determining invalid words in the multiple search texts to generate the invalid word library.
[0056] In some examples, a group of search texts that failed to recall data in the past year can be obtained, and the group of search texts can be analyzed to extract invalid words that may cause the data to be unable to be recalled, so as to build an invalid word thesaurus. Subsequently, the newly obtained search text is matched with the invalid word thesaurus, and when the search text includes a corresponding word or a corresponding field in the invalid word thesaurus or semantically matches a corresponding word or a corresponding field in the invalid word thesaurus, the corresponding word or the corresponding field can be used as the identified invalid word.
[0057] It can be understood that the invalid word in the present disclosure can be a noun or a field formed by one or more characters, which is not limited here.
[0058] According to some embodiments, determining the remaining search texts other than the at least one in the first search text includes: identifying connecting words on the remaining search texts based on a preset template; and in response to determining that the remaining search texts include the connecting words, obtaining the remaining search texts after deleting the connecting words.
[0059] In some examples, when searching for enterprise information, many users are accustomed to using search texts such as "xxx company general manager XXX", which contains a connecting word "general manager". Similar to invalid words, these connecting words are also interference words for enterprise information retrieval.
[0060] It can be understood that the conjunction is a word used to connect the two parts of the key search information in the search text. Therefore, in some examples, the conjunction can be matched by some preset templates, such as **General Manager of the Company***, **Legal Person of the Company***, etc. Therefore, by identifying and removing such conjunctions, it is also more helpful for the system to recall the enterprise information required by the user.
[0061] According to some embodiments, respectively identifying regional words and organizational form words for the first search text includes: determining the number of second characters in the first search text after deleting the invalid words; and in response to determining that the second character data is within a preset range, respectively identifying regional words and organizational form words for the first search text.
[0062] In some examples, before identifying the regional words and organizational form words for the first search text, the number of characters in the first search text, that is, the length of the first search text, can be determined. In an embodiment after invalid words are deleted, the number of characters and length can be the number of characters and length of the remaining search text after the invalid words are deleted.
[0063] If the number of characters in the first search text is within a reasonable range, the regional words and organizational form words in the first search text are identified, and the part of the first search text other than the regional words and organizational form words is extracted. For example, the upper and lower limits of the preset range of the second character data can be set to 16 and 4. For example, if the number of characters in the remaining search text after deleting invalid words belongs to [4,16], the regional words and organizational form words therein are extracted; otherwise, they are not extracted, and the enterprise information search is performed directly.
[0064] According to some embodiments, Figure 3As shown, the first search text is respectively identified as a regional word and an organizational form word (step 220), including: determining whether the identified regional word is the beginning word or the ending word of the first search text (step 310); in response to determining that the regional word is the beginning word or the ending word of the first search text, determining that the regional word is identified (step 320); and in response to determining that the regional word is not the beginning word or the ending word of the first search text, determining that the regional word is not identified (step 330).
[0065] Considering that most users have the habit of entering a regional word first and then a company name or a person's name, or entering a company name first and then a regional word in the first search text, it is possible to set the regional word to be extracted from the beginning or end of the first search text, while the middle field of the first search text will not be extracted as a regional word. In this way, in the example where the first search text is "Hebei University of Technology, Tianjin ***", only "Tianjin" will be identified as a regional word, while "Hebei" will not be identified as a regional word. Thus, the accuracy of regional word recognition is improved, thereby improving the accuracy of customer enterprise information retrieval.
[0066] According to some embodiments, the at least one includes the regional word. Figure 4 As shown, performing enterprise information retrieval based on the remaining search text and each of the at least one to obtain the respective retrieved enterprise information (step 240) includes: determining the administrative division code corresponding to the regional word (step 410); performing enterprise information retrieval based on the regional word and the administrative division code to obtain first enterprise information matching the regional word and second enterprise information matching the administrative division code (step 420); and taking the union of the first enterprise information and the second enterprise information as the enterprise information retrieved based on the regional word (step 430).
[0067] That is, in some examples, the object of the regional word search includes not only the input regional word field, but also the administrative division code corresponding to the regional word.
[0068] According to some embodiments, enterprise information retrieval is performed based on the geographical word and the administrative division code respectively to obtain the respective retrieved enterprise information, including: in response to retrieving enterprise information matching the sub-administrative division code and / or the parent administrative division code of the administrative division code corresponding to the geographical word, as the enterprise information retrieved based on the administrative division code.
[0069] In the present disclosure, the administrative division code is a coding system used to identify administrative regions, usually composed of numbers or letters, and is used to distinguish different administrative division units. For example, China's administrative division code consists of 6 digits, the first two digits represent the province (autonomous region, municipality directly under the central government, special administrative region), the middle two digits represent the city (prefecture-level city, region, autonomous prefecture, league), and the last two digits represent the county (urban district, county-level city, flag). For example, the code for Beijing is 110000, where 11 represents Beijing and 0000 is the specific area code.
[0070] In the present disclosure, the parent administrative code refers to a code used to identify an administrative region, which includes the code of the superior administrative region of the administrative region. The sub-administrative code refers to a code used to identify an administrative region, which includes the code of the subordinate administrative region of the administrative region. For example, the code for Beijing is 110000; the urban districts of Beijing are 110100, such as Dongcheng District 110101, Xicheng District 110102, and Fengtai District 110106; the counties of Beijing are 110200, such as Miyun County 110228 and Yanqing County 110229. At this time, all codes for the urban districts of Beijing and the counties of Beijing are sub-administrative codes of Beijing code 110000; and the parent administrative code of Dongcheng District 110101 of Dongcheng District 110101 can be Beijing code 110000.
[0071] In some examples, administrative division data can be stored and managed by creating a table containing region id, name (administrative division name), parent_code (parent administrative division code), and children_code (child administrative division code).
[0072] Through the above embodiment, on the one hand, it can solve the problem that the company name "Jinan" is mistakenly written as "Shandong" in the search text and the data cannot be recalled, or the company name "Shandong" is mistakenly written as "Jinan" and the data cannot be recalled. On the other hand, retaining the search based on the region word field can also avoid the impact on the search results due to changes in the national administrative division code.
[0073] According to some embodiments, performing enterprise information retrieval based on the remaining search text and each of the at least one to obtain the respectively retrieved enterprise information includes: performing word segmentation operations on each part of the at least one and the remaining search text to obtain the phrases corresponding to each part; and performing enterprise information retrieval based on the phrases corresponding to each part to obtain the respectively retrieved enterprise information.
[0074] Tokenization is one of the basic operations of natural language processing. Tokenization, as the name implies, is to divide continuous text into independent words. Tokenization is the process of recombining continuous word sequences into word sequences according to certain specifications. For example, natural language recognition (NLP) and word frequency analysis can be used to implement tokenization. Based on the word-segmented phrases, you can search in the preset enterprise information database to obtain enterprise information that matches the phrase.
[0075] It is understandable that the word segmentation operation and information retrieval based on the phrases obtained after the word segmentation can be implemented by any suitable algorithm such as information search and recommendation, and is not limited here.
[0076] According to some embodiments, performing enterprise information retrieval based on the phrases corresponding to each of the parts to obtain the respectively retrieved enterprise information includes: for the at least one and any one of the remaining search texts: in response to determining that the number of participles in the phrase corresponding to the part is less than a second threshold, performing enterprise information retrieval to obtain enterprise information with a first percentage matching degree with the phrase corresponding to the part, as the enterprise information retrieved based on the part; in response to determining that the number of participles in the phrase corresponding to the part is not less than the second threshold, performing enterprise information retrieval to obtain enterprise information with a second percentage matching degree with the phrase corresponding to the part, as the enterprise information retrieved based on the part; wherein the first percentage is less than the second percentage.
[0077] It is understandable that recall is one of the key indicators for evaluating model performance in information retrieval, recommendation systems and other fields. The core meaning of recall is to measure the system's ability to return relevant documents in the query results. For information retrieval systems, high recall means that the system can provide more potentially relevant results; for recommendation systems, high recall means that the system can find more items that users may be interested in. Usually, recall can be calculated by directly comparing the matching degree of relevant documents in the query results with the query itself, usually including keyword-based matching and semantic-based matching.
[0078] For example, when matching based on keywords, keyword matching can be used to indicate the degree of similarity between the search keyword and the keyword contained in the page content. The higher the matching degree, the more conducive it is to keyword ranking.
[0079] For example, a phrase includes three words (or fields), and a certain content corresponding to a certain enterprise in the enterprise information database happens to match the above three words, then the content can be said to be 100% matched to the phrase; if a certain content matches 2 of the above three words, then the content can be said to be 66.7% matched to the phrase.
[0080] Therefore, in some examples, when a certain part of the at least one and the remaining retrieval text is retrieved as a separate part, the retrieval recall strategy for this part can be appropriately relaxed. For example, when the number of word segments in the phrase corresponding to this part is less than 3, full match (i.e., a matching degree of 100%) is set to recall. Otherwise, a matching degree of 90% is set to recall. In this way, assuming that the number of word segments in the phrase corresponding to this part is 3, then as long as at least (where represents rounding down) words are matched, it can be recalled.
[0081] It can be understood that for each part of the at least one and the remaining retrieval text, the corresponding second threshold, the first percentage, and the second percentage of each part can be the same or different, and no limitation is made here.
[0082] Exemplarily, when this part is an organizational form word, through the above embodiments, problems such as the inability to recall data due to the wrong writing of "Limited Company" as "Responsibility Limited Company" in the retrieval text can be solved. Thus, the recall rate of enterprise information is improved.
[0083] According to an embodiment of the present disclosure, as Figure 5 shown, an enterprise information retrieval device 500 is further provided, including: an acquisition unit 510 configured to acquire a first retrieval text; a first recognition unit 520 configured to respectively perform geographical word recognition and organizational form word recognition on the first retrieval text; a determination unit 530 configured to, in response to determining that the first retrieval text includes at least one of the geographical word and the organizational form word, determine the remaining retrieval text in the first retrieval text except for the at least one; a retrieval unit 540 configured to respectively perform enterprise information retrieval based on each of the remaining retrieval text and the at least one to obtain the enterprise information retrieved respectively; and a recall unit 550 configured to recall the enterprise information corresponding to the first retrieval text based on the intersection of the respectively retrieved enterprise information.
[0084] Here, the operations of the above units 510-550 of the enterprise information retrieval device 500 are respectively similar to the operations of steps 210-250 described above, and will not be elaborated here.
[0085] In the technical solution of the present disclosure, the processing of collection, storage, use, processing, transmission, provision, and disclosure of the user's personal information involved all comply with the provisions of relevant laws and regulations and do not violate public order and good customs.
[0086] According to an embodiment of the present disclosure, an electronic device, a readable storage medium and a computer program product are also provided.
[0087] refer to Figure 6 , a block diagram of an electronic device 600 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0088] like Figure 6 As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0089] Multiple components in the electronic device 600 are connected to the I / O interface 605, including: an input unit 606, an output unit 607, a storage unit 608, and a communication unit 609. The input unit 606 can be any type of device that can input information to the electronic device 600. The input unit 606 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 607 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 608 can include but is not limited to a disk, an optical disk. The communication unit 609 allows the electronic device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0090] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the method 200 in any other appropriate manner (e.g., by means of firmware).
[0091] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0092] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0093] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0095] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), the Internet, and a blockchain network.
[0096] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0097] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0098] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.
Claims
1. A method for retrieving enterprise information, comprising: Get the first search text; Respectively performing regional word recognition and organizational form word recognition on the first search text; In response to determining that the first search text includes at least one of the regional word and the organizational form word, determining remaining search texts in the first search text except for the at least one; Based on the remaining search text and each of the at least one, respectively perform enterprise information search to obtain the respectively retrieved enterprise information; as well as Based on the intersection of the respectively retrieved enterprise information, enterprise information corresponding to the first search text is recalled.
2. The method of claim 1, wherein: Before respectively identifying the regional words and organizational form words for the first search text, the method further includes: Identifying invalid words on the first search text, wherein the invalid words are words that interfere with enterprise information retrieval; and In response to determining that the first search text includes the invalid word, the first search text is obtained after the invalid word is deleted.
3. The method of claim 2, wherein: The step of identifying invalid words on the first search text includes: determining a first number of characters in the first search text; and In response to determining that the first character quantity is greater than a first threshold, invalid word recognition is performed on the first search text.
4. The method according to claim 2 or 3, wherein: Invalid words are identified on the first search text based on a preset invalid word library, wherein the preset invalid word library includes a plurality of invalid words, and wherein the invalid word library is obtained based on the following operations: Acquire multiple search texts that failed to retrieve corresponding enterprise information within a preset time period in the past; and Invalid words in the plurality of search texts are respectively determined to generate the invalid word library.
5. The method according to any one of claims 2 to 4, wherein: Obtaining the first search text after deleting the invalid word comprises: determining whether the identified invalid word is an ending word of the first search text; and In response to determining that the invalid word is the ending word of the first search text, obtaining the first search text after deleting the invalid word; and In response to determining that the invalid word is not an ending word of the first search text, the first search text retaining the invalid word is obtained.
6. The method of claim 1, wherein: Determining the remaining search texts in the first search text except the at least one includes: Performing conjunction recognition on the remaining search text based on a preset template; and In response to determining that the remaining search text includes the connecting word, the remaining search text after deleting the connecting word is obtained.
7. The method according to claim 1 or 2, wherein: Respectively identifying the regional words and the organizational form words for the first search text includes: determining a second number of characters in the first search text; and In response to determining that the second character data is within a preset range, regional words and organizational form words are respectively identified for the first search text.
8. The method according to claim 1 or 7, wherein: Respectively identifying the regional words and the organizational form words for the first search text includes: Determining whether the identified regional word is a beginning word or an ending word of the first search text; In response to determining that the regional word is a beginning word or an ending word of the first search text, determining that the regional word is recognized; and In response to determining that the regional word is not a beginning word or an ending word of the first search text, it is determined that the regional word is not recognized.
9. The method according to claim 1 or 7, wherein: The at least one includes the regional word, and wherein, Based on the remaining search text and each of the at least one, enterprise information retrieval is performed respectively to obtain the respective retrieved enterprise information including: Determine the administrative division code corresponding to the geographical term; Retrieve enterprise information based on the region word and the administrative division code respectively to obtain first enterprise information matching the region word and second enterprise information matching the administrative division code; and The union of the first enterprise information and the second enterprise information is used as the enterprise information retrieved based on the regional word.
10. The method of claim 9, wherein: Based on the geographical term and the administrative division code, the enterprise information is searched respectively to obtain the respective retrieved enterprise information including: In response to retrieving enterprise information that matches the sub-administrative division code and / or the parent administrative division code of the administrative division code corresponding to the geographical word, the enterprise information is retrieved based on the administrative division code.
11. The method according to any one of claims 1 to 10, wherein: Based on a preset regional word library and a preset organizational form word library, regional words and organizational form words are respectively identified for the first search text.
12. The method of claim 1, wherein: Based on the remaining search text and each of the at least one, enterprise information retrieval is performed respectively to obtain the respective retrieved enterprise information, including: For each part of the at least one and the remaining search text, respectively perform word segmentation operations to obtain a phrase corresponding to each part; and Based on the phrases corresponding to each of the parts, enterprise information retrieval is performed respectively to obtain the retrieved enterprise information.
13. The method of claim 12, wherein: Based on the phrases corresponding to each of the parts, the enterprise information is searched respectively to obtain the respective retrieved enterprise information including: For any part of the at least one and the remaining search text: In response to determining that the number of word segments in the phrase corresponding to the portion is less than a second threshold, performing a corporate information search to obtain corporate information having a first percentile matching degree with the phrase corresponding to the portion as corporate information retrieved based on the portion; In response to determining that the number of word segments in the phrase corresponding to the portion is not less than the second threshold, performing a corporate information search to obtain corporate information having a second percentile matching degree with the phrase corresponding to the portion as corporate information retrieved based on the portion; Wherein, the first percentage is less than the second percentage.
14. An enterprise information retrieval device, comprising: An acquisition unit configured to acquire a first search text; A first recognition unit is configured to perform regional word recognition and organizational form word recognition on the first search text respectively; a determination unit configured to, in response to determining that the first search text includes at least one of the regional word and the organizational form word, determine remaining search texts in the first search text except for the at least one; A retrieval unit configured to perform enterprise information retrieval based on the remaining search text and each of the at least one, respectively, to obtain the respective retrieved enterprise information; as well as The recall unit is configured to recall the enterprise information corresponding to the first search text based on the intersection of the respectively retrieved enterprise information.
15. The apparatus of claim 14, further comprising: A second recognition unit is configured to perform invalid word recognition on the first search text before respectively performing regional word recognition and organizational form word recognition on the first search text, wherein the invalid word is a word that interferes with the enterprise information retrieval; and The first deleting unit is configured to obtain the first search text after deleting the invalid word in response to determining that the first search text includes the invalid word.
16. The device of claim 15, wherein: The second identification unit comprises: A first determining subunit, configured to determine the number of first characters in the first search text; and The first recognition subunit is configured to perform invalid word recognition on the first search text in response to determining that the first character quantity is greater than a first threshold.
17. The device according to claim 15 or 16, wherein: Invalid words are identified on the first search text based on a preset invalid word library, wherein the preset invalid word library includes a plurality of invalid words, and wherein the invalid word library is obtained based on the following operations: Acquire multiple search texts that failed to retrieve corresponding enterprise information within a preset time period in the past; and Invalid words in the plurality of search texts are respectively determined to generate the invalid word library.
18. The device according to any one of claims 15 to 17, wherein: The first deleting unit comprises: a second determination subunit, configured to determine whether the identified invalid word is an ending word of the first search text; and A first deleting subunit is configured to, in response to determining that the invalid word is the ending word of the first search text, obtain the first search text after deleting the invalid word; and The second deleting subunit is configured to obtain the first search text retaining the invalid word in response to determining that the invalid word is not the ending word of the first search text.
19. The device of claim 14, wherein: The determining unit comprises: a second recognition subunit configured to perform conjunction recognition on the remaining search text based on a preset template; and The third deleting subunit is configured to obtain the remaining search text after deleting the connecting word in response to determining that the remaining search text includes the connecting word.
20. The device according to claim 15 or 16, wherein: The first identification unit comprises: A third determining subunit is configured to determine the number of second characters in the first search text after deleting the invalid word; and The third recognition subunit is configured to, in response to determining that the second character data is within a preset range, perform regional word recognition and organizational form word recognition on the first search text respectively.
21. The device of claim 14 or 20, wherein: The first identification unit comprises: a fourth determination subunit, configured to determine whether the identified regional word is a beginning word or an ending word of the first search text; a fifth determining subunit, configured to determine that the regional word is recognized in response to determining that the regional word is a beginning word or an ending word of the first search text; and The sixth determination subunit is configured to determine that the regional word is not recognized in response to determining that the regional word is not a beginning word or an ending word of the first search text.
22. The device of claim 14 or 20, wherein: The at least one includes the regional word, and wherein the retrieval unit includes: A seventh determination subunit is configured to determine the administrative division code corresponding to the geographical term; A first acquisition subunit is configured to perform enterprise information retrieval based on the geographical word and the administrative division code respectively to obtain first enterprise information matching the geographical word and second enterprise information matching the administrative division code; and The second acquisition subunit is configured to use the union of the first enterprise information and the second enterprise information as the enterprise information retrieved based on the regional word.
23. The device of claim 22, wherein: The first acquisition subunit includes: Used to respond to the retrieval of enterprise information matching the sub-administrative division code and / or the parent administrative division code of the administrative division code corresponding to the geographical word, as a unit of enterprise information retrieved based on the administrative division code.
24. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 13.
25. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-13.
26. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.