Disclosure of Invention
In a first aspect, an embodiment of the present application provides an information obtaining method, which is applied to a computer device, where channel data is stored in the computer device, where the channel data includes multiple channel identifiers, and the method includes:
acquiring an identifier to be screened;
determining a target channel identifier according to the identifier to be screened;
acquiring to-be-processed data corresponding to the to-be-screened identifier from the channel data according to the target channel identifier, wherein the to-be-processed data comprises at least one to-be-extracted information;
when the data to be processed only comprises one piece of information to be extracted, taking the information to be extracted as target information;
when the data to be processed comprises a plurality of information to be extracted, sequencing each information to be extracted according to a preset importance degree, and taking the information to be extracted in a first order as target information.
Optionally, the channel data includes a weight corresponding to each of the channel identifications;
the step of sorting each piece of information to be extracted according to a preset importance degree comprises the following steps:
acquiring a channel identifier and a weight corresponding to each piece of information to be extracted;
and arranging each piece of information to be extracted according to the weight corresponding to each piece of information to be extracted.
Optionally, the data to be processed includes first information to be extracted and second information to be extracted, the first information to be extracted includes first obtaining time, the first information to be extracted corresponds to a first weight, the second information to be extracted includes second obtaining time, and the second information to be extracted corresponds to a second weight, where the method further includes:
when the first weight and the second weight are the same in size, determining the ordering relation between the first information to be extracted and the second information to be extracted according to the first acquisition time and the second acquisition time;
when the first obtaining time is shorter than the second obtaining time, arranging the first information to be extracted to be before the second information to be extracted;
and when the first acquisition time is longer than the second acquisition time, arranging the first information to be extracted behind the second information to be extracted.
Optionally, the method further comprises:
when the first acquisition time is equal to the second acquisition time, sending a prompt message;
and responding to selection operation of a user according to the prompt information, and determining the target information according to the selection operation.
In a second aspect, an embodiment of the present application provides an information obtaining apparatus, which is applied to a computer device, where the computer device stores channel data, where the channel data includes a plurality of channel identifiers, and the apparatus includes:
the acquisition module is used for acquiring the identifier to be screened;
the determining module is used for determining a target channel identifier according to the identifier to be screened; the device is used for acquiring to-be-processed data corresponding to the to-be-screened identifier from the channel data according to the target channel identifier, wherein the to-be-processed data comprises at least one to-be-extracted information;
the extraction module is used for taking the information to be extracted as target information when the data to be processed only comprises one piece of information to be extracted; when the data to be processed comprises a plurality of information to be extracted, sequencing each information to be extracted according to a preset importance degree, and taking the information to be extracted in a first order as target information.
Optionally, the channel data includes a weight corresponding to each of the channel identifications;
the extraction module comprises:
the extraction submodule is used for acquiring a channel identifier and a weight corresponding to each piece of information to be extracted; and arranging each piece of information to be extracted according to the weight corresponding to each piece of information to be extracted.
Optionally, the to-be-processed data includes first to-be-extracted information and second to-be-extracted information, the first to-be-extracted information includes first obtaining time, the first to-be-extracted information corresponds to a first weight, the second to-be-extracted information includes second obtaining time, the second to-be-extracted information corresponds to a second weight, and the extracting sub-module is specifically configured to:
when the first weight and the second weight are the same in size, determining the ordering relation between the first information to be extracted and the second information to be extracted according to the first acquisition time and the second acquisition time; when the first obtaining time is shorter than the second obtaining time, arranging the first information to be extracted to be before the second information to be extracted; and when the first acquisition time is longer than the second acquisition time, arranging the first information to be extracted behind the second information to be extracted.
Optionally, the extracting sub-module is further specifically configured to:
when the first acquisition time is equal to the second acquisition time, sending a prompt message; and responding to selection operation of a user according to the prompt information, and determining the target information according to the selection operation.
In a third aspect, an embodiment of the present application provides a computer device, where the computer device includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, the computer device executes the information acquisition method according to any one of the first aspect.
In a fourth aspect, an embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when running, a computer device where the readable storage medium is located to execute the information acquisition method in any one of the first aspect.
Compared with the prior art, the beneficial effects provided by the application comprise: by adopting the information acquisition method, the information acquisition device, the computer equipment and the readable storage medium, the identification to be screened is acquired, the target channel identification is determined according to the identification to be screened, the data to be processed corresponding to the identification to be screened can be acquired from the channel data according to the target channel identification, and when the data to be processed only comprises one piece of information to be extracted, the information to be extracted is taken as the target information; when the data to be processed comprises a plurality of information to be extracted, sequencing each information to be extracted according to a preset importance degree, taking the information to be extracted in the first order as target information, and conveniently acquiring required information.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Furthermore, the terms "first," "second," and the like are used merely to distinguish one description from another, and are not to be construed as indicating or implying relative importance.
The following detailed description of embodiments of the present application will be made with reference to the accompanying drawings.
With the development of internet technology, enterprises pay more and more attention to the acquisition of user information, when the enterprises sell commodities or develop products, the enterprises can obtain more benefits obviously by processing in a targeted manner, and due to the fact that the existing platforms used by the users are numerous, the enterprises want to perform subsequent processing from the numerous platforms or acquire useful information, and the enterprises are very difficult. Based on this, an embodiment of the present application provides an information obtaining method, which is applied to a computer device, where the computer device stores channel data, and the channel data includes a plurality of channel identifiers, as shown in fig. 1, the method includes steps S201 to S205.
Step S201, an identifier to be screened is obtained.
And step S202, determining a target channel identifier according to the identifier to be screened.
Step S203, acquiring to-be-processed data corresponding to the to-be-screened identifier from the channel data according to the target channel identifier, wherein the to-be-processed data comprises at least one to-be-extracted information.
Step S204, when the data to be processed only comprises one piece of information to be extracted, the information to be extracted is taken as target information.
Step S205, when the data to be processed includes a plurality of pieces of information to be extracted, sorting each piece of information to be extracted according to a preset importance degree, and using the first order information to be extracted as target information.
The source of the channel data can be a plurality of different channels, for example, the channel data can include information from a certain chat platform a, including the nickname of the user on the certain chat platform a, the registration time, the mobile phone number filled by the registration number, the age filled by the registration, and the like. The channel data can also come from a certain shopping platform B and comprise information such as a nickname of a user on the certain shopping platform B, registration time, a mobile phone number for registration and filling, age for registration and filling, a shopping history search keyword and the like. The source of the channel data can also be a certain social platform C, including a nickname, registration time, a mobile phone number filled in by registration, age, keywords of the concerned topic and the like of a user on the certain social platform C. Each channel may be pre-assigned a corresponding channel identification. The to-be-screened identifier may be an identifier of a data type required by an enterprise or a merchant, for example, the to-be-screened identifier may be a mobile phone number identifier, and after the mobile phone number identifier is obtained, corresponding to-be-screened data may be further obtained, that is, the user registers and fills a mobile phone number in a certain chat platform a, registers and fills a mobile phone number in a shopping platform B, and registers and fills a mobile phone number in a social platform C, that is, the to-be-screened data includes three mobile phone numbers. For another example, the identifier to be screened may be a shopping keyword identifier, and according to the shopping keyword identifier, the data to be processed, that is, the data related to the shopping keyword, that is, the shopping history search keyword of the user on a certain shopping platform B may be obtained, the information to be extracted is only one of the shopping history search keywords of the user on a certain shopping platform B, and the shopping history search keyword of the user on a certain shopping platform B may be directly extracted for use as the target information.
On the basis of the foregoing, the channel data includes a weight corresponding to each channel identifier, and an example of sorting each piece of information to be extracted according to a preset degree of importance is provided in the embodiment of the present application, as shown in fig. 2, and the method may be implemented by step S2051 and step S2052.
Step S2051, obtaining a channel identifier and a weight corresponding to each piece of information to be extracted.
Step S2052, ranking each piece of information to be extracted according to the weight corresponding to each piece of information to be extracted.
And when the data to be processed comprises a plurality of information to be extracted, the plurality of information to be extracted can be sequenced according to the preset weight corresponding to each channel identifier. For example, a merchant wants to recommend a product to a certain user, and the type of the product relates to age segmentation, so the merchant needs to acquire age-related information of the user, and it can be considered that the age information filled by the user on the social platform C is generally accurate, the age information filled by the user on the chat platform a also has a certain reference value, and the age information filled by the user on the shopping platform B does not have a too large reference value, and it can be preset that when the age information is acquired as information to be extracted, the weight of the identification information of the social platform C is the largest, the weight of the identification information of the chat platform a is the second, and the weight of the identification information of the shopping platform B is smaller. Therefore, the ages of the users registered and filled in the social platform C can be arranged in the head and tail, the ages of the users registered and filled in the chat platform A can be arranged in the second place, and the ages of the users registered and filled in the shopping platform B can be arranged in the third place. After the arrangement is completed, the age of the user who is most arranged and registered on the social platform C may be selected as the target information.
On this basis, the data to be processed includes first information to be extracted and second information to be extracted, where the first information to be extracted includes first obtaining time, the first information to be extracted corresponds to a first weight, the second information to be extracted includes second obtaining time, and the second information to be extracted corresponds to a second weight, and an example of determining a ranking relationship between the first information to be extracted and the second information to be extracted according to the first obtaining time and the second obtaining time when the first weight and the second weight are the same in magnitude is further provided, and the method may be implemented by the following steps:
and when the first acquisition time is less than the second acquisition time, arranging the first information to be extracted before the second information to be extracted.
And when the first acquisition time is longer than the second acquisition time, arranging the first information to be extracted behind the second information to be extracted.
It should be appreciated that situations may arise where the weights of the data acquired by the two channels are equal. For example, businesses would like to obtain and compare nickname information for users in order to revise the nickname specifications at the time of registration. It can be considered that, when the nickname related information is acquired, the nickname information written by the user on the chat platform a and the nickname information written on the social platform C have a relatively high referential property, while the nickname information written on the shopping platform B does not have a relatively high referential value, and therefore, the weight of the identification information having the chat platform a and the weight of the identification information having the social platform C can be set to be as large, while the weight of the identification information having the shopping platform B is relatively small. That is, the first information to be extracted may be a nickname of the user on the chat platform a, the second information to be extracted may be a nickname of the user on the social platform C, and the weight of the nickname of the user on the chat platform a is the same as the weight corresponding to the nickname of the user on the social platform C. The update time of the nickname of the user on the chat platform a (first acquisition time) and the update time of the nickname of the user on the social platform C (second acquisition time) may be acquired. If the update time of the nickname of the user on the chat platform A is closer to the current time point, the nickname of the user on the chat platform A can be selected as the target information to be extracted. Specifically, reference may be made to [ "web _ nickname", [ { time:1574949191972, channel: "app _ nickname" }, { time:1574949191990, channel: "wx _ nickname" }, "wb _ nickname" ], wherein nicknames "web _ nickname", "app _ nickname", "wx _ nickname", and "wb _ nickname" from different channels are the highest in weight, but the update time "1574949191972" of "app _ nickname" is closer to the update time "1574949191990" of "wx _ nickname", and the weight of "wb _ kname" is the lowest, so in the present embodiment, nickname "may be selected as the target information for obtaining the target information. By adopting the scheme, the display quality of multi-channel integrated data can be improved, and more accurate market information is given, so that the decision validity is improved, and the research and development efficiency is improved.
On the basis, when the first acquisition time is equal to the second acquisition time, sending a prompt message; and responding to selection operation of a user according to the prompt information, and determining the target information according to the selection operation. In the embodiment of the present application, if the weights and the obtaining times (i.e., the update times) of the two pieces of information to be extracted are the same, a prompt message may be popped up and manually selected by the user. It should be understood that in other embodiments of the present application, the data structure representing the weighted channel may be some other collection type data structure besides an array. The character strings representing channels may also be represented by other channel-tagged data structures.
The embodiment of the present application provides aninformation obtaining apparatus 110, which is applied to a computer device, where the computer device stores channel data, where the channel data includes a plurality of channel identifiers, as shown in fig. 3, the apparatus includes:
an obtainingmodule 1101, configured to obtain an identifier to be filtered.
A determiningmodule 1102, configured to determine a target channel identifier according to the identifier to be filtered; and the system is used for acquiring to-be-processed data corresponding to the to-be-screened identifier from the channel data according to the target channel identifier, wherein the to-be-processed data comprises at least one piece of to-be-extracted information.
An extractingmodule 1103, configured to, when the to-be-processed data only includes one piece of to-be-extracted information, use the to-be-extracted information as target information; when the data to be processed comprises a plurality of information to be extracted, sequencing each information to be extracted according to a preset importance degree, and taking the information to be extracted in a first order as target information.
Further, the channel data comprises a weight corresponding to each channel identification;
theextraction module 1103 includes:
the extraction submodule is used for acquiring a channel identifier and a weight corresponding to each piece of information to be extracted; and arranging each piece of information to be extracted according to the weight corresponding to each piece of information to be extracted.
Further, the data to be processed includes first information to be extracted and second information to be extracted, the first information to be extracted includes first obtaining time, the first information to be extracted corresponds to a first weight, the second information to be extracted includes second obtaining time, the second information to be extracted corresponds to a second weight, and the extracting sub-module is specifically configured to:
when the first weight and the second weight are the same in size, determining the ordering relation between the first information to be extracted and the second information to be extracted according to the first acquisition time and the second acquisition time; when the first obtaining time is shorter than the second obtaining time, arranging the first information to be extracted to be before the second information to be extracted; and when the first acquisition time is longer than the second acquisition time, arranging the first information to be extracted behind the second information to be extracted.
Further, the extraction sub-module is specifically further configured to:
when the first acquisition time is equal to the second acquisition time, sending a prompt message; and responding to selection operation of a user according to the prompt information, and determining the target information according to the selection operation.
The embodiment of the present application provides acomputer device 100, where thecomputer device 100 includes a processor and a non-volatile memory storing computer instructions, and when the computer instructions are executed by the processor, thecomputer device 100 executes any one of the information acquisition methods described above. As shown in fig. 4, fig. 4 is a block diagram of acomputer device 100 according to an embodiment of the present disclosure. Thecomputer apparatus 100 includes aninformation acquisition device 110, a memory 111, a processor 112, and acommunication unit 113.
To achieve data transmission or interaction, the memory 111, the processor 112 and thecommunication unit 113 are electrically connected to each other directly or indirectly. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. Theinformation acquiring apparatus 110 includes at least one software functional module which can be stored in the memory 111 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of thecomputer device 100. The processor 112 is used for executing executable modules stored in the memory 111, such as software functional modules and computer programs included in theinformation acquisition apparatus 110.
An embodiment of the present application provides a readable storage medium, where the readable storage medium includes a computer program, and the computer program controls, when running, a computer device where the readable storage medium is located to execute any one of the foregoing information acquisition methods.
In summary, with the information obtaining method, the information obtaining apparatus, the computer device, and the readable storage medium provided in the embodiments of the present application, by obtaining an identifier to be screened, and determining a target channel identifier according to the identifier to be screened, to further obtain to-be-processed data corresponding to the identifier to be screened from the channel data according to the target channel identifier, when the to-be-processed data only includes one piece of to-be-extracted information, the to-be-extracted information is used as target information; when the data to be processed comprises a plurality of information to be extracted, sequencing each information to be extracted according to a preset importance degree, taking the information to be extracted in the first order as target information, and conveniently acquiring required information.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.