WO2021189434A1 - User selection method and device, and server and storage medium - Google Patents

User selection method and device, and server and storage medium Download PDF

Info

Publication number
WO2021189434A1
WO2021189434A1 PCT/CN2020/081729 CN2020081729W WO2021189434A1 WO 2021189434 A1 WO2021189434 A1 WO 2021189434A1 CN 2020081729 W CN2020081729 W CN 2020081729W WO 2021189434 A1 WO2021189434 A1 WO 2021189434A1
Authority
WO
WIPO (PCT)
Prior art keywords
conditional
existence
relationship
query
user
Prior art date
Application number
PCT/CN2020/081729
Other languages
French (fr)
Chinese (zh)
Inventor
程际
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2020/081729 priority Critical patent/WO2021189434A1/en
Priority to CN202080094696.2A priority patent/CN115004169A/en
Publication of WO2021189434A1 publication Critical patent/WO2021189434A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation

Definitions

  • This application relates to the technical field of information screening, and more specifically, to a user selection method, device, server, and storage medium.
  • this application proposes a user selection method, device, server and storage medium to improve the above-mentioned problems.
  • an embodiment of the present application provides a user selection method, the method includes: parsing conditional sentences in the received user description information and the existence relationship between the conditional sentences; according to the conditional sentences and the existence relationship, Construct a query description module of a logical tree structure, where the query description module represents the existence relationship between conditional sentences; select users who meet the conditions of the query description module from the target database.
  • an embodiment of the present application provides a user selection device.
  • the device includes a parsing unit for parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences; the building unit is used for According to the conditional sentences and the existence relationship, a query description module of a logical tree structure is constructed.
  • the query description module represents the existence relationship between the conditional sentences; user.
  • an embodiment of the present application provides a server, including: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to Executed by the one or more processors, and the one or more programs are executed by the processor to execute the above-mentioned method.
  • an embodiment of the present application provides a computer-readable storage medium in which program code is stored, and the program code can be invoked by a processor to execute the above-mentioned method.
  • the user selection method, device, server, and storage medium provided in the embodiments of the present application construct a query description module based on the conditional sentences in the user description information and the existence relationship between the conditional sentences, so that users who meet the conditions of the query description module can be directly selected , Improve the efficiency of selection.
  • Fig. 1 shows a flowchart of a user selection method provided by an embodiment of the present application.
  • Fig. 2 shows a flowchart of a user selection method provided by another embodiment of the present application.
  • FIG. 3 shows a schematic diagram of a binary tree structure of a query description module provided by an embodiment of the present application.
  • FIG. 4 shows a schematic diagram of a binary tree structure of a query description module provided by another embodiment of the present application.
  • Fig. 5 shows a flow structure diagram of a user selection method provided by another embodiment of the present application.
  • Fig. 6 shows a flow structure diagram of some steps of a user selection method provided by another embodiment of the present application.
  • Fig. 7 shows a flowchart of a user selection method provided by still another embodiment of the present application.
  • Fig. 8 shows a functional module diagram of a user selection device provided by an embodiment of the present application.
  • Fig. 9 shows a structural block diagram of a server provided by an embodiment of the present application.
  • FIG. 10 is a storage unit for storing or carrying program code for implementing the user selection method according to the embodiment of the present application according to an embodiment of the present application.
  • the characteristics of the user can be analyzed.
  • the characteristics of the user can indicate the user's preferences, personality, financial status, family status, travel mode, One or more types of user information, such as a circle of friends.
  • the feature can be the user’s age, gender, occupation, constellation, birthday, and other user attribute information determined from the information registered by the user or other means, which can be represented by portrait tags;
  • User behavior characteristics generated by the operation such as the number of times a user opens a certain software, the number of times a certain product is viewed, the number of certain types of goods viewed, the time to download a certain program, the amount of purchases in a week, the number of purchases made using a certain software in a week, etc.
  • the attribute information of each user can be information with small changes. For example, it is usually possible to change at least at a preset time interval. For example, for the same user, gender, constellation, birthday, etc. are basically unchanged, while changes in age and occupation are relatively constant. Slow, it usually takes a long time to change.
  • the user behavior characteristics are generated by the user operating the electronic device, and the user continues to operate the electronic device, the user behavior characteristics change quickly, such as usually within a time period, such as a day, will change.
  • the same user may have one or more characteristics, and the conditions are limited according to the characteristics, and the users that need to be selected can be selected.
  • each user needs to be judged according to different conditions, each user needs to make multiple judgments, and the selection results of different conditions need to be combined, which is low in efficiency.
  • the embodiments of the present application provide a user selection method, device, server, and storage medium.
  • a user selection method By constructing different conditional sentences into a query description module of a logical tree structure, user selection is performed. For each user, the query description module can be used The conditions determine whether the user needs to be selected, and the selection efficiency is higher.
  • the user selection method, device, server, and storage medium provided by the embodiments of the present application will be described in detail below through specific embodiments.
  • FIG. 1 shows a user selection method provided by an embodiment of the present application. Specifically, the method includes:
  • Step S110 Parse the conditional sentences in the received user description information and the existence relationship between the conditional sentences.
  • the user description information describes which users are to be searched, in other words, the user description information includes the conditions that the users to be searched for need to meet and the relationship between these conditions.
  • the conditions that the user needs to satisfy in the user description information are parsed as conditional sentences, and the relationship between the conditions is parsed as the existence relationship between the conditional sentences. For example, if the user description information describes that the user should have both feature A and feature B, the conditional sentences obtained by analysis include A and B, and the existence relationship between the conditional sentences is simultaneous.
  • Step S120 Construct a query description module in a logical tree structure according to the conditional sentences and the existence relationship, where the query description module represents the existence relationship between the conditional sentences.
  • the existence relationship between the conditional statement and the conditional statement is used to construct a query description module, which can be constructed based on a logical tree and has a logical tree structure.
  • the query description module it includes conditional statements and the existence relationship between conditional statements, and the conditional statements are combined and connected through the existence relationship, indicating the existing conditional statements and the existence relationship between different conditional statements.
  • Step S130 Select users who meet the conditions of the query description module from the target database.
  • users who satisfy the conditions corresponding to the conditional statements in the query description module and the users who satisfy the existence relationship between the conditional statements can be selected from the target database.
  • conditional statement and the relationship between the conditional statement in the user description information are constructed as a query description module of a logical tree structure, so that when the user selects, users who meet the conditions of the query description module can be selected, which improves Choose efficiency.
  • the embodiments provided in the embodiments of the present application include specific construction methods for query descriptions. For details, please refer to Figure 2.
  • the method provided in this embodiment includes:
  • Step S210 Analyze the conditional sentences in the received user description information and the existence relationship between the conditional sentences.
  • the user to be selected can be described through the user description information, and the conditions that the selected user needs to meet and the relationship between the conditions are limited.
  • the selection terminal that initiates the user selection request select features as the condition and set the relationship between the features as the existence relationship between the conditions; or the selection terminal that initiates the user selection request describes the conditions that the user needs to meet in natural language ,
  • the description is parsed as user description information.
  • conditional statements include A, B, C, and D.
  • the relationship between conditional statements includes the existence of conditional statements A and B at the same time, conditional statements C and D exist at the same time, and the combined conditional statement A and B and the combined condition.
  • sentence C and D alternatively exists, then the combined conditional sentence A and B and the combined conditional sentence C and D are combined with (A and B) or (C and D). Understandably, alternative existence means that any one exists and meets the conditions.
  • the user description information can be sent by the demander who selects the user, or it can be produced based on the conditions that the user needs to meet in the actual business.
  • the source of the user description information is not limited.
  • the user description information expressed through different description methods can correspond to different analysis methods to obtain the conditional generation conditional statement therein, and obtain the relationship between the conditions corresponding to the existence relationship between the generational conditional statements.
  • conditional sentences are not limited in the embodiments of the present application, and may be various user characteristics, such as characteristics representing user attribute information, user behavior characteristics, and the like. Which existing relationships are specifically included is not limited in the embodiments of the present application, for example, they exist at the same time, for example, they exist alternately.
  • the conditional sentence includes gender as male and occupation as finance. If the existence relationship between male and finance is simultaneous, it means that users whose gender is male and occupation as finance are satisfied at the same time to satisfy the limitation of the user description information.
  • the user description information may indicate conditional sentences through condition identifiers, and indicate the relationship between conditions through relationship identifiers.
  • the conditional sentences indicated by different condition identifiers may include the relationship indicated by the relationship identifier, and the relationship indicated by the relationship identifier represents the relationship between the conditional sentences indicated by the different condition identifiers.
  • the method of parsing the user description information to obtain the conditional sentences and the existence relationship may be to obtain the words and sentences corresponding to the condition identifiers in the user description information as the conditional sentences; and to obtain the words and sentences corresponding to the relationship identifiers between the conditional sentences as the conditional sentences. There is a relationship.
  • condition identifier and the relationship identifier may be represented by specific characters.
  • the character representing the condition identifier is recognized, the character can be determined as the condition identifier; when the character representing the relationship identifier is recognized, the character can be determined as the relationship identifier.
  • condition identifier and the relationship identifier may be represented by a specific sentence structure.
  • sentence structure representing the condition identifier When the sentence structure representing the condition identifier is recognized, the sentence in the sentence structure can be determined to be a conditional sentence; when the sentence structure representing the relationship identifier is recognized, it can be determined that the sentence in the sentence structure is the existence relationship between the conditional sentences .
  • the character i represents the condition identifier
  • the character j represents the relationship identifier.
  • the description in the user description information is i:A j:and i:B j:and i:C
  • the conditional sentences are A, B, and C
  • the existence relationship is and, and the existence relationship between B and C is and.
  • simultaneous existence which means that conditions A, B, and C are met at the same time.
  • the user description information can be described in natural language.
  • the user description information can be semantically recognized. According to the words and sentences of the user description information in the recognition result, the words and sentences that indicate the conditions and the words and sentences that indicate the existence relationship are determined, and the conditional sentences and the existence between the conditional sentences are generated correspondingly relation. Among them, the words and sentences describing the relationship between the conditional sentences may indicate the existence relationship between the conditional sentences.
  • the way of parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences may be to perform semantic recognition on the user description information, and obtain the user description information that exists in the preset condition library
  • the words and sentences of as the conditional sentences; the words and sentences describing the relationship between the conditional sentences are obtained as the existence description information between the conditional sentences; according to the preset correspondence between the existence description information and the existence relationship, it is determined that the acquired existence description information corresponds Relationship.
  • the preset condition library includes each condition statement. Obtaining the words and sentences that exist in the preset condition database in the user description information as the conditional sentences may be to compare each word and sentence obtained by semantic recognition word segmentation with the words and sentences in the preset condition database respectively, and if the words and sentences obtained for each word segmentation are obtained A phrase, if the phrase exists in the preset condition library, it means that the phrase is a condition and can be used as a conditional sentence.
  • a preset correspondence relationship between the presence description information and the presence relationship may be preset.
  • determine the existence relationship corresponding to the acquired existence description information which can be: Words and sentences other than the conditional sentence in the word segmentation result are used as the existence description information, and the existence relationship corresponding to each acquired existence description information is determined according to the preset correspondence between the existence description information and the existence relationship.
  • the existence relationship represents the existence relationship between the conditional sentences described in the existence description information; if the acquired existence description information does not correspond to the existence relationship, it means the existence description The information does not describe the existence relationship, and the existence description information is discarded.
  • an existing vocabulary and sentence library may be preset, and the existing vocabulary and sentence library includes words and sentences describing the existence relationship between conditional sentences. Obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences. According to the preset correspondence between the existence description information and the existence relationship, determine the existence relationship corresponding to the acquired existence description information, which can be determined Whether other words and sentences other than the conditional sentence in the word segmentation result are in the existence word and sentence database; for the words and sentences in the existence sentence database, it can be used as the existence description information; according to the preset correspondence between the existence description information and the existence relationship, it is determined to obtain The existence relationship corresponding to the existence description information, and the existence relationship represents the existence relationship between the conditional sentences described by the existence description information.
  • Step S220 Use conditional sentences as leaf nodes, and use the existence relationship between conditional sentences as root nodes corresponding to the leaf nodes to construct the query description module of the logical tree structure.
  • a query description module of a logical tree structure can be constructed according to the conditional sentences and the existence relationship, and the query description module represents the existence relationship between the conditional sentences.
  • the constructed query description module can be a software code module or other modules with specific expressions.
  • the root node indicates the existence relationship, and the root node includes all nodes in the logical tree structure that can be used as root nodes. Leaf nodes that do not have child nodes are used as conditional statements.
  • the root node represents the existence relationship between the conditional sentences corresponding to its child nodes.
  • the specific logic tree is not limited, and the embodiment of the present application mainly uses a binary tree as an example for description.
  • conditional statement includes A, B, C, and D
  • conditional statement A, B, C, and D exist at the same time
  • conditional statement A and the conditional statement B exist at the same time
  • conditional statement A and the conditional statement The conditional statement composed of B and the conditional statement C exist at the same time, and the conditional statement composed of the conditional statements A, B and C and the conditional statement D exist at the same time. and means that it exists at the same time
  • conditional sentence includes A, B, C, and D as leaf nodes.
  • the root node between the conditional statement A and B is and, the combined conditional statement (A and B) is used as a subtree, the conditional statement C is used as another subtree, and the conditional statement (A and B) is between the conditional statement (A and B) and the conditional statement C
  • the root node of is and; the combined conditional sentence ((A and B) and C) is used as a word count conditional sentence D as another subtree, the conditional sentence ((A and B) and C) and the conditional sentence D
  • the root node is and, and the logical binary tree formed is shown in Figure 3.
  • the query description module obtained can be (((A and B) and C) and D).
  • conditional statements A, B, C, and D exist at the same time, then conditional statement A and conditional statement B respectively serve as the child nodes of the root node and form a subtree, and conditional statement C is the other child
  • the tree with and as the root node, forms a new subtree representing (A and B)and C, the new subtree is used as the left subtree of the binary tree, the conditional statement D is the right subtree of the binary tree, and and is the root of the binary tree
  • the nodes form a binary tree structure as shown in Fig. 3, and the obtained description module can be (((A and B) and C) and D).
  • conditional statements include A, B, C, and D.
  • the relationship between the conditional statements includes the existence of conditional statements A and B at the same time, and the conditional statements C and D exist at the same time.
  • the combined condition Sentence A and B and the combined conditional sentence C and D alternatively exist. It is expressed by "or" in existence.
  • the binary tree constructed by conditional sentences A, B, C, and D is shown in Fig. 4, and the query description module with the binary tree structure can be (A and B) or (C and D).
  • each existence relationship in the query description module can be described by a corresponding code. If the acquired existence relationship is different from the code expression used to describe the existence relationship, you can also The obtained existence relationship is converted into the corresponding code. For example, if the obtained existence relationship is simultaneous existence, and the code indicating simultaneous existence is "and", then the existence relationship "simultaneous existence” is converted to "and”.
  • Step S230 Select users who meet the conditions of the query description module from the target database.
  • the user data used for user selection is data in a database
  • the database is defined as the target database.
  • the target database includes each user and the conditions that each user meets. According to the query description module to select users from the target database, users that meet the conditions defined by the user description information can be selected. It is understandable that a user who satisfies the condition of the query description module means that the user satisfies the condition corresponding to the conditional sentence in the query description module, and the existence relationship between the user who satisfies the condition corresponding to the conditional sentence.
  • the specific selection method may be to determine whether each user satisfies the conditions described by the query description module.
  • the specific judgment method is not limited in the embodiment of the present application.
  • the query description module is (((A and B) and C) and D), and the condition described is that conditions A, B, C, and D are met at the same time, and then for each user, it can be determined whether it meets condition A at the same time , B, C and D, if they are satisfied, the user is selected; if not, the user is not selected.
  • the query description module is (((A and B) and C) and D)
  • all users meeting condition A can be selected from the target database, and then users meeting condition B can be selected from users meeting condition A, Obtain users who meet conditions A and B; select users who meet condition C from users who meet conditions A and B, and obtain users who meet conditions A, B, and C; further select users who meet conditions A, B, and C
  • the users of condition D are selected to meet the conditions of A, B, C, and D at the same time.
  • the target database is Hive
  • the user data in the target database is user data stored in Hive.
  • User selection is performed from the user data stored in Hive, and the selection results are stored in the Hive table asynchronously, and all users who meet the conditions of the query description module stored in Hive can be obtained, which is convenient for subsequent export.
  • the user can be represented by user identity information, such as the device identification (imei) of the electronic device.
  • the query description module indicates the existence relationship between conditional sentences, and may not be a complete query sentence. Therefore, in the embodiment of the present application, after the query description module is generated, when users who meet the conditions of the query description module are selected according to the query description module, a query statement can be generated according to the query description module, and the query statement is described by a complete query code Query the existence relationship between the conditional statements included in the description module. Select users based on the generated query statement.
  • a query statement may be generated by subsequent traversal of the query description module.
  • the target database includes real-time updated user data. If user data is newly generated, the newly generated user data is stored in the target database. For example, for a user, if a certain software is started once, the user behavior characteristic of the number of times the software is started increases by one, and among the user behavior characteristics, the number of times the software is started corresponding to the user increases by one.
  • user data may include user behavior characteristics of each user. Because user behavior characteristics change rapidly, and user data in the target database is updated in real time, it can ensure that the selected users are more time-sensitive users, and the search results are more accurate.
  • the generation of the query description module and the selection of the user may be the same execution subject, or may be different execution subjects. If it is a different execution subject, the execution subject that generates the query description module can send the query description module to the execution subject of the selected user, and the execution subject of the selected user selects the user according to the query description module.
  • conditional sentence is used as a leaf node, and the relationship between the conditional sentences is used as the root node corresponding to the leaf node to construct the query description module of the logical tree structure, so that when the user selects, he can choose to satisfy the query
  • the user who describes the conditions of the module improves the efficiency of selection.
  • the query description module since the query description module has a logical tree structure, conditions of different forms can be used as conditional sentences to be combined with other conditions.
  • different query description modules can also be combined with each other according to their existing relationships to build a new query description module with the same logical tree structure for user query and selection under the same query engine, which improves the extension of the solution sex.
  • the user description information may include multiple description information and the relationship between the multiple description information, and the parsing of the conditional sentence in the received user description information and one of the conditional sentences
  • constructing the query description module of the logical tree structure may include: separately analyzing the conditional statement in each description information and the existence relationship between the conditional statements; according to each description information
  • Corresponding conditional sentences and existence relationships construct a description module of the logical tree structure; according to the existence relationship between each description information, the description modules corresponding to each description information are combined into the query description module of the logical tree structure.
  • the method may include:
  • Step S310 Parse the conditional sentences in each description information and the existence relationship in the conditional sentences respectively.
  • Each description information is essentially a user description information. For ease of description, it is defined as description information.
  • Each description information in the received user description information can originate from different devices, or can originate from the same terminal. For example, using user characteristics as conditional sentences, in the same terminal, due to the complexity and variability of attribute behavior characteristics, in order to reduce the difficulty of feature setting, the characteristics of attribute information and user behavior characteristics are set in different operation units. Then, the description information related to the characteristics of the attribute information and the description information related to the user behavior characteristics can be obtained.
  • each description information can be described in the same or different ways.
  • step S110 and step S210 refer to step S110 and step S210.
  • the parsing of each description information can be the same as the parsing method of user description information in the foregoing embodiment. That is, the conditional sentences and the existence relations in the conditional sentences are obtained by parsing each description information. You can refer to the parsing of the conditional sentences in the user description information and the existence relations between the conditional sentences in the foregoing embodiment, which will not be repeated here.
  • Step S320 Construct a description module of the logical tree structure according to the conditional sentence and the existence relationship corresponding to each description information.
  • conditional sentence and the existence relationship corresponding to each description information are the conditional sentence obtained by parsing the description information and the existence relationship between the conditional sentences.
  • each description module is essentially the same in structure and representation as the aforementioned query description module.
  • the query description module generated by each description information is defined as a query module.
  • This step can refer to the same or corresponding steps in the foregoing embodiment, for example, refer to step S120 and step S220, each description module is constructed according to the method of constructing the query description module in the foregoing embodiment, that is, according to the conditional statement corresponding to each description information
  • the description module for constructing the logical tree structure may refer to the description of the query description module for constructing the logical tree structure according to the conditional statement and the existence relationship in the foregoing embodiment; or refer to the conditional statement in the foregoing embodiment as
  • the leaf node uses the existence relationship between the conditional sentences as the root node corresponding to the leaf node to construct the description of the query description module of the logical tree structure.
  • each query description module includes the conditional sentences in the corresponding description information and the corresponding relationship between the conditional sentences, indicating the existence relationship between the conditional sentences in the corresponding description information.
  • Step S330 Combine the description modules corresponding to the respective description information into the query description module of the logical tree structure according to the existing relationship between the respective description information.
  • Each description module can be combined into a query description module with a logical tree structure, the logical tree structure is consistent with the logical tree structure in each description module, and the query description module includes all the existence relationships between the conditional sentences in the description information.
  • each description module can be used as a conditional statement to construct a query description module according to the relationship between the description information corresponding to each description module.
  • each description module can be used as a conditional statement to construct a query description module according to the relationship between the description information corresponding to each description module.
  • different description modules can be used as leaf nodes, and the relationship between the description modules is used as the root node corresponding to the leaf node, or in other words, to describe The existence relationship between modules is used as the root node corresponding to the leaf node where the module is described.
  • the user description information includes the first description information, the second description information, and the existence relationship between the first description information and the second description information as an example for description.
  • the parsing of the conditional sentences and the existence relationship between the conditional sentences in the received user description information; according to the conditional sentences and the existence relationship, the query description module of the logical tree structure is constructed, as shown in FIG. 6, which may include:
  • Step S321 Parse the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence, and analyze the second conditional sentence in the second description information and the second existence relationship between the second conditional sentence .
  • the first description information and the second description information are different description information in the user description information.
  • the first description information includes conditional sentences and the existence relationship between the conditional sentences, the conditional sentence in the first description information is defined as the first conditional sentence, and the existence relationship between the conditional sentences in the first description information is defined as the first existence relation.
  • the second description information includes conditional sentences and the existence relationship between the conditional sentences, the conditional sentence in the second description information is defined as the second conditional sentence, and the existence relationship between the conditional sentences in the second description information is defined as the second existence relation.
  • the first conditional statement in the first description information and the first relationship between the first conditional statement can be analyzed, and the second description information can be parsed The second conditional sentence in and the second existence relationship between the second conditional sentence.
  • parsing the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence refer to the same or corresponding steps in the foregoing embodiment, such as step S110 and step S210.
  • the parsing of the first description information may be the same as the parsing of the user description information in the foregoing embodiment.
  • parsing the second conditional sentence in the second description information and the second existence relationship between the second conditional sentence refer to the same or corresponding steps in the foregoing embodiment, such as step S110 and step S210.
  • the parsing of the second description information can be the same as the parsing of the user description information in the foregoing embodiment.
  • Step S331 Construct a first description module of the logical tree structure according to the first conditional sentence and the first existence relationship; construct a second description module of the logical tree structure according to the second conditional sentence and the second existence relationship Describe the module.
  • the first description module is a query description module constructed based on the first conditional sentence and the first existence relationship
  • the second description module is constructed based on the second conditional sentence and the second existence relationship.
  • Query description module For the specific construction methods of the first description module and the second description module, please refer to the same or corresponding steps in the foregoing embodiment. For example, refer to the description of the foregoing step S120 and step S220 for details, according to the manner of constructing the query description module in the foregoing embodiment Construct the first description module and the second description module.
  • Step S332 Combine the first description module and the second description module into the query description module of the logical tree structure according to the existing relationship between the first description information and the second description information.
  • the first description module and the second description module can be respectively used as conditional statements, and the query description module is constructed according to the relationship between the description information corresponding to each description module.
  • the query description module is constructed according to the relationship between the description information corresponding to each description module.
  • the logical tree structures in the first description module, the second description module, and the query description module in this step are consistent, for example, all have a binary tree structure.
  • Step S340 Select users who meet the conditions of the query description module from the target database.
  • This step can refer to the same or corresponding steps in the foregoing embodiments, and details are not described herein again.
  • the user description information may include different description information, and the conditions of the users to be selected are respectively restricted.
  • Different description information can be combined with the generated query description module for user selection, which can effectively expand the description method, submission terminal and input unit of the description information, improve the scalability of the user selection operation, and also improve the selection based on different description information. The efficiency of user selection.
  • the generated multiple query description modules can be combined according to the existence relationship, so as to effectively expand the condition limit of the user to be selected in actual use.
  • the method provided in the embodiment of the present application combines multiple query description modules in a manner that also includes:
  • Step S410 Parse the conditional sentences in the received user description information and the existence relationship between the conditional sentences.
  • Step S420 Construct a query description module of a logical tree structure according to the conditional sentences and the existence relationship, where the query description module represents the existence relationship between the conditional sentences.
  • step S410 and step S420 reference may be made to the same or corresponding steps in the foregoing embodiment, which will not be repeated here.
  • Step S430 Receive one or more query description modules.
  • query description modules produced by other devices such as servers or terminals may also be received.
  • the method for generating the received query description module may be the same as that in the foregoing embodiment of the present application.
  • the logical tree structure of the received query description module may be the same as the logical tree structure of the currently generated query description module.
  • step S430 is not limited with respect to step S410 and step S420.
  • Step S440 Combine the received query description module and the currently generated query description module into the query description of the logical tree structure according to the existing relationship between the one or more query description modules and the currently generated query description module Module, used to select users.
  • the existence relationship between one or more query description modules and the currently generated query description module can be sent by other devices or terminals; can be received synchronously with the received query description module; or can be based on default conditions Generated, for example, each query description module exists by default, or exists at the same time.
  • each query description module includes the received query description module and the currently generated query description module are combined to generate a new query description module.
  • the manner in which each query description module generates a query description module having a logical tree structure can refer to the same or corresponding steps in the foregoing embodiment. For example, consider each query description module as a conditional statement, and construct a logical tree structure query description module based on the relationship between each query description module, and the constructed query description module includes all query description modules corresponding to the users
  • the conditional sentences and the existence relationship between the conditional sentences in the description information indicate the existence relationship between each conditional sentence.
  • the received query description module is another query module as an example for description.
  • another query description module may be received; the other query description module and the query description module are combined into a new query description module with a logical tree structure, which is used to select users.
  • Step S450 Select users who meet the conditions of the query description module from the target database.
  • This step can refer to the same or corresponding steps in the foregoing embodiments, and details are not described herein again.
  • the query description modules of the logical tree structure can be seamlessly combined, multiple combined, or crossed. After any form of user description information is converted into the query description module of the logical tree structure, they can freely interact with other users.
  • the combination of description information can be queried under the same query engine, which is very conducive to the subsequent expansion of new user selection modes and new user description information, which effectively improves the scalability of user selection operations and greatly improves the flexibility of trapping people It satisfies the needs of business parties who need to select users for the combination of various description information. Different business parties can also be combined with each other, positioning the crowd more accurately, and the trapping conditions are easier to understand.
  • each user group corresponds to a characteristic, which means that all users in the user group have characteristics corresponding to the user group.
  • the characteristics corresponding to the multiple user groups are included in the user description information, and the existence relationship between the characteristics corresponding to the multiple user groups is simultaneous.
  • the query description module generated according to the user description information selects the users that are owned by each user group. For the selected users, one of the multiple user groups is reserved, and the other user groups are deleted. Duplicate user groups.
  • the first characteristic is a characteristic of users in the first user group
  • the second characteristic is a characteristic of users in the second user group.
  • the conditional sentence obtained by parsing the user description information includes a first feature and a second feature, and the existence relationship between the first feature and the second feature is simultaneous. After selecting users meeting the conditions of the query description module, users meeting the conditions of the query description module can be deleted from the first user group, or users meeting the conditions of the query description module can be deleted from the second user group Users, thereby de-duplicating the first user group and the second user group.
  • An embodiment of the present application also provides a user selection device 500.
  • the device includes: a parsing unit 510 for parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences
  • the construction unit 520 is used to construct a query description module of a logical tree structure according to the conditional sentence and the existence relationship, and the query description module represents the existence relationship between the conditional sentences;
  • the selection unit 530 is used to select satisfying conditions from the target database
  • the query describes the user of the condition of the module.
  • the construction unit 520 may be used to construct the query description module of the logical tree structure by using conditional sentences as leaf nodes and the existence relationship between the conditional sentences as the root nodes corresponding to the leaf nodes.
  • the logical tree structure is a logical binary tree.
  • the existence relationship includes simultaneous existence or alternative existence.
  • the user description information includes multiple description information and an existing relationship between the multiple description information.
  • the parsing unit 510 can be used to separately analyze the conditional sentences in each description information and the existence relationship between the conditional sentences; the construction unit 520 can be used to construct the logical tree structure according to the conditional sentences and the existence relationship corresponding to each description information The description module; according to the relationship between the various description information, the description module corresponding to each description information is combined into the query description module of the logical tree structure.
  • the user description information includes first description information, second description information, and an existing relationship between the first description information and the second description information.
  • the parsing unit 510 may be used to parse the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence, and parse the second conditional sentence in the second description information and the first conditional sentence between the second conditional sentence. Second, there is a relationship.
  • the constructing unit 520 may be configured to construct the first description module of the logical tree structure according to the first conditional sentence and the first existence relationship; construct the logical tree structure according to the second conditional sentence and the second existence relationship The second description module; according to the existence relationship between the first description information and the second description information, the first description module and the second description module are combined into the query description module of the logical tree structure.
  • the device may further include a module receiving unit for receiving one or more query description modules; the construction unit 520 may be used for communication between the one or more query description modules and the currently generated query description module. If there is a relationship, the received query description module and the currently generated query description module are combined into the query description module of the logical tree structure for selecting users.
  • a module receiving unit for receiving one or more query description modules
  • the construction unit 520 may be used for communication between the one or more query description modules and the currently generated query description module. If there is a relationship, the received query description module and the currently generated query description module are combined into the query description module of the logical tree structure for selecting users.
  • the device may further include a module receiving unit for receiving another query description module; the construction unit 520 may be used for combining the another query description module and the query description module into a new logical tree structure Query description module, used to select users.
  • a module receiving unit for receiving another query description module
  • the construction unit 520 may be used for combining the another query description module and the query description module into a new logical tree structure Query description module, used to select users.
  • the parsing unit 510 may include a semantic recognition subunit, which is used to perform semantic recognition on the user description information, and obtain words and sentences in the user description information existing in a preset condition library as the conditional sentence; information acquisition The subunit is used to obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences; the determining subunit is used to determine the acquired existence according to the preset correspondence between the existence description information and the existence relationship Describe the existence relationship corresponding to the information.
  • a semantic recognition subunit which is used to perform semantic recognition on the user description information, and obtain words and sentences in the user description information existing in a preset condition library as the conditional sentence
  • information acquisition The subunit is used to obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences
  • the determining subunit is used to determine the acquired existence according to the preset correspondence between the existence description information and the existence relationship Describe the existence relationship corresponding to the information.
  • the parsing unit 510 may include a conditional sentence obtaining subunit for obtaining words and sentences corresponding to condition identifiers in the user description information as conditional sentences; a relationship obtaining subunit for obtaining words and sentences corresponding to relationship identifiers between conditional sentences As the existence relationship between conditional statements.
  • the selection unit 530 may include a traversal subunit for performing subsequent traversal on the query description module to generate a query sentence; and the selection subunit for selecting a user according to the query sentence.
  • the selecting unit 530 may be configured to select users who meet the conditions of the query description module from a target database, and the target database includes user data updated in real time.
  • the user data includes user behavior characteristics of each user, and the user behavior characteristics are generated by the user's operation of the electronic device.
  • the conditional sentence obtained by parsing the user description information includes a first feature and a second feature, the existence relationship between the first feature and the second feature is simultaneous, and the first feature is the first feature.
  • the device may further include a deleting unit for deleting users satisfying the condition of the query description module from the first user group; or deleting users satisfying the condition of the query description module from the second user group.
  • User behavior characteristics which are rapidly changing and complex characteristics, need to be stored in the Hive server, while portrait tags and other related characteristics used to represent user attribute information are usually stored in the ElasticSearch server.
  • the user selection method, device, server, and storage medium provided in the embodiments of this application are based on the user
  • the conditional sentences and existence relationships in the description information can build a query description module with a logical tree structure. You can also use the Presto engine to skip the ElasticSearch server and directly query the data of the user portrait tags in the Hive server, and combine the portrait tags with user behavior characteristics. search result.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
  • Each module can be configured in different electronic devices, and can also be configured in the same electronic device, which is not limited in the embodiment of the present application.
  • FIG. 9 shows a structural block diagram of a server 600 provided by an embodiment of the present application.
  • the electronic device may include one or more processors 610 (only one is shown in the figure), a memory 620, and one or more programs.
  • the one or more programs are stored in the memory 620 and configured to be executed by the one or more processors 610.
  • the one or more programs are executed by the processor to execute the methods described in the foregoing embodiments.
  • the processor 610 may include one or more processing cores.
  • the processor 610 uses various interfaces and lines to connect various parts of the entire server 600, and executes the server by running or executing instructions, programs, code sets, or instruction sets stored in the memory 620, and calling data stored in the memory 620. 600's various functions and processing data.
  • the processor 610 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 610 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing the display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 610, but may be implemented by a communication chip alone.
  • the memory 620 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 620 may be used to store instructions, programs, codes, code sets, or instruction sets.
  • the memory 620 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the foregoing method embodiments, and the like.
  • the data storage area can also be the data created by the electronic device in use.
  • FIG. 10 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable storage medium 700 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 700 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 700 has a storage space for the program code 710 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products.
  • the program code 710 may be compressed in a suitable form, for example.

Abstract

The present application relates to the technical field of information screening, and disclosed are a user selection method and device, and a server and a storage medium. The method comprises: parsing conditional statements of received user description information and an existential relationship of the conditional statements; constructing a query description module having a logical tree structure according to the conditional statements and the existential relationship, the query description module indicating the existential relationship of the conditional statements; and selecting, from a target database, users satisfying the conditions of the query description module. According to the technical solution, users satisfying the conditions of the query description module can be directly selected, so that the efficiency of selection is improved.

Description

用户选取方法、装置、服务器及存储介质User selection method, device, server and storage medium 技术领域Technical field
本申请涉及信息筛选技术领域,更具体地,涉及一种用户选取方法、装置、服务器及存储介质。This application relates to the technical field of information screening, and more specifically, to a user selection method, device, server, and storage medium.
背景技术Background technique
用户在通过电子设备与服务器进行交互的过程中,会产生大量的数据,这些数据可以表征用户的特征,从而可以根据这些数据选取到具有指定特征的用户。相关技术中,在基于多个条件进行用户选取时,分别选取各个条件对应的用户,再根据分别选取到的用户进行筛选,数据处理量较大,处理效率低。When the user interacts with the server through the electronic device, a large amount of data is generated, and these data can characterize the characteristics of the user, so that users with specified characteristics can be selected based on the data. In the related art, when users are selected based on multiple conditions, users corresponding to each condition are selected separately, and then filtered according to the users selected respectively, the amount of data processing is relatively large, and the processing efficiency is low.
发明内容Summary of the invention
鉴于上述问题,本申请提出了一种用户选取方法、装置、服务器及存储介质,以改善上述问题。In view of the above-mentioned problems, this application proposes a user selection method, device, server and storage medium to improve the above-mentioned problems.
第一方面,本申请实施例提供了一种用户选取方法,所述方法包括:解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系;从目标数据库选取满足所述查询描述模块的条件的用户。In the first aspect, an embodiment of the present application provides a user selection method, the method includes: parsing conditional sentences in the received user description information and the existence relationship between the conditional sentences; according to the conditional sentences and the existence relationship, Construct a query description module of a logical tree structure, where the query description module represents the existence relationship between conditional sentences; select users who meet the conditions of the query description module from the target database.
第二方面,本申请实施例提供了一种用户选取装置,所述装置包括解析单元,用于解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;构建单元,用于根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系;选取单元,用于从目标数据库选取满足所述查询描述模块的条件的用户。In a second aspect, an embodiment of the present application provides a user selection device. The device includes a parsing unit for parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences; the building unit is used for According to the conditional sentences and the existence relationship, a query description module of a logical tree structure is constructed. The query description module represents the existence relationship between the conditional sentences; user.
第三方面,本申请实施例提供了一种服务器,包括:一个或多个处理器;存储器;一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被所述处理器执行用于执行上述的方法。In a third aspect, an embodiment of the present application provides a server, including: one or more processors; a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to Executed by the one or more processors, and the one or more programs are executed by the processor to execute the above-mentioned method.
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机 可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium in which program code is stored, and the program code can be invoked by a processor to execute the above-mentioned method.
本申请实施例提供的用户选取方法、装置、服务器及存储介质,基于用户描述信息中的条件语句以及条件语句之间的存在关系构建查询描述模块,从而可以直接选取满足查询描述模块的条件的用户,提高了选取效率。The user selection method, device, server, and storage medium provided in the embodiments of the present application construct a query description module based on the conditional sentences in the user description information and the existence relationship between the conditional sentences, so that users who meet the conditions of the query description module can be directly selected , Improve the efficiency of selection.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
图1示出了本申请一实施例提供的用户选取方法的流程图。Fig. 1 shows a flowchart of a user selection method provided by an embodiment of the present application.
图2示出了本申请另一实施例提供的用户选取方法的流程图。Fig. 2 shows a flowchart of a user selection method provided by another embodiment of the present application.
图3示出了本申请一实施例提供的查询描述模块的二叉树结构示意图。FIG. 3 shows a schematic diagram of a binary tree structure of a query description module provided by an embodiment of the present application.
图4示出了本申请另一实施例提供的查询描述模块的二叉树结构示意图。FIG. 4 shows a schematic diagram of a binary tree structure of a query description module provided by another embodiment of the present application.
图5示出了本申请又一实施例提供的用户选取方法的流程结构图。Fig. 5 shows a flow structure diagram of a user selection method provided by another embodiment of the present application.
图6示出了本申请又一实施例提供的用户选取方法的部分步骤的流程结构图。Fig. 6 shows a flow structure diagram of some steps of a user selection method provided by another embodiment of the present application.
图7示出了本申请再一实施例提供的用户选取方法的流程图。Fig. 7 shows a flowchart of a user selection method provided by still another embodiment of the present application.
图8示出了本申请实施例提供的用户选取装置的功能模块图。Fig. 8 shows a functional module diagram of a user selection device provided by an embodiment of the present application.
图9示出了本申请实施例提供的服务器的结构框图。Fig. 9 shows a structural block diagram of a server provided by an embodiment of the present application.
图10是本申请实施例的用于保存或者携带实现根据本申请实施例的用户选取方法的程序代码的存储单元。FIG. 10 is a storage unit for storing or carrying program code for implementing the user selection method according to the embodiment of the present application according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application.
用户在通过电子设备与服务器的交互过程中,会产生大量的数据,从这些数据可以分析出用户所具有的特征,用户的特征可以表明用户的喜好、性格、财务状况、家庭状态、出行方式、交友圈等一种或多种用户信息。例如,特征可以是,从用户所注册的信息或者其他方式确定的用户的年龄、性别、职业、星座、生日等用户的属性信息,可以通过画像标签表示;特征也可以是,用户 对电子设备的操作所产生的用户行为特征,如用户打开某软件的次数、浏览某商品的次数、浏览某类商品的数量、下载某程序的时间、一周内的购物金额、一周使用某软件的购物次数等。其中,每个用户的属性信息可以是变化较小的信息,如通常是至少间隔预设时长才可能发生变化,例如,对于同一用户性别、星座、生日等基本不变,年龄、职业等变化较慢,通常需要隔很长时间才会产生变化。用户行为特征有用户操作电子设备产生,用户对电子设备的操作不断进行,则用户行为特征变化较快,如通常在一个时间周期内,如一天,会产生变化。In the process of interaction between the user and the server through the electronic device, a large amount of data will be generated. From these data, the characteristics of the user can be analyzed. The characteristics of the user can indicate the user's preferences, personality, financial status, family status, travel mode, One or more types of user information, such as a circle of friends. For example, the feature can be the user’s age, gender, occupation, constellation, birthday, and other user attribute information determined from the information registered by the user or other means, which can be represented by portrait tags; User behavior characteristics generated by the operation, such as the number of times a user opens a certain software, the number of times a certain product is viewed, the number of certain types of goods viewed, the time to download a certain program, the amount of purchases in a week, the number of purchases made using a certain software in a week, etc. Among them, the attribute information of each user can be information with small changes. For example, it is usually possible to change at least at a preset time interval. For example, for the same user, gender, constellation, birthday, etc. are basically unchanged, while changes in age and occupation are relatively constant. Slow, it usually takes a long time to change. The user behavior characteristics are generated by the user operating the electronic device, and the user continues to operate the electronic device, the user behavior characteristics change quickly, such as usually within a time period, such as a day, will change.
同一个用户,可能具有一个或多个特征,根据特征进行条件限定,可以选取到需要选取的用户。若要选取的用户需要满足多个条件,针对每个用户分别根据不同条件进行判断,则每个用户需要进行多次判断,且还需要将不同条件的选取结果进行合并,选取效率较低。The same user may have one or more characteristics, and the conditions are limited according to the characteristics, and the users that need to be selected can be selected. To select users that need to meet multiple conditions, each user needs to be judged according to different conditions, each user needs to make multiple judgments, and the selection results of different conditions need to be combined, which is low in efficiency.
因此,本申请实施例提供了一种用户选取方法、装置、服务器及存储介质,通过将不同的条件语句构建成逻辑树结构的查询描述模块,进行用户选取,对于每个用户可以通过查询描述模块的条件确定是否是需要选取的用户,选取效率较高。下面将通过具体实施例对本申请实施例提供的用户选取方法、装置、服务器及存储介质进行详细说明。Therefore, the embodiments of the present application provide a user selection method, device, server, and storage medium. By constructing different conditional sentences into a query description module of a logical tree structure, user selection is performed. For each user, the query description module can be used The conditions determine whether the user needs to be selected, and the selection efficiency is higher. The user selection method, device, server, and storage medium provided by the embodiments of the present application will be described in detail below through specific embodiments.
请参阅图1,示出了本申请实施例提供的用户选取方法。具体的,该方法包括:Please refer to FIG. 1, which shows a user selection method provided by an embodiment of the present application. Specifically, the method includes:
步骤S110:解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系。Step S110: Parse the conditional sentences in the received user description information and the existence relationship between the conditional sentences.
用户描述信息对要查找哪些用户进行描述,或者说,用户描述信息中包括了所要查找的用户需要满足的条件以及这些条件之间的关系。将用户描述信息中用户需要满足的条件解析为条件语句,条件之间的关系解析为条件语句之间的存在关系。例如,用户描述信息中描述用户应当同时具有特征A以及特征B,则解析获得的条件语句包括A和B,条件语句之间的存在关系为同时存在。The user description information describes which users are to be searched, in other words, the user description information includes the conditions that the users to be searched for need to meet and the relationship between these conditions. The conditions that the user needs to satisfy in the user description information are parsed as conditional sentences, and the relationship between the conditions is parsed as the existence relationship between the conditional sentences. For example, if the user description information describes that the user should have both feature A and feature B, the conditional sentences obtained by analysis include A and B, and the existence relationship between the conditional sentences is simultaneous.
步骤S120:根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系。Step S120: Construct a query description module in a logical tree structure according to the conditional sentences and the existence relationship, where the query description module represents the existence relationship between the conditional sentences.
将条件语句和条件语句之间的存在关系用于构建查询描述模块,该查询描述模块可以是基于逻辑树进行构建,具有逻辑树结构。在查询描述模块中,包括条件语句以及条件语句之间的存在关系,且通过存在关系将条件语句进行组合连接,表示出了所具有的条件语句以及不同的条件语句之间的存在关系。The existence relationship between the conditional statement and the conditional statement is used to construct a query description module, which can be constructed based on a logical tree and has a logical tree structure. In the query description module, it includes conditional statements and the existence relationship between conditional statements, and the conditional statements are combined and connected through the existence relationship, indicating the existing conditional statements and the existence relationship between different conditional statements.
步骤S130:从目标数据库选取满足所述查询描述模块的条件的用户。Step S130: Select users who meet the conditions of the query description module from the target database.
在进行用户选取时,可以基于查询描述模块中条件语句之间的存在关系,从目标数据库中选择满足查询描述模块中条件语句对应的条件,以及满足各条件语句之间的存在关系的用户。When selecting users, based on the existence relationship between the conditional statements in the query description module, users who satisfy the conditions corresponding to the conditional statements in the query description module and the users who satisfy the existence relationship between the conditional statements can be selected from the target database.
在本申请实施例中,通过将用户描述信息中条件语句以及条件语句之间存在关系构建为逻辑树结构的查询描述模块,从而在用户选择时,可以选择满足查询描述模块的条件的用户,提高选取效率。In the embodiment of the present application, the conditional statement and the relationship between the conditional statement in the user description information are constructed as a query description module of a logical tree structure, so that when the user selects, users who meet the conditions of the query description module can be selected, which improves Choose efficiency.
本申请实施例提供的实施例中,包括对查询描述的具体构建方式。具体额,请参见图2,该实施例提供的方法包括:The embodiments provided in the embodiments of the present application include specific construction methods for query descriptions. For details, please refer to Figure 2. The method provided in this embodiment includes:
步骤S210:解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系。Step S210: Analyze the conditional sentences in the received user description information and the existence relationship between the conditional sentences.
当需要选取用户时,可以通过用户描述信息对要选取的用户进行描述,限定要选取的用户所需要满足的条件以及各条件之间的关系。例如,在发起用户选取请求的选取终端,通过选择特征作为条件以及设置特征之间的关系作为条件之间的存在关系;或者发起用户选取请求的选取终端,通过自然语言描述用户所需要满足的条件,该描述作为用户描述信息进行解析。When a user needs to be selected, the user to be selected can be described through the user description information, and the conditions that the selected user needs to meet and the relationship between the conditions are limited. For example, in the selection terminal that initiates the user selection request, select features as the condition and set the relationship between the features as the existence relationship between the conditions; or the selection terminal that initiates the user selection request describes the conditions that the user needs to meet in natural language , The description is parsed as user description information.
另外,在本申请实施例中,获得的条件语句之间的存在关系,包括单条的条件语句之间的存在关系,还包括组合后的条件语句与其他条件语句之间的存在关系。其中,根据条件语句之间的存在关系可以进行条件语句的组合,获得组合后的条件语句。例如,条件语句包括A、B、C和D,条件语句之间的存在关系包括条件语句A和B同时存在,条件语句C和D同时存在,组合后的条件语句A and B与组合后的条件语句C and D择一存在,则组合后的条件语句A and B与组合后的条件语句C and D组合后的条件语句为(A and B)or(C and D)。可以理解的,择一存在表示任何一个存在,都满足条件限定。In addition, in the embodiment of the present application, the obtained existence relationship between conditional sentences includes the existence relationship between a single conditional sentence, and also includes the existence relationship between a combined conditional sentence and other conditional sentences. Among them, the conditional statements can be combined according to the existence relationship between the conditional statements, and the combined conditional statement can be obtained. For example, conditional statements include A, B, C, and D. The relationship between conditional statements includes the existence of conditional statements A and B at the same time, conditional statements C and D exist at the same time, and the combined conditional statement A and B and the combined condition The sentence C and D alternatively exists, then the combined conditional sentence A and B and the combined conditional sentence C and D are combined with (A and B) or (C and D). Understandably, alternative existence means that any one exists and meets the conditions.
该用户描述信息可以由选取用户的需求方进行发送,也可以是基于实际业务中,用户需要满足的条件进行生产。在本申请实施例中,用户描述信息的来源并不做限定。The user description information can be sent by the demander who selects the user, or it can be produced based on the conditions that the user needs to meet in the actual business. In the embodiments of the present application, the source of the user description information is not limited.
通过不同描述方式表达的用户描述信息,可以对应有不同的解析方式,获取其中的条件生成条件语句,获取其中条件之间的关系对应生成条件语句之间的存在关系。The user description information expressed through different description methods can correspond to different analysis methods to obtain the conditional generation conditional statement therein, and obtain the relationship between the conditions corresponding to the existence relationship between the generational conditional statements.
条件语句具体包括哪些语句在本申请实施例中并不限定,可以是各种用户特征,如表示用户属性信息的特征,用户行为特征等。具体包括哪些存在关系 在本申请实施例中并不限定,例如同时存在、例如择一存在等。例如,条件语句包括性别为男性以及职业为金融,若男性、金融之间的存在关系为同时存在,表示同时满足性别为男性以及职业为金融的用户,才满足该用户描述信息的限定。The specific sentences included in the conditional sentences are not limited in the embodiments of the present application, and may be various user characteristics, such as characteristics representing user attribute information, user behavior characteristics, and the like. Which existing relationships are specifically included is not limited in the embodiments of the present application, for example, they exist at the same time, for example, they exist alternately. For example, the conditional sentence includes gender as male and occupation as finance. If the existence relationship between male and finance is simultaneous, it means that users whose gender is male and occupation as finance are satisfied at the same time to satisfy the limitation of the user description information.
在一种具体的实施方式中,用户描述信息中可以通过条件标识指示条件语句,通过关系标识指示条件之间的关系。其中,不同条件标识指示的条件语句之间可以包括关系标识指示的关系,该关系标识指示的关系表示该不同的条件标识指示的条件语句之间的关系。In a specific implementation, the user description information may indicate conditional sentences through condition identifiers, and indicate the relationship between conditions through relationship identifiers. The conditional sentences indicated by different condition identifiers may include the relationship indicated by the relationship identifier, and the relationship indicated by the relationship identifier represents the relationship between the conditional sentences indicated by the different condition identifiers.
在该实施方式,解析用户描述信息获得条件语句以及存在关系的方式可以是,获取用户描述信息中条件标识对应的词句作为条件语句;获取条件语句之间关系标识对应的词句作为条件语句之间的存在关系。In this embodiment, the method of parsing the user description information to obtain the conditional sentences and the existence relationship may be to obtain the words and sentences corresponding to the condition identifiers in the user description information as the conditional sentences; and to obtain the words and sentences corresponding to the relationship identifiers between the conditional sentences as the conditional sentences. There is a relationship.
可选的,在该实施方式中,条件标识以及关系标识可以通过特定的字符进行表示。当识别到表示条件标识的字符时,可以确定该字符为条件标识;当识别到表示关系标识的字符时,可以确定该字符为关系标识。Optionally, in this embodiment, the condition identifier and the relationship identifier may be represented by specific characters. When the character representing the condition identifier is recognized, the character can be determined as the condition identifier; when the character representing the relationship identifier is recognized, the character can be determined as the relationship identifier.
可选的,该实施方式中,条件标识以及关系标识可以通过特定的语句结构进行表示。当识别到表示条件标识的语句结构时,可以确定该语句结构中的语句为条件语句;当识别到表示关系标识的语句结构时,可以确定该语句结构中的语句为条件语句之间的存在关系。Optionally, in this implementation manner, the condition identifier and the relationship identifier may be represented by a specific sentence structure. When the sentence structure representing the condition identifier is recognized, the sentence in the sentence structure can be determined to be a conditional sentence; when the sentence structure representing the relationship identifier is recognized, it can be determined that the sentence in the sentence structure is the existence relationship between the conditional sentences .
例如,以字符i表示条件标识,以及字符j表示关系标识。在一种具体的使用场景中,若用户描述信息中的描述为i:A j:and i:B j:and i:C,表示条件语句分别为A、B以及C,A与B之间的存在关系为and,B与C之间的存关系为and,and表示同时存在,即表示同时满足条件A、B和C。For example, the character i represents the condition identifier, and the character j represents the relationship identifier. In a specific usage scenario, if the description in the user description information is i:A j:and i:B j:and i:C, it means that the conditional sentences are A, B, and C, and the difference between A and B The existence relationship is and, and the existence relationship between B and C is and. And represents simultaneous existence, which means that conditions A, B, and C are met at the same time.
在另一种实施方式中,可以通过自然语言描述用户描述信息。在解析用户描述信息时,可以对用户描述信息进行语义识别,根据识别结果中用户描述信息的词句,确定其中表示条件的词句以及表示存在关系的词句,对应生成条件语句以及条件语句之间的存在关系。其中,描述条件语句之间关系的词句,表示的可以是该条件语句之间的存在关系。In another embodiment, the user description information can be described in natural language. When parsing the user description information, the user description information can be semantically recognized. According to the words and sentences of the user description information in the recognition result, the words and sentences that indicate the conditions and the words and sentences that indicate the existence relationship are determined, and the conditional sentences and the existence between the conditional sentences are generated correspondingly relation. Among them, the words and sentences describing the relationship between the conditional sentences may indicate the existence relationship between the conditional sentences.
在该实施方式中,解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系的方式可以是,对用户描述信息进行语义识别,获取用户描述信息中存在于预设条件库中的词句作为所述条件语句;获取描述条件语句之间关系的词句作为条件语句之间的存在描述信息;根据存在描述信息与存在关系之间的预设对应关系,确定获取到的存在描述信息对应的存在关系。In this embodiment, the way of parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences may be to perform semantic recognition on the user description information, and obtain the user description information that exists in the preset condition library The words and sentences of as the conditional sentences; the words and sentences describing the relationship between the conditional sentences are obtained as the existence description information between the conditional sentences; according to the preset correspondence between the existence description information and the existence relationship, it is determined that the acquired existence description information corresponds Relationship.
其中,预设条件库中包括各个条件语句。获取用户描述信息中存在于预设条件库中的词句作为所述条件语句可以是,将语义识别分词所获得的各个词句分别与预设条件库中的词句进行对比,若对于每个分词获得的词句,若预设条件库中存在该词句,表示该词句为一个条件,可以作为一个条件语句。Among them, the preset condition library includes each condition statement. Obtaining the words and sentences that exist in the preset condition database in the user description information as the conditional sentences may be to compare each word and sentence obtained by semantic recognition word segmentation with the words and sentences in the preset condition database respectively, and if the words and sentences obtained for each word segmentation are obtained A phrase, if the phrase exists in the preset condition library, it means that the phrase is a condition and can be used as a conditional sentence.
另外,可选的,可以预先设置有存在描述信息与存在关系之间的预设对应关系。获取描述条件语句之间关系的词句作为条件语句之间的存在描述信息,根据存在描述信息与存在关系之间的预设对应关系,确定获取到的存在描述信息对应的存在关系,可以是,将分词结果中条件语句之外的其他词句作为存在描述信息,并且根据存在描述信息与存在关系之间的预设对应关系,确定获取到的各个存在描述信息分别对应的存在关系。若获取到的存在描述信息对应有存在关系,该存在关系表示的是该存在描述信息所描述的条件语句之间的存在关系;若获取到的存在描述信息未对应有存在关系,表示该存在描述信息没有描述存在关系,丢弃该存在描述信息。In addition, optionally, a preset correspondence relationship between the presence description information and the presence relationship may be preset. Obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences. According to the preset correspondence between the existence description information and the existence relationship, determine the existence relationship corresponding to the acquired existence description information, which can be: Words and sentences other than the conditional sentence in the word segmentation result are used as the existence description information, and the existence relationship corresponding to each acquired existence description information is determined according to the preset correspondence between the existence description information and the existence relationship. If the acquired existence description information corresponds to an existence relationship, the existence relationship represents the existence relationship between the conditional sentences described in the existence description information; if the acquired existence description information does not correspond to the existence relationship, it means the existence description The information does not describe the existence relationship, and the existence description information is discarded.
可选的,可以预先设置有存在词句库,该存在词句库中包括描述条件语句之间存在关系的词句。获取描述条件语句之间关系的词句作为条件语句之间的存在描述信息,根据存在描述信息与存在关系之间的预设对应关系,确定获取到的存在描述信息对应的存在关系,可以是,确定分词结果中条件语句之外的其他词句是否在存在词句库中;对于在存在语句库中的词句,可以作为存在描述信息;根据存在描述信息与存在关系之间的预设对应关系,确定获取到的存在描述信息对应的存在关系,该存在关系表示的是该存在描述信息所描述的条件语句之间的存在关系。其中,可以理解的,对于同一个存在关系,可以通过不同的词句进行描述,则可能不同的存在描述信息对应相同的存在关系,例如“同时”、“和”和“以及”等词语,都可以用于描述同时存在这一存在关系。Optionally, an existing vocabulary and sentence library may be preset, and the existing vocabulary and sentence library includes words and sentences describing the existence relationship between conditional sentences. Obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences. According to the preset correspondence between the existence description information and the existence relationship, determine the existence relationship corresponding to the acquired existence description information, which can be determined Whether other words and sentences other than the conditional sentence in the word segmentation result are in the existence word and sentence database; for the words and sentences in the existence sentence database, it can be used as the existence description information; according to the preset correspondence between the existence description information and the existence relationship, it is determined to obtain The existence relationship corresponding to the existence description information, and the existence relationship represents the existence relationship between the conditional sentences described by the existence description information. Among them, it is understandable that the same existence relationship can be described by different words and sentences, and different existence description information may correspond to the same existence relationship, such as words such as "simultaneous", "and" and "and". Used to describe the existence relationship that exists at the same time.
步骤S220:以条件语句作为叶子节点,以条件语句之间的存在关系作为叶子节点对应的根节点,构建所述逻辑树结构的查询描述模块。Step S220: Use conditional sentences as leaf nodes, and use the existence relationship between conditional sentences as root nodes corresponding to the leaf nodes to construct the query description module of the logical tree structure.
在本申请实施例中,可以根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系。构建的查询描述模块可以是软件代码模块,或者是其他具有特定表达方式的模块。构建逻辑树结构的查询描述模块时,通过根节点表示存在关系,该根节点包括逻辑树结构中所有可以作为根节点的节点。不存在子节点的叶子节点作为条件语句。根节点表示的是其子节点对应的条件语句之间的存在关系。In the embodiment of the present application, a query description module of a logical tree structure can be constructed according to the conditional sentences and the existence relationship, and the query description module represents the existence relationship between the conditional sentences. The constructed query description module can be a software code module or other modules with specific expressions. When constructing the query description module of the logical tree structure, the root node indicates the existence relationship, and the root node includes all nodes in the logical tree structure that can be used as root nodes. Leaf nodes that do not have child nodes are used as conditional statements. The root node represents the existence relationship between the conditional sentences corresponding to its child nodes.
在本申请实施例中,具体为哪种逻辑树并不限定,本申请实施例主要以二 叉树为例进行说明。In the embodiment of the present application, the specific logic tree is not limited, and the embodiment of the present application mainly uses a binary tree as an example for description.
在一种具体的实施场景中,若条件语句包括A、B、C和D,条件语句A、B、C和D同时存在,或者条件语句A和条件语句B同时存在,条件语句A和条件语句B组成的条件语句和条件语句C同时存在,条件语句A、B和C组成的条件语句和条件语句D同时存在。and表示同时存在,以条件语句包括A、B、C和D分别作为叶子节点。条件语句A和B之间的根节点为and,组合后的条件语句(A and B)作为一个子树,条件语句C作为另一子树,条件语句(A and B)以及条件语句C之间的根节点为and;组合后的条件语句((A and B)and C)作为一个字数条件语句D作为另一子树,条件语句((A and B)and C)以及条件语句D之间的根节点为and,形成的逻辑二叉树如图3所示,获得的查询描述模块可以是(((A and B)and C)and D)。In a specific implementation scenario, if the conditional statement includes A, B, C, and D, and the conditional statement A, B, C, and D exist at the same time, or the conditional statement A and the conditional statement B exist at the same time, the conditional statement A and the conditional statement The conditional statement composed of B and the conditional statement C exist at the same time, and the conditional statement composed of the conditional statements A, B and C and the conditional statement D exist at the same time. and means that it exists at the same time, and the conditional sentence includes A, B, C, and D as leaf nodes. The root node between the conditional statement A and B is and, the combined conditional statement (A and B) is used as a subtree, the conditional statement C is used as another subtree, and the conditional statement (A and B) is between the conditional statement (A and B) and the conditional statement C The root node of is and; the combined conditional sentence ((A and B) and C) is used as a word count conditional sentence D as another subtree, the conditional sentence ((A and B) and C) and the conditional sentence D The root node is and, and the logical binary tree formed is shown in Figure 3. The query description module obtained can be (((A and B) and C) and D).
或者说,在该实施场景中,条件语句A、B、C和D同时存在,则条件语句A和条件语句B分别作为根节点and的子节点形成一个子树,以条件语句C作为另一个子树,以and作为根节点,形成表示(A and B)and C的新的子树,该新的子树作为二叉树的左子树,条件语句D作为二叉树的右子树,and作为二叉树的根节点,形成如图3所示的二叉树结构,获得的描述模块可以是(((A and B)and C)and D)。In other words, in this implementation scenario, conditional statements A, B, C, and D exist at the same time, then conditional statement A and conditional statement B respectively serve as the child nodes of the root node and form a subtree, and conditional statement C is the other child The tree, with and as the root node, forms a new subtree representing (A and B)and C, the new subtree is used as the left subtree of the binary tree, the conditional statement D is the right subtree of the binary tree, and and is the root of the binary tree The nodes form a binary tree structure as shown in Fig. 3, and the obtained description module can be (((A and B) and C) and D).
或者是,在另一种实施场景中,条件语句包括A、B、C和D,条件语句之间的存在关系包括条件语句A和B同时存在,条件语句C和D同时存在,组合后的条件语句A and B与组合后的条件语句C and D择一存在。则以存在通过“or”表示。则条件语句A、B、C和D构建的二叉树如图4所示,具有该二叉树结构的查询描述模块可以是(A and B)or(C and D)。Or, in another implementation scenario, the conditional statements include A, B, C, and D. The relationship between the conditional statements includes the existence of conditional statements A and B at the same time, and the conditional statements C and D exist at the same time. The combined condition Sentence A and B and the combined conditional sentence C and D alternatively exist. It is expressed by "or" in existence. The binary tree constructed by conditional sentences A, B, C, and D is shown in Fig. 4, and the query description module with the binary tree structure can be (A and B) or (C and D).
另外,可选的,在本申请实施例中,查询描述模块中每种存在关系可以有相应的代码进行描述,若获取到的存在关系与用于描述存在关系的代码表达方式不同,还可以将获取到的存在关系转换为对于的代码。例如,获取到的存在关系为同时存在,表示同时存在的代码为“and”,则将“同时存在”这一存在关系转换为“and”。In addition, optionally, in the embodiment of the present application, each existence relationship in the query description module can be described by a corresponding code. If the acquired existence relationship is different from the code expression used to describe the existence relationship, you can also The obtained existence relationship is converted into the corresponding code. For example, if the obtained existence relationship is simultaneous existence, and the code indicating simultaneous existence is "and", then the existence relationship "simultaneous existence" is converted to "and".
步骤S230:从目标数据库选取满足所述查询描述模块的条件的用户。Step S230: Select users who meet the conditions of the query description module from the target database.
在本申请实施例中,用于进行用户选取的用户数据为一个数据库中的数据,定义该数据库为目标数据库。In the embodiment of the present application, the user data used for user selection is data in a database, and the database is defined as the target database.
目标数据库中包括各个用户以及每个用户所满足的条件,根据查询描述模块对用户从目标数据库中进行选取,则可以选取到满足用户描述信息所限定的 条件的用户。可以理解的,满足所述查询描述模块的条件的用户,表示该用户满足查询描述模块中条件语句对应的条件,以及该用户满足条件语句对应的条件之间的存在关系。The target database includes each user and the conditions that each user meets. According to the query description module to select users from the target database, users that meet the conditions defined by the user description information can be selected. It is understandable that a user who satisfies the condition of the query description module means that the user satisfies the condition corresponding to the conditional sentence in the query description module, and the existence relationship between the user who satisfies the condition corresponding to the conditional sentence.
其中,具体选取方式可以是,对于每一个用户,判断其是否满足查询描述模块所描述的条件。具体判断方式在本申请实施例中并不限定。例如,查询描述模块为(((A and B)and C)and D),其描述的条件为同时满足条件A、B、C和D,则对于每一个用户,可以判定其是否同时满足条件A、B、C和D,若满足,则选取该用户;若不满足,则不选取该用户。又如,查询描述模块为(((A and B)and C)and D),则可以从目标数据库中选取所有满足条件A的用户,再从满足条件A的用户中选取满足条件B的用户,获得满足条件A和B的用户;从满足条件A和B的用户中选取满足条件C的用户,获得满足条件A、B和C的用户;进一步从足条件A、B和C的用户中选取满足条件D的用户,从而选取到同时满足条件A、B、C和D的用户。Among them, the specific selection method may be to determine whether each user satisfies the conditions described by the query description module. The specific judgment method is not limited in the embodiment of the present application. For example, the query description module is (((A and B) and C) and D), and the condition described is that conditions A, B, C, and D are met at the same time, and then for each user, it can be determined whether it meets condition A at the same time , B, C and D, if they are satisfied, the user is selected; if not, the user is not selected. For another example, if the query description module is (((A and B) and C) and D), all users meeting condition A can be selected from the target database, and then users meeting condition B can be selected from users meeting condition A, Obtain users who meet conditions A and B; select users who meet condition C from users who meet conditions A and B, and obtain users who meet conditions A, B, and C; further select users who meet conditions A, B, and C The users of condition D are selected to meet the conditions of A, B, C, and D at the same time.
从而,从目标数据库中可以选取到所有满足查询描述模块的条件的用户。例如,目标数据库为Hive,目标数据库中的用户数据为Hive中存储的用户数据。在Hive存储的用户数据中进行用户选取,异步地将选取结果存入Hive表中,可以获得Hive中存储的所有满足查询描述模块的条件的用户,方便后续导出时使用。其中,用户可以通过用户身份信息进行表示,如电子设备的设备标识(imei)。Thus, all users who meet the conditions of the query description module can be selected from the target database. For example, the target database is Hive, and the user data in the target database is user data stored in Hive. User selection is performed from the user data stored in Hive, and the selection results are stored in the Hive table asynchronously, and all users who meet the conditions of the query description module stored in Hive can be obtained, which is convenient for subsequent export. Among them, the user can be represented by user identity information, such as the device identification (imei) of the electronic device.
可选的,在本申请实施例中,查询描述模块表示条件语句之间的存在关系,可以并非一个完整的查询语句。因此,在本申请实施例中,生成查询描述模块后,根据查询描述模块选取满足所述查询描述模块的条件的用户时,可以根据查询描述模块生成查询语句,该查询语句通过完整的查询代码描述查询描述模块包括的条件语句之间的存在关系。根据生成的查询语句选取用户。Optionally, in the embodiment of the present application, the query description module indicates the existence relationship between conditional sentences, and may not be a complete query sentence. Therefore, in the embodiment of the present application, after the query description module is generated, when users who meet the conditions of the query description module are selected according to the query description module, a query statement can be generated according to the query description module, and the query statement is described by a complete query code Query the existence relationship between the conditional statements included in the description module. Select users based on the generated query statement.
可选的,在本申请实施例中,对于逻辑树结构的查询描述模块,可以通过对所述查询描述模块进行后续遍历,生成查询语句。Optionally, in the embodiment of the present application, for the query description module of the logical tree structure, a query statement may be generated by subsequent traversal of the query description module.
可选的,该目标数据库中包括实时更新的用户数据。若新产生有用户数据,则将新产生的用户数据存入目标数据库。例如,对于某用户,若开启了某软件一次,则该软件启动次数这一用户行为特征增加一,在用户行为特征中,用户对应的该软件开启次数加一。Optionally, the target database includes real-time updated user data. If user data is newly generated, the newly generated user data is stored in the target database. For example, for a user, if a certain software is started once, the user behavior characteristic of the number of times the software is started increases by one, and among the user behavior characteristics, the number of times the software is started corresponding to the user increases by one.
另外,用户数据包括的可以是各个用户的用户行为特征。由于用户行为特征变化较快,而目标数据库中用户数据实时更新,可以保证选取到的用户为更 具有时效性的用户,查找结果更精准。In addition, user data may include user behavior characteristics of each user. Because user behavior characteristics change rapidly, and user data in the target database is updated in real time, it can ensure that the selected users are more time-sensitive users, and the search results are more accurate.
可选的,在本申请实施例中,生成查询描述模块以及选取用户的可以是相同的执行主体,也可以是不相同的执行主体。若为不相同的执行主体,生成查询描述模块的执行主体可以将该查询描述模块发送给选取用户的执行主体,由选取用户的执行主体根据查询描述模块进行用户选取。Optionally, in this embodiment of the present application, the generation of the query description module and the selection of the user may be the same execution subject, or may be different execution subjects. If it is a different execution subject, the execution subject that generates the query description module can send the query description module to the execution subject of the selected user, and the execution subject of the selected user selects the user according to the query description module.
在本申请实施例中,条件语句作为叶子节点,以条件语句之间的存在关系作为叶子节点对应的根节点,构建所述逻辑树结构的查询描述模块,从而在用户选择时,可以选择满足查询描述模块的条件的用户,提高选取效率。In the embodiment of the present application, the conditional sentence is used as a leaf node, and the relationship between the conditional sentences is used as the root node corresponding to the leaf node to construct the query description module of the logical tree structure, so that when the user selects, he can choose to satisfy the query The user who describes the conditions of the module improves the efficiency of selection.
另外,在本申请实施例中,由于查询描述模块具有逻辑树结构,不同形式的条件都可以作为条件语句与其他条件结合。并且,不同查询描述模块也可以根据彼此之间的存在关系,相互结合,构建为相同逻辑树结构的新的查询描述模块,用于在同一查询引擎下进行用户查询并选取,提升了方案的延展性。因此,本申请实施例提供的用户选取方法中,用户描述信息可以包括多个描述信息以及多个描述信息之间的存在关系,所述解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,可以包括:分别解析每个描述信息中的条件语句以及条件语句之间的存在关系;根据每个描述信息对应的条件语句以及存在关系,构建所述逻辑树结构的描述模块;根据各个描述信息之间的存在关系,将各个描述信息分别对应的描述模块结合为所述逻辑树结构的查询描述模块。请参见图5,该方法可以包括:In addition, in the embodiment of the present application, since the query description module has a logical tree structure, conditions of different forms can be used as conditional sentences to be combined with other conditions. In addition, different query description modules can also be combined with each other according to their existing relationships to build a new query description module with the same logical tree structure for user query and selection under the same query engine, which improves the extension of the solution sex. Therefore, in the user selection method provided by the embodiment of the present application, the user description information may include multiple description information and the relationship between the multiple description information, and the parsing of the conditional sentence in the received user description information and one of the conditional sentences According to the conditional statement and the existence relationship, constructing the query description module of the logical tree structure may include: separately analyzing the conditional statement in each description information and the existence relationship between the conditional statements; according to each description information Corresponding conditional sentences and existence relationships construct a description module of the logical tree structure; according to the existence relationship between each description information, the description modules corresponding to each description information are combined into the query description module of the logical tree structure. Referring to Figure 5, the method may include:
步骤S310:分别解析每个描述信息中的条件语句以及条件语句中的存在关系。Step S310: Parse the conditional sentences in each description information and the existence relationship in the conditional sentences respectively.
每个描述信息本质上是一个用户描述信息,为了便于描述,定义为描述信息。接收到的用户描述信息中的各个描述信息可以来源于不同的设备,也可以来源于同一个终端。例如,以用户的特征作为条件语句,在同一个终端中,由于属性行为特征的复杂性和易变性,为了降低特征设置难度,属于属性信息的特征以及用户行为特征在不同的操作单元进行设置,则可以获取到与属性信息的特征相关的描述信息,以及与用户行为特征相关的描述信息。另外,各个描述信息可以以相同或不同的方式进行描述。Each description information is essentially a user description information. For ease of description, it is defined as description information. Each description information in the received user description information can originate from different devices, or can originate from the same terminal. For example, using user characteristics as conditional sentences, in the same terminal, due to the complexity and variability of attribute behavior characteristics, in order to reduce the difficulty of feature setting, the characteristics of attribute information and user behavior characteristics are set in different operation units. Then, the description information related to the characteristics of the attribute information and the description information related to the user behavior characteristics can be obtained. In addition, each description information can be described in the same or different ways.
本步骤可以参见前述实施例中相同或相应的步骤,例如可以参见步骤S110以及步骤S210,对每个描述信息的解析与前述实施例中对用户描述信息的解析方式可以相同。即对每个描述信息解析获取条件语句以及条件语句中的 存在关系,可以参见前述实施例中解析用户描述信息中的条件语句以及条件语句之间的存在关系,在此不再赘述。For this step, refer to the same or corresponding steps in the foregoing embodiment, for example, refer to step S110 and step S210. The parsing of each description information can be the same as the parsing method of user description information in the foregoing embodiment. That is, the conditional sentences and the existence relations in the conditional sentences are obtained by parsing each description information. You can refer to the parsing of the conditional sentences in the user description information and the existence relations between the conditional sentences in the foregoing embodiment, which will not be repeated here.
步骤S320:根据每个描述信息对应的条件语句以及存在关系,构建所述逻辑树结构的描述模块。Step S320: Construct a description module of the logical tree structure according to the conditional sentence and the existence relationship corresponding to each description information.
可以理解的,每个描述信息对应的条件语句以及存在关系,为对该描述信息解析获得的条件语句以及条件语句之间的存在关系。It is understandable that the conditional sentence and the existence relationship corresponding to each description information are the conditional sentence obtained by parsing the description information and the existence relationship between the conditional sentences.
每个描述模块本质上与前述查询描述模块的结构和表示方式相同,为了便于描述,定义每个描述信息生成的查询描述模块为查询模块。本步骤可以参见前述实施例中相同或相应的步骤,例如可以参见步骤S120以及步骤S220,根据前述实施例中构建查询描述模块的方式构建每个描述模块,即根据每个描述信息对应的条件语句以及存在关系,构建所述逻辑树结构的描述模块,可以参见前述实施例中根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块的描述;或者参见前述实施例中以条件语句作为叶子节点,以条件语句之间的存在关系作为叶子节点对应的根节点,构建所述逻辑树结构的查询描述模块的描述。Each description module is essentially the same in structure and representation as the aforementioned query description module. For ease of description, the query description module generated by each description information is defined as a query module. This step can refer to the same or corresponding steps in the foregoing embodiment, for example, refer to step S120 and step S220, each description module is constructed according to the method of constructing the query description module in the foregoing embodiment, that is, according to the conditional statement corresponding to each description information As well as the existence relationship, the description module for constructing the logical tree structure may refer to the description of the query description module for constructing the logical tree structure according to the conditional statement and the existence relationship in the foregoing embodiment; or refer to the conditional statement in the foregoing embodiment as The leaf node uses the existence relationship between the conditional sentences as the root node corresponding to the leaf node to construct the description of the query description module of the logical tree structure.
在本实施例中,每个查询描述模块包括对应的描述信息中条件语句以及条件语句之间的对应关系,表示对应的描述信息中条件语句之间的存在关系。In this embodiment, each query description module includes the conditional sentences in the corresponding description information and the corresponding relationship between the conditional sentences, indicating the existence relationship between the conditional sentences in the corresponding description information.
步骤S330:根据各个描述信息之间的存在关系,将各个描述信息分别对应的描述模块结合为所述逻辑树结构的查询描述模块。Step S330: Combine the description modules corresponding to the respective description information into the query description module of the logical tree structure according to the existing relationship between the respective description information.
各个描述模块可以结合成逻辑树结构的查询描述模块,该逻辑树结构与各个描述模块中的逻辑树结构一致,该查询描述模块包括所有描述信息中条件语句之间的存在关系。Each description module can be combined into a query description module with a logical tree structure, the logical tree structure is consistent with the logical tree structure in each description module, and the query description module includes all the existence relationships between the conditional sentences in the description information.
可选的,在该步骤中,各个描述模块可以作为条件语句,根据各个描述模块对应的描述信息之间的存在关系,构建查询描述模块,具体可以参见前述步骤S120以及步骤S220的描述。Optionally, in this step, each description module can be used as a conditional statement to construct a query description module according to the relationship between the description information corresponding to each description module. For details, please refer to the description of step S120 and step S220.
即可选的,在该实施方式中,在查询描述模块的逻辑树结构中,不同描述模块可以作为叶子节点,以描述模块之间的存在关系作为叶子节点对应的根节点,或者说,以描述模块之间的存在关系作为描述模块所在叶子节点对应的根节点。That is, optionally, in this embodiment, in the logical tree structure of the query description module, different description modules can be used as leaf nodes, and the relationship between the description modules is used as the root node corresponding to the leaf node, or in other words, to describe The existence relationship between modules is used as the root node corresponding to the leaf node where the module is described.
在本申请实施例中,以用户描述信息包括第一描述信息、第二描述信息以及第一描述信息与第二描述信息之间的存在关系为例进行说明。所述解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;根据所述条件 语句以及存在关系,构建逻辑树结构的查询描述模块,如图6所示,可以包括:In the embodiment of the present application, the user description information includes the first description information, the second description information, and the existence relationship between the first description information and the second description information as an example for description. The parsing of the conditional sentences and the existence relationship between the conditional sentences in the received user description information; according to the conditional sentences and the existence relationship, the query description module of the logical tree structure is constructed, as shown in FIG. 6, which may include:
步骤S321:解析第一描述信息中的第一条件语句以及第一条件语句之间的第一存在关系,解析第二描述信息中的第二条件语句以及第二条件语句之间的第二存在关系。Step S321: Parse the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence, and analyze the second conditional sentence in the second description information and the second existence relationship between the second conditional sentence .
第一描述信息以及第二描述信息为用户描述信息中的不同描述信息。在第一描述信息中包括条件语句以及条件语句之间的存在关系,定义第一描述信息中的条件语句为第一条件语句,定义第一描述信息中条件语句之间的存在关系为第一存在关系。在第二描述信息中包括条件语句以及条件语句之间的存在关系,定义第二描述信息中的条件语句为第二条件语句,定义第二描述信息中条件语句之间的存在关系为第二存在关系。The first description information and the second description information are different description information in the user description information. The first description information includes conditional sentences and the existence relationship between the conditional sentences, the conditional sentence in the first description information is defined as the first conditional sentence, and the existence relationship between the conditional sentences in the first description information is defined as the first existence relation. The second description information includes conditional sentences and the existence relationship between the conditional sentences, the conditional sentence in the second description information is defined as the second conditional sentence, and the existence relationship between the conditional sentences in the second description information is defined as the second existence relation.
分别解析每个描述信息中的条件语句以及条件语句之间的存在关系时,可以解析第一描述信息中的第一条件语句以及第一条件语句之间的第一存在关系,解析第二描述信息中的第二条件语句以及第二条件语句之间的第二存在关系。When parsing the conditional statements in each description information and the relationship between the conditional statements, the first conditional statement in the first description information and the first relationship between the first conditional statement can be analyzed, and the second description information can be parsed The second conditional sentence in and the second existence relationship between the second conditional sentence.
在本申请实施例中,解析第一描述信息中的第一条件语句以及第一条件语句之间的第一存在关系可以参见前述实施例中相同或相应的步骤,如步骤S110以及步骤S210。对第一描述信息的解析与前述实施例中对用户描述信息的解析方式可以相同。In the embodiment of the present application, for parsing the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence, refer to the same or corresponding steps in the foregoing embodiment, such as step S110 and step S210. The parsing of the first description information may be the same as the parsing of the user description information in the foregoing embodiment.
在本申请实施例中,解析第二描述信息中的第二条件语句以及第二条件语句之间的第二存在关系可以参见前述实施例中相同或相应的步骤,如步骤S110以及步骤S210。对第二描述信息的解析与前述实施例中对用户描述信息的解析方式可以相同。In the embodiment of the present application, for parsing the second conditional sentence in the second description information and the second existence relationship between the second conditional sentence, refer to the same or corresponding steps in the foregoing embodiment, such as step S110 and step S210. The parsing of the second description information can be the same as the parsing of the user description information in the foregoing embodiment.
步骤S331:根据所述第一条件语句以及第一存在关系,构建所述逻辑树结构的第一描述模块;根据所述第二条件语句以及第二存在关系,构建所述逻辑树结构的第二描述模块。Step S331: Construct a first description module of the logical tree structure according to the first conditional sentence and the first existence relationship; construct a second description module of the logical tree structure according to the second conditional sentence and the second existence relationship Describe the module.
在本申请实施例中,如前所述,第一描述模块为根据第一条件语句以及第一存在关系构建的查询描述模块,第二描述模块为根据第二条件语句以及第二存在关系构建的查询描述模块。第一描述模块以及第二描述模块的具体构建方式可以参见前述实施例中相同或相应的步骤,例如,具体可以参见前述步骤S120以及步骤S220的描述,根据前述实施例中构建查询描述模块的方式构建第一描述模块以及第二描述模块。In the embodiment of the present application, as described above, the first description module is a query description module constructed based on the first conditional sentence and the first existence relationship, and the second description module is constructed based on the second conditional sentence and the second existence relationship. Query description module. For the specific construction methods of the first description module and the second description module, please refer to the same or corresponding steps in the foregoing embodiment. For example, refer to the description of the foregoing step S120 and step S220 for details, according to the manner of constructing the query description module in the foregoing embodiment Construct the first description module and the second description module.
步骤S332:根据所述第一描述信息以及第二描述信息之间的存在关系, 将所述第一描述模块以及第二描述模块结合为所述逻辑树结构的查询描述模块。Step S332: Combine the first description module and the second description module into the query description module of the logical tree structure according to the existing relationship between the first description information and the second description information.
可选的,在该步骤中,第一描述模块以及第二描述模块可以分别作为条件语句,根据各个描述模块对应的描述信息之间的存在关系,构建查询描述模块,具体可以参见前述步骤S120以及步骤S220的描述。Optionally, in this step, the first description module and the second description module can be respectively used as conditional statements, and the query description module is constructed according to the relationship between the description information corresponding to each description module. For details, please refer to the foregoing step S120 and Description of step S220.
其中,第一描述模块、第二描述模块以及本步骤中的查询描述模块中的逻辑树结构一致,如都为二叉树结构。Among them, the logical tree structures in the first description module, the second description module, and the query description module in this step are consistent, for example, all have a binary tree structure.
步骤S340:从目标数据库选取满足所述查询描述模块的条件的用户。Step S340: Select users who meet the conditions of the query description module from the target database.
该步骤可以参见前述实施例中相同或相应的步骤,在此不再赘述。This step can refer to the same or corresponding steps in the foregoing embodiments, and details are not described herein again.
在本申请实施例中,可以通过一种具体的实施方式进行说明。In the embodiments of the present application, a specific implementation manner may be used for description.
在本申请实施例中,用户描述信息可以包括不同的描述信息,分别对要选取的用户进行条件限定。不同的描述信息可以结合生成查询描述模块进行用户选取,从而可以有效扩展描述信息的描述方式、提交终端以及输入单元等,提高了该用户选取操作的扩展性,也提高了根据不同的描述信息进行用户选取的效率。In the embodiment of the present application, the user description information may include different description information, and the conditions of the users to be selected are respectively restricted. Different description information can be combined with the generated query description module for user selection, which can effectively expand the description method, submission terminal and input unit of the description information, improve the scalability of the user selection operation, and also improve the selection based on different description information. The efficiency of user selection.
在本申请实施例中,生成的多个查询描述模块可以根据存在关系进行结合,从而在实际使用中有效对要选取的用户的条件限定进行扩展。请参见图7,本申请实施例提供的方法对多个查询描述模块的合并方式还可以是包括:In the embodiment of the present application, the generated multiple query description modules can be combined according to the existence relationship, so as to effectively expand the condition limit of the user to be selected in actual use. Referring to FIG. 7, the method provided in the embodiment of the present application combines multiple query description modules in a manner that also includes:
步骤S410:解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系。Step S410: Parse the conditional sentences in the received user description information and the existence relationship between the conditional sentences.
步骤S420:根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系。Step S420: Construct a query description module of a logical tree structure according to the conditional sentences and the existence relationship, where the query description module represents the existence relationship between the conditional sentences.
步骤S410以及步骤S420可以参见前述实施例中相同或相应的步骤,在此不再赘述。For step S410 and step S420, reference may be made to the same or corresponding steps in the foregoing embodiment, which will not be repeated here.
步骤S430:接收一个或多个查询描述模块。Step S430: Receive one or more query description modules.
本申请实施例中,还可以接收其他服务器或者终端等设备生产的查询描述模块。接收到的查询描述模块的生成方式可以与本申请前述实施例中的生成方式相同,具体可以参见前述实施例中生成查询描述模块的相应的步骤。In the embodiments of the present application, query description modules produced by other devices such as servers or terminals may also be received. The method for generating the received query description module may be the same as that in the foregoing embodiment of the present application. For details, refer to the corresponding steps of generating the query description module in the foregoing embodiment.
可选的,接收到的查询描述模块的逻辑树结构与当前生成的查询描述模块的逻辑树结构可以相同。Optionally, the logical tree structure of the received query description module may be the same as the logical tree structure of the currently generated query description module.
另外,在本申请实施例中,步骤S430的执行相对于步骤S410以及步骤 S420并不限定。In addition, in the embodiment of the present application, the execution of step S430 is not limited with respect to step S410 and step S420.
步骤S440:根据所述一个或多个查询描述模块以及当前生成的查询描述模块之间的存在关系,将接收到的查询描述模块与当前生成的查询描述模块结合为所述逻辑树结构的查询描述模块,用于选取用户。Step S440: Combine the received query description module and the currently generated query description module into the query description of the logical tree structure according to the existing relationship between the one or more query description modules and the currently generated query description module Module, used to select users.
在本申请实施例中,一个或多个查询描述模块以及当前生成的查询描述模块之间的存在关系可以由其他设备或终端发送;可以与接收到的查询描述模块同步接收;或者可以根据默认条件生成,如默认各个查询描述模块择一存在,或者同时存在。In the embodiment of the present application, the existence relationship between one or more query description modules and the currently generated query description module can be sent by other devices or terminals; can be received synchronously with the received query description module; or can be based on default conditions Generated, for example, each query description module exists by default, or exists at the same time.
根据各个查询描述模块之间的存在关系,将包括接收到的查询描述模块以及当前生成的查询描述模块的所有查询描述模块相结合,生成新的查询描述模块。其中,接个各个查询描述模块生成具有逻辑树结构的查询描述模块的方式可以参见前述实施例中相同或相应的步骤。例如,将每个查询描述模块视为一个条件语句,根据各个查询描述模块之间的存在关系,构建逻辑树结构的查询描述模块,构建的该查询描述模块中包括的所有查询描述模块对应的用户描述信息中条件语句以及条件语句之间的存在关系,表示了各个条件语句之间的存在关系。According to the existing relationship between the various query description modules, all query description modules including the received query description module and the currently generated query description module are combined to generate a new query description module. Wherein, the manner in which each query description module generates a query description module having a logical tree structure can refer to the same or corresponding steps in the foregoing embodiment. For example, consider each query description module as a conditional statement, and construct a logical tree structure query description module based on the relationship between each query description module, and the constructed query description module includes all query description modules corresponding to the users The conditional sentences and the existence relationship between the conditional sentences in the description information indicate the existence relationship between each conditional sentence.
在本申请实施例中,以接收到的查询描述模块为另一查询模块为例进行说明。具体的,可以接收另一查询描述模块;将所述另一查询描述模块与所述查询描述模块结合为逻辑树结构的新的查询描述模块,用于选取用户。In the embodiment of the present application, the received query description module is another query module as an example for description. Specifically, another query description module may be received; the other query description module and the query description module are combined into a new query description module with a logical tree structure, which is used to select users.
步骤S450:从目标数据库选取满足所述查询描述模块的条件的用户。Step S450: Select users who meet the conditions of the query description module from the target database.
该步骤可以参见前述实施例中相同或相应的步骤,在此不再赘述。This step can refer to the same or corresponding steps in the foregoing embodiments, and details are not described herein again.
在本申请实施例中,逻辑树结构的查询描述模块之间可以无缝组合,多重结合,或交叉,任何形式的用户描述信息转化为逻辑树结构的查询描述模块之后,都可以自由与其他用户描述信息结合,可以在同一个查询引擎下查询,非常有利于后续扩展新的用户选取模式,扩展新的用户描述信息,有效提升了用户选取操作的扩展性,极大地提高了圈取人群的灵活性,满足了需要选取用户的业务方对各种描述信息的结合的需求,不同业务方也可以相互结合,对人群的定位更加精准,圈取条件更加容易理解。In the embodiment of this application, the query description modules of the logical tree structure can be seamlessly combined, multiple combined, or crossed. After any form of user description information is converted into the query description module of the logical tree structure, they can freely interact with other users. The combination of description information can be queried under the same query engine, which is very conducive to the subsequent expansion of new user selection modes and new user description information, which effectively improves the scalability of user selection operations and greatly improves the flexibility of trapping people It satisfies the needs of business parties who need to select users for the combination of various description information. Different business parties can also be combined with each other, positioning the crowd more accurately, and the trapping conditions are easier to understand.
另外,在本申请实施例提供的用户选取方法中,还可以用于对用户群进行去重。其中,每个用户群对应一个特征,表示该用户群中的所有用户都具有该用户群对应的特征。多个用户群进行去重时,在用户描述信息中包括该多个用户群对应的特征,并且该多个用户群对应的特征之间的存在 关系为同时存在。根据用户描述信息生成的查询描述模块选取到用户则为每个用户群都有的用户,对于选取到的用户,在多个用户群中的一个用户群保留,其他用户群进行删除,多该多个用户群去重。In addition, in the user selection method provided in the embodiment of the present application, it can also be used to de-duplicate the user group. Among them, each user group corresponds to a characteristic, which means that all users in the user group have characteristics corresponding to the user group. When multiple user groups are deduplicated, the characteristics corresponding to the multiple user groups are included in the user description information, and the existence relationship between the characteristics corresponding to the multiple user groups is simultaneous. The query description module generated according to the user description information selects the users that are owned by each user group. For the selected users, one of the multiple user groups is reserved, and the other user groups are deleted. Duplicate user groups.
例如,以多个用户群分别为第一用户群和第二用户群为例进行说明。第一特征为第一用户群中用户具有的特征,第二特征为第二用户群中用户具有的特征。解析所述用户描述信息获得的所述条件语句包括第一特征以及第二特征,所述第一特征以及第二特征之间的存在关系为同时存在。在选取满足所述查询描述模块的条件的用户后,可以从第一用户群中删除满足所述查询描述模块的条件的用户,或者从第二用户群中删除满足所述查询描述模块的条件的用户,从而对第一用户群和第二用户群去重。For example, an explanation will be given by taking the multiple user groups as the first user group and the second user group respectively. The first characteristic is a characteristic of users in the first user group, and the second characteristic is a characteristic of users in the second user group. The conditional sentence obtained by parsing the user description information includes a first feature and a second feature, and the existence relationship between the first feature and the second feature is simultaneous. After selecting users meeting the conditions of the query description module, users meeting the conditions of the query description module can be deleted from the first user group, or users meeting the conditions of the query description module can be deleted from the second user group Users, thereby de-duplicating the first user group and the second user group.
本申请实施例还提供了一种用户选取装置500,如图8所示,所述装置包括:解析单元510,用于解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;构建单元520,用于根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系;选取单元530,用于从目标数据库选取满足所述查询描述模块的条件的用户。An embodiment of the present application also provides a user selection device 500. As shown in FIG. 8, the device includes: a parsing unit 510 for parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences The construction unit 520 is used to construct a query description module of a logical tree structure according to the conditional sentence and the existence relationship, and the query description module represents the existence relationship between the conditional sentences; the selection unit 530 is used to select satisfying conditions from the target database The query describes the user of the condition of the module.
可选的,所述构建单元520可以用于以条件语句作为叶子节点,以条件语句之间的存在关系作为叶子节点对应的根节点,构建所述逻辑树结构的查询描述模块。Optionally, the construction unit 520 may be used to construct the query description module of the logical tree structure by using conditional sentences as leaf nodes and the existence relationship between the conditional sentences as the root nodes corresponding to the leaf nodes.
可选的,所述逻辑树结构为逻辑二叉树。Optionally, the logical tree structure is a logical binary tree.
可选的,所述存在关系包括同时存在或者择一存在。Optionally, the existence relationship includes simultaneous existence or alternative existence.
可选的,所述用户描述信息包括多个描述信息以及多个描述信息之间的存在关系。解析单元510可以用于分别解析每个描述信息中的条件语句以及条件语句之间的存在关系;构建单元520可以用于根据每个描述信息对应的条件语句以及存在关系,构建所述逻辑树结构的描述模块;根据各个描述信息之间的存在关系,将各个描述信息分别对应的描述模块结合为所述逻辑树结构的查询描述模块。Optionally, the user description information includes multiple description information and an existing relationship between the multiple description information. The parsing unit 510 can be used to separately analyze the conditional sentences in each description information and the existence relationship between the conditional sentences; the construction unit 520 can be used to construct the logical tree structure according to the conditional sentences and the existence relationship corresponding to each description information The description module; according to the relationship between the various description information, the description module corresponding to each description information is combined into the query description module of the logical tree structure.
可选的,所述用户描述信息包括第一描述信息、第二描述信息以及第一描述信息与第二描述信息之间的存在关系。解析单元510可以用于解析第一描述信息中的第一条件语句以及第一条件语句之间的第一存在关系,解析第二描述信息中的第二条件语句以及第二条件语句之间的第二存在关系。构建单元520可以用于根据所述第一条件语句以及第一存在关系,构建所述逻辑树结构 的第一描述模块;根据所述第二条件语句以及第二存在关系,构建所述逻辑树结构的第二描述模块;根据所述第一描述信息以及第二描述信息之间的存在关系,将所述第一描述模块以及第二描述模块结合为所述逻辑树结构的查询描述模块。Optionally, the user description information includes first description information, second description information, and an existing relationship between the first description information and the second description information. The parsing unit 510 may be used to parse the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence, and parse the second conditional sentence in the second description information and the first conditional sentence between the second conditional sentence. Second, there is a relationship. The constructing unit 520 may be configured to construct the first description module of the logical tree structure according to the first conditional sentence and the first existence relationship; construct the logical tree structure according to the second conditional sentence and the second existence relationship The second description module; according to the existence relationship between the first description information and the second description information, the first description module and the second description module are combined into the query description module of the logical tree structure.
可选的,该装置还可以包括模块接收单元,用于接收一个或多个查询描述模块;构建单元520可以用于根据所述一个或多个查询描述模块以及当前生成的查询描述模块之间的存在关系,将接收到的查询描述模块与当前生成的查询描述模块结合为所述逻辑树结构的查询描述模块,用于选取用户。Optionally, the device may further include a module receiving unit for receiving one or more query description modules; the construction unit 520 may be used for communication between the one or more query description modules and the currently generated query description module. If there is a relationship, the received query description module and the currently generated query description module are combined into the query description module of the logical tree structure for selecting users.
可选的,该装置还可以包括模块接收单元,用于接收另一查询描述模块;构建单元520可以用于将所述另一查询描述模块与所述查询描述模块结合为逻辑树结构的新的查询描述模块,用于选取用户。Optionally, the device may further include a module receiving unit for receiving another query description module; the construction unit 520 may be used for combining the another query description module and the query description module into a new logical tree structure Query description module, used to select users.
可选的,解析单元510可以包括语义识别子单元,用于对所述用户描述信息进行语义识别,获取所述用户描述信息中存在于预设条件库中的词句作为所述条件语句;信息获取子单元,用于获取描述条件语句之间关系的词句作为条件语句之间的存在描述信息;确定子单元,用于根据存在描述信息与存在关系之间的预设对应关系,确定获取到的存在描述信息对应的存在关系。Optionally, the parsing unit 510 may include a semantic recognition subunit, which is used to perform semantic recognition on the user description information, and obtain words and sentences in the user description information existing in a preset condition library as the conditional sentence; information acquisition The subunit is used to obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences; the determining subunit is used to determine the acquired existence according to the preset correspondence between the existence description information and the existence relationship Describe the existence relationship corresponding to the information.
可选的,解析单元510可以包括条件语句获取子单元,用于获取所述用户描述信息中条件标识对应的词句作为条件语句;关系获取子单元,用于获取条件语句之间关系标识对应的词句作为条件语句之间的存在关系。Optionally, the parsing unit 510 may include a conditional sentence obtaining subunit for obtaining words and sentences corresponding to condition identifiers in the user description information as conditional sentences; a relationship obtaining subunit for obtaining words and sentences corresponding to relationship identifiers between conditional sentences As the existence relationship between conditional statements.
可选的,选取单元530可以包括遍历子单元,用于对所述查询描述模块进行后续遍历,生成查询语句;选取子单元,用于根据所述查询语句选取用户。Optionally, the selection unit 530 may include a traversal subunit for performing subsequent traversal on the query description module to generate a query sentence; and the selection subunit for selecting a user according to the query sentence.
可选的,选取单元530可以用于从目标数据库中选取满足查询描述模块的条件的用户,所述目标数据库中包括实时更新的用户数据。Optionally, the selecting unit 530 may be configured to select users who meet the conditions of the query description module from a target database, and the target database includes user data updated in real time.
可选的,所述用户数据包括各个用户的用户行为特征,所述用户行为特征由用户对电子设备的操作产生。Optionally, the user data includes user behavior characteristics of each user, and the user behavior characteristics are generated by the user's operation of the electronic device.
可选的,解析所述用户描述信息获得的所述条件语句包括第一特征以及第二特征,所述第一特征以及第二特征之间的存在关系为同时存在,所述第一特征为第一用户群中用户具有的特征。该装置还可以包括删除单元,用于从第一用户群中删除满足所述查询描述模块的条件的用户;或者从第二用户群中删除满足所述查询描述模块的条件的用户。Optionally, the conditional sentence obtained by parsing the user description information includes a first feature and a second feature, the existence relationship between the first feature and the second feature is simultaneous, and the first feature is the first feature. The characteristics of a user in a user group. The device may further include a deleting unit for deleting users satisfying the condition of the query description module from the first user group; or deleting users satisfying the condition of the query description module from the second user group.
用户行为特征这种变化快且复杂的特征,需要存储在Hive服务器中,而 画像标签等用于表示用户属性信息的相关特征,通常存储ElasticSearch服务器。为了克服ElasticSearch和Hive两种查询引擎无法结合的问题,避免分别在两个服务器中查询后再对查询结果进行结合,在本申请实施例提供的用户选取方法、装置、服务器及存储介质,根据用户描述信息中的条件语句以及存在关系,可以构建逻辑树结构的查询描述模块,可以同时使用Presto引擎跳过ElasticSearch服务器直接查询Hive服务器中的用户画像标签的数据,将画像标签和用户行为特征结合得到查询结果。User behavior characteristics, which are rapidly changing and complex characteristics, need to be stored in the Hive server, while portrait tags and other related characteristics used to represent user attribute information are usually stored in the ElasticSearch server. In order to overcome the problem that the two query engines of ElasticSearch and Hive cannot be combined, and to avoid combining the query results after querying in the two servers respectively, the user selection method, device, server, and storage medium provided in the embodiments of this application are based on the user The conditional sentences and existence relationships in the description information can build a query description module with a logical tree structure. You can also use the Presto engine to skip the ElasticSearch server and directly query the data of the user portrait tags in the Hive server, and combine the portrait tags with user behavior characteristics. search result.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述的各个方法实施例之间可以相互参照;上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and concise description, the above-mentioned method embodiments can be referred to each other; for the specific working process of the above-described device and module, please refer to the corresponding process in the aforementioned method embodiment. , I won’t repeat it here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In the several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。各个模块可以配置在不同的电子设备中,也可以配置在相同的电子设备中,本申请实施例并不限定。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software function modules. Each module can be configured in different electronic devices, and can also be configured in the same electronic device, which is not limited in the embodiment of the present application.
请参考图9,其示出了本申请实施例提供的一种服务器600的结构框图。该电子设备可以包括一个或多个处理器610(图中仅示出一个),存储器620以及一个或多个程序。其中,所述一个或多个程序被存储在所述存储器620中,并被配置为由所述一个或多个处理器610执行。所述一个或多个程序被处理器执行用于执行前述实施例所描述的方法。Please refer to FIG. 9, which shows a structural block diagram of a server 600 provided by an embodiment of the present application. The electronic device may include one or more processors 610 (only one is shown in the figure), a memory 620, and one or more programs. Wherein, the one or more programs are stored in the memory 620 and configured to be executed by the one or more processors 610. The one or more programs are executed by the processor to execute the methods described in the foregoing embodiments.
处理器610可以包括一个或者多个处理核。处理器610利用各种接口和线路连接整个服务器600内的各个部分,通过运行或执行存储在存储器620内的指令、程序、代码集或指令集,以及调用存储在存储器620内的数据,执行服务器600的各种功能和处理数据。可选地,处理器610可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器610可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘 制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器610中,单独通过一块通信芯片进行实现。The processor 610 may include one or more processing cores. The processor 610 uses various interfaces and lines to connect various parts of the entire server 600, and executes the server by running or executing instructions, programs, code sets, or instruction sets stored in the memory 620, and calling data stored in the memory 620. 600's various functions and processing data. Optionally, the processor 610 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). A kind of hardware form to realize. The processor 610 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing the display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 610, but may be implemented by a communication chip alone.
存储器620可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器620可用于存储指令、程序、代码、代码集或指令集。存储器620可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令、用于实现上述各个方法实施例的指令等。存储数据区还可以电子设备在使用中所创建的数据等。The memory 620 may include random access memory (RAM) or read-only memory (Read-Only Memory). The memory 620 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 620 may include a storage program area and a storage data area, where the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing each of the foregoing method embodiments, and the like. The data storage area can also be the data created by the electronic device in use.
请参考图10,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读存储介质700中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 10, which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable storage medium 700 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
计算机可读存储介质700可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质700包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质700具有执行上述方法中的任何方法步骤的程序代码710的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码710可以例如以适当形式进行压缩。The computer-readable storage medium 700 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 700 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 700 has a storage space for the program code 710 for executing any method steps in the above-mentioned methods. These program codes can be read from or written into one or more computer program products. The program code 710 may be compressed in a suitable form, for example.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the application, not to limit them; although the application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the foregoing embodiments are modified, or some of the technical features thereof are equivalently replaced; these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (20)

  1. 一种用户选取方法,其特征在于,所述方法包括:A user selection method, characterized in that the method includes:
    解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;Analyze the conditional sentences in the received user description information and the existence relationship between the conditional sentences;
    根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系;According to the conditional sentences and the existence relationship, construct a query description module of a logical tree structure, where the query description module represents the existence relationship between the conditional sentences;
    从目标数据库选取满足所述查询描述模块的条件的用户。Select users who meet the conditions of the query description module from the target database.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,包括:The method according to claim 1, wherein the constructing a query description module of a logical tree structure according to the conditional sentence and the existence relationship comprises:
    以条件语句作为叶子节点,以条件语句之间的存在关系作为叶子节点对应的根节点,构建所述逻辑树结构的查询描述模块。Taking conditional sentences as leaf nodes, and taking the existence relationship between conditional sentences as root nodes corresponding to the leaf nodes, the query description module of the logical tree structure is constructed.
  3. 根据权利要求1或2所述的方法,其特征在于,所述逻辑树结构为逻辑二叉树。The method according to claim 1 or 2, wherein the logical tree structure is a logical binary tree.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述存在关系包括同时存在或者择一存在。The method according to any one of claims 1 to 3, wherein the existence relationship includes simultaneous existence or alternative existence.
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述用户描述信息包括多个描述信息以及多个描述信息之间的存在关系,所述解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,包括:The method according to any one of claims 1 to 4, wherein the user description information includes multiple description information and the existence relationship between the multiple description information, and the parsing of the received user description information The conditional sentence and the existence relationship between the conditional sentence; according to the conditional sentence and the existence relationship, the query description module of the logical tree structure is constructed, including:
    分别解析每个描述信息中的条件语句以及条件语句之间的存在关系;Resolve the conditional sentences in each description information and the relationship between the conditional sentences;
    根据每个描述信息对应的条件语句以及存在关系,构建所述逻辑树结构的描述模块;Construct the description module of the logical tree structure according to the conditional sentence and the existence relationship corresponding to each description information;
    根据各个描述信息之间的存在关系,将各个描述信息分别对应的描述模块结合为所述逻辑树结构的查询描述模块。According to the relationship between the description information, the description modules corresponding to the description information are combined into the query description module of the logical tree structure.
  6. 根据权利要求1至5任一项所述的方法,其特征在于,所述用户描述信息包括第一描述信息、第二描述信息以及第一描述信息与第二描述信息之间的存在关系,所述解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,包括:The method according to any one of claims 1 to 5, wherein the user description information includes first description information, second description information, and the existence relationship between the first description information and the second description information. The parsing of the conditional sentences in the received user description information and the existence relationship between the conditional sentences; according to the conditional sentences and the existence relationship, constructing the query description module of the logical tree structure, including:
    解析第一描述信息中的第一条件语句以及第一条件语句之间的第一存在关系,解析第二描述信息中的第二条件语句以及第二条件语句之间的第二存在关系;Parse the first conditional sentence in the first description information and the first existence relationship between the first conditional sentence, and analyze the second conditional sentence in the second description information and the second existence relationship between the second conditional sentence;
    根据所述第一条件语句以及第一存在关系,构建所述逻辑树结构的第一描述模块;根据所述第二条件语句以及第二存在关系,构建所述逻辑树结构的第二描述模块;Construct a first description module of the logical tree structure according to the first conditional sentence and the first existence relationship; construct a second description module of the logical tree structure according to the second conditional sentence and the second existence relationship;
    根据所述第一描述信息以及第二描述信息之间的存在关系,将所述第一描述模块以及第二描述模块结合为所述逻辑树结构的查询描述模块。According to the existing relationship between the first description information and the second description information, the first description module and the second description module are combined into the query description module of the logical tree structure.
  7. 根据权利要求1至5任一项所述的方法,其特征在于,所述从目标数据库选取满足所述查询描述模块的条件的用户之前,还包括:The method according to any one of claims 1 to 5, characterized in that before the selecting from the target database users who meet the conditions of the query description module, the method further comprises:
    接收一个或多个查询描述模块;Receive one or more query description modules;
    根据所述一个或多个查询描述模块以及当前生成的查询描述模块之间的存在关系,将接收到的查询描述模块与当前生成的查询描述模块结合为所述逻辑树结构的查询描述模块,用于从目标数据库选取用户。According to the existence relationship between the one or more query description modules and the currently generated query description module, the received query description module and the currently generated query description module are combined into the query description module of the logical tree structure, using To select users from the target database.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述从目标数据库选取满足所述查询描述模块的条件的用户之前,还包括:The method according to any one of claims 1 to 7, characterized in that, before the selecting a user satisfying the condition of the query description module from the target database, the method further comprises:
    接收另一查询描述模块;Receive another query description module;
    将所述另一查询描述模块与所述查询描述模块结合为逻辑树结构的新的查询描述模块,用于从目标数据库选取用户。The other query description module and the query description module are combined into a new query description module in a logical tree structure, which is used to select users from the target database.
  9. 根据权利要求1至8任一项所述的方法,其特征在于,解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系,包括:The method according to any one of claims 1 to 8, wherein parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences comprises:
    获取所述用户描述信息中条件标识对应的词句作为条件语句;Acquiring the words and sentences corresponding to the condition identifiers in the user description information as the condition sentences;
    获取条件语句之间关系标识对应的词句作为条件语句之间的存在关系。The words and sentences corresponding to the relationship identifiers between the conditional sentences are acquired as the existence relationship between the conditional sentences.
  10. 根据权利要求1至8任一项所述的方法,其特征在于,解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系,包括:The method according to any one of claims 1 to 8, wherein parsing the conditional sentences in the received user description information and the existence relationship between the conditional sentences comprises:
    对所述用户描述信息进行语义识别,获取所述用户描述信息中存在于预设条件库中的词句作为所述条件语句;Performing semantic recognition on the user description information, and acquiring words and sentences in the user description information that are in a preset condition library as the conditional sentence;
    获取描述条件语句之间关系的词句作为条件语句之间的存在描述信息;Obtain the words and sentences describing the relationship between the conditional sentences as the existence description information between the conditional sentences;
    根据存在描述信息与存在关系之间的预设对应关系,确定获取到的存在描述信息对应的存在关系。According to the preset correspondence between the existence description information and the existence relationship, the existence relationship corresponding to the acquired existence description information is determined.
  11. 根据权利要求1至10任一项所述的方法,其特征在于,所述从目标数据库选取满足所述查询描述模块的条件的用户,包括:The method according to any one of claims 1 to 10, wherein the selecting from a target database users who meet the conditions of the query description module comprises:
    对所述查询描述模块进行后续遍历,生成查询语句;Perform subsequent traversal on the query description module to generate query statements;
    根据所述查询语句从目标数据库选取用户。Select users from the target database according to the query sentence.
  12. 根据权利要求1至11任一项所述的方法,其特征在于,所述目标数 据库中包括实时更新的用户数据。The method according to any one of claims 1 to 11, wherein the target database includes user data updated in real time.
  13. 根据权利要求12所述的方法,其特征在于,所述用户数据包括各个用户的用户行为特征,所述用户行为特征由用户对电子设备的操作产生。The method according to claim 12, wherein the user data includes user behavior characteristics of each user, and the user behavior characteristics are generated by the user's operation of the electronic device.
  14. 根据权利要求1至13任一项所述的方法,其特征在于,解析所述用户描述信息获得的所述条件语句包括第一特征以及第二特征,所述第一特征以及第二特征之间的存在关系为同时存在,所述第一特征为第一用户群中用户具有的特征,所述第二特征为第二用户群中用户具有的特征;The method according to any one of claims 1 to 13, wherein the conditional sentence obtained by parsing the user description information includes a first feature and a second feature, and the difference between the first feature and the second feature is The existence relationship of is simultaneous existence, the first characteristic is a characteristic of users in a first user group, and the second characteristic is a characteristic of users in a second user group;
    所述方法还包括:The method also includes:
    从第一用户群中删除满足所述查询描述模块的条件的用户;或者Delete users who meet the conditions of the query description module from the first user group; or
    从第二用户群中删除满足所述查询描述模块的条件的用户。Delete users who meet the conditions of the query description module from the second user group.
  15. 一种用户选取装置,其特征在于,所述装置包括:A user selection device, characterized in that the device includes:
    解析单元,用于解析接收到的用户描述信息中的条件语句以及条件语句之间的存在关系;The parsing unit is used to analyze the conditional sentences in the received user description information and the existence relationship between the conditional sentences;
    构建单元,用于根据所述条件语句以及存在关系,构建逻辑树结构的查询描述模块,所述查询描述模块表示条件语句之间的存在关系;The construction unit is configured to construct a query description module of a logical tree structure according to the conditional sentences and the existence relationship, and the query description module represents the existence relationship between the conditional sentences;
    选取单元,用于从目标数据库选取满足所述查询描述模块的条件的用户。The selecting unit is used to select users who meet the conditions of the query description module from the target database.
  16. 根据权利要求15所述的装置,其特征在于,所述构建单元用于以条件语句作为叶子节点,以条件语句之间的存在关系作为叶子节点对应的根节点,构建所述逻辑树结构的查询描述模块。The device according to claim 15, wherein the construction unit is configured to use conditional sentences as leaf nodes, and the existence relationship between conditional sentences as root nodes corresponding to the leaf nodes to construct the query of the logical tree structure Describe the module.
  17. 根据权利要求15或16所述的装置,其特征在于,所述逻辑树结构为逻辑二叉树。The device according to claim 15 or 16, wherein the logical tree structure is a logical binary tree.
  18. 根据权利要求15至17任一项所述的装置,其特征在于,所述存在关系包括同时存在或者择一存在。The device according to any one of claims 15 to 17, wherein the existence relationship includes simultaneous existence or alternative existence.
  19. 一种服务器,其特征在于,包括:A server, characterized in that it comprises:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个程序,其中所述一个或多个程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个程序被所述处理器执行用于执行如权利要求1-14任一项所述的方法。One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are executed by the processor To perform the method according to any one of claims 1-14.
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-14任 一项所述的方法。A computer-readable storage medium, wherein a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the method according to any one of claims 1-14.
PCT/CN2020/081729 2020-03-27 2020-03-27 User selection method and device, and server and storage medium WO2021189434A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/081729 WO2021189434A1 (en) 2020-03-27 2020-03-27 User selection method and device, and server and storage medium
CN202080094696.2A CN115004169A (en) 2020-03-27 2020-03-27 User selection method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/081729 WO2021189434A1 (en) 2020-03-27 2020-03-27 User selection method and device, and server and storage medium

Publications (1)

Publication Number Publication Date
WO2021189434A1 true WO2021189434A1 (en) 2021-09-30

Family

ID=77890780

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/081729 WO2021189434A1 (en) 2020-03-27 2020-03-27 User selection method and device, and server and storage medium

Country Status (2)

Country Link
CN (1) CN115004169A (en)
WO (1) WO2021189434A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115062056A (en) * 2022-08-18 2022-09-16 中航信移动科技有限公司 User searching method for civil aviation data, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484174A (en) * 2002-09-21 2004-03-24 鸿富锦精密工业(深圳)有限公司 Universal inquiry statement dynamic generation system and method
CN102646111A (en) * 2012-02-16 2012-08-22 中国测绘科学研究院 Knowledge base-based fast construction method of common correlation information query tree
CN105335402A (en) * 2014-07-23 2016-02-17 阿里巴巴集团控股有限公司 Search method, index data generation method and device on the basis of static Cache

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1484174A (en) * 2002-09-21 2004-03-24 鸿富锦精密工业(深圳)有限公司 Universal inquiry statement dynamic generation system and method
CN102646111A (en) * 2012-02-16 2012-08-22 中国测绘科学研究院 Knowledge base-based fast construction method of common correlation information query tree
CN105335402A (en) * 2014-07-23 2016-02-17 阿里巴巴集团控股有限公司 Search method, index data generation method and device on the basis of static Cache

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115062056A (en) * 2022-08-18 2022-09-16 中航信移动科技有限公司 User searching method for civil aviation data, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115004169A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
CN111045655B (en) Page rendering method and device, rendering server and storage medium
US8417690B2 (en) Automatically avoiding unconstrained cartesian product joins
CN112464034A (en) User data extraction method and device, electronic equipment and computer readable medium
US11573961B2 (en) Delta graph traversing system
WO2023160137A1 (en) Graph data storage method and system, and computer device
US20200342029A1 (en) Systems and methods for querying databases using interactive search paths
CN114356971A (en) Data processing method, device and system
WO2021189195A1 (en) Data querying method and apparatus, server, and storage medium
CN112667860A (en) Sub-graph matching method, device, equipment and storage medium
CN113986241A (en) Configuration method and device of business rules based on knowledge graph
CN110727857A (en) Method and device for identifying key features of potential users aiming at business objects
WO2021189434A1 (en) User selection method and device, and server and storage medium
CN113220710A (en) Data query method and device, electronic equipment and storage medium
WO2021114634A1 (en) Text annotation method, device, and storage medium
CN112970011A (en) Recording pedigrees in query optimization
CN116955856A (en) Information display method, device, electronic equipment and storage medium
CN115309789B (en) Method for generating associated data graph in real time based on intelligent dynamic business object
WO2021135103A1 (en) Method and apparatus for semantic analysis, computer device, and storage medium
CN114416772A (en) Data query method and device, electronic equipment and storage medium
JP2006040081A (en) Information retrieval device, database retrieval preprocessing circuit, and information retrieval method
WO2021072776A1 (en) Data merging method and apparatus, electronic device, and storage medium
CN111159203B (en) Data association analysis method, platform, electronic equipment and storage medium
WO2022204845A1 (en) Method and apparatus for generating entity popularity, and storage medium and electronic device
WO2023185377A1 (en) Multi-granularity data pattern mining method and related device
CN116975198A (en) Information query method, device, equipment and medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20926400

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.02.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20926400

Country of ref document: EP

Kind code of ref document: A1