Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the specific embodiments of the present invention and the accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. 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 invention.
The embodiment of the invention provides a service recall method, a system and a server in a multi-service sharing recall mode, which are used for enabling different services to share and multiplex one recall mode, realizing the sharing and multiplexing of a service recall system in the multi-service sharing recall mode and saving the cost. Embodiments of the present invention provide a service recall method in a multi-service sharing recall mode, where an execution subject of the method may be, but is not limited to, a server or an apparatus or system capable of being configured to execute the method provided in the embodiments of the present invention.
For convenience of description, the following description will be made of an embodiment of the method, taking an execution subject of the method as a server capable of executing the method as an example. It is understood that the implementation of the method by the server is merely an exemplary illustration and should not be construed as a limitation of the method.
Fig. 1 is a flowchart of a service recall method in a multi-service sharing recall mode according to an embodiment of the present invention, where the method in fig. 1 may be executed by a server, and as shown in fig. 1, the method may include:
step 101, at least one recall mode corresponding to the service is obtained.
The relationship of the service to the recall mode is pre-configured.
The service may be a cross-border service or a domestic service. For example, the service may be service a, service B as shown in fig. 2.
The recall mode may be implemented using a corresponding recall module. For example, as shown in fig. 2, the crowd recall mode may be implemented by a crowd recall module, the tag recall mode may be implemented by a tag recall module, the location recall mode may be implemented by a location recall module, the user relationship recall mode may be implemented by a user relationship recall module, and the content association recall mode may be implemented by a content association recall module.
Wherein at least two services are configured with at least one same recall mode.
For example, the service a as shown in fig. 2 is configured with a crowd recall mode and a tag recall mode, and the service B is configured with a crowd recall mode, a tag recall mode, a location recall mode, a user relationship recall mode, and a content association recall mode. And the service A and the service B are both configured with a crowd recall mode and a tag recall mode.
And 102, acquiring the recall content corresponding to the service based on at least one recall mode.
Following the above example, the recall content corresponding to service a may be obtained based on the crowd recall mode and/or the tag recall mode.
The embodiment of the invention acquires the recall content corresponding to the service by acquiring at least one recall mode corresponding to the service and based on at least one recall mode. The relation between the services and the recall mode is preconfigured, and at least two services are configured with at least one same recall mode, so that different services can share and multiplex one recall mode, the sharing and multiplexing of a service recall system in a multi-service sharing recall mode are realized, and the cost is saved.
Optionally, as an embodiment, when the recall mode includes a crowd recall mode, the step 102 may be specifically implemented as:
acquiring a crowd identification to which a user identification corresponding to the service belongs;
and inquiring the content corresponding to the crowd identification, and returning the content serving as the recall content corresponding to the service.
It should be understood that the correspondence between the user identifier and the crowd identifier, and the correspondence between the crowd identifier and the recalled content are stored in advance.
In the embodiment of the invention, the content corresponding to the query crowd identification can be queried in an inverted search engine.
When the method is implemented specifically, for example, the user identifier corresponding to the service is used as input, the crowd list is queried according to the user identifier to obtain the crowd identifier described by the user identifier, the content corresponding to the crowd identifier is queried according to the crowd identifier, and the content is returned as the recall content corresponding to the service.
Optionally, as an embodiment, when the recall mode includes a tag recall mode, step 102 may be specifically implemented as:
acquiring label information corresponding to a user identifier corresponding to the service;
and inquiring the content corresponding to the activity list corresponding to the label information, and returning the content serving as the recall content corresponding to the service.
It should be understood that the correspondence between the user identifier and the tag information, and the correspondence between the tag information and the recall content are stored in advance.
When the present invention is implemented specifically, for example, a user identifier corresponding to a service is used as an input, a tag list is queried according to the user identifier to obtain tag information corresponding to the user identifier, an activity list corresponding to the user identifier is queried according to the tag information, content corresponding to the activity list is obtained, and the content is returned as recall content corresponding to the service.
Optionally, as an embodiment, when the recall mode includes a location recall mode, step 102 may be specifically implemented as:
acquiring label information corresponding to the position where the service is started;
and inquiring the content corresponding to the label information, and returning the content serving as the recall content corresponding to the service.
It should be understood that the correspondence between the position and the tag information, and the correspondence between the tag information and the recall content are stored in advance.
When the present invention is implemented specifically, for example, a location where the service is started is used as an input, and the location information corresponding to the location may include longitude and latitude information of the location. And inquiring corresponding label information according to the position, such as the label information of a commercial district, a city, a custom, the current weather condition, a holiday and the like where the position is located. And then inquiring the content corresponding to the label information according to the label information, and returning the content as the recall content corresponding to the service.
Optionally, as an embodiment, when the recall mode includes a user relationship recall mode, step 102 may be specifically implemented as:
obtaining a social list to which a user identifier corresponding to the service belongs;
and querying the content corresponding to at least one other user identifier associated with the user identifier in the social list, and returning the content serving as the recall content corresponding to the service.
It should be understood that the correspondence between the user identifier and other user identifiers in the social list, and the correspondence between other user identifiers and the recalled content, are stored in advance.
When the method is implemented specifically, for example, the user identifier corresponding to the service is taken as input, the social list corresponding to the user identifier is inquired according to the user identifier, the content corresponding to at least one other user identifier associated with the user identifier is inquired in the social list, and the content is returned as the recall content corresponding to the service.
Optionally, as an embodiment, when the recall mode includes a content-associated recall mode, step 102 may be specifically implemented as:
acquiring a content list corresponding to a user identifier corresponding to the service;
and determining at least one other content associated with the content in the content list based on the relation between the contents, and returning the other content as the recall content corresponding to the service.
It is to be understood that the correspondence between the user identification and at least one content in the content list, which contains the association between this content and other content, is pre-stored.
When the method is implemented specifically, for example, a user identifier corresponding to a service is taken as an input, a content list corresponding to the user identifier is queried according to the user identifier, content corresponding to the user identifier is queried in the content list, at least one other content associated with the content in the content list is determined based on the relation between the contents, and the content is returned as a recall content corresponding to the service.
Optionally, as an embodiment, as shown in fig. 2, the service recall method in the multi-service sharing recall mode provided by the present invention further includes: the recall contents of a plurality of outputs are sorted, and the following three conditions can be adopted for specific implementation:
firstly, configuring a weight for the recalled content, wherein the weight is a numerical value evaluated according to a preset index;
and sequencing the recall contents of the configuration weights according to a preset rule.
It is understood that the recalled contents are first assigned weights according to need, and then sorted by assigning weights. The sorting of the recalled contents can be realized by adopting a sorting module.
The predetermined rule may be an ascending order rule or a descending order rule.
In practical applications, weights may be configured for the recalled content according to operational emphasis, for example, the recalled content 1 is configured with the weight 6, the recalled content 2 is configured with the weight 2, and the recalled content 3 is configured with the weight 9. Then, sorting the recalled contents according to the weight according to a descending sort rule, such as: the recall content 3, the recall content 1, and the recall content 2 are arranged in order to select one or more preferred recall contents to return.
Secondly, the recalled content is used as an input of a numerical evaluation model to obtain an output evaluation value;
and sequencing corresponding recall contents according to the evaluation value, wherein the numerical evaluation model is obtained by training based on the corresponding recall contents in the flow data.
The sorting of the recalled contents can be realized by adopting a sorting module.
The evaluation value may be a numerical value or a conversion rate.
For example, one traffic data recalls 10 pieces of recall content, which are recall content 1, recall content 2, recall content 3, recall content 4, recall content 5, recall content 6, recall content 7, recall content 8, recall content 9, and recall content 10, respectively. The 10 recalled contents are respectively used as input of a numerical evaluation model, and evaluation values of the 10 recalled contents are predicted. And sorting the evaluation values according to the size of the evaluation values of the 10 recalling contents, and selecting one or more preferred recalling contents for returning.
Thirdly, a combination of the first and second approaches is used. The implementation manners of the first and second methods are described above, and are not described herein again.
The embodiment of the invention selects one or more preferred recalling contents for returning by sequencing the plurality of recalling contents, so that the competition rate can be improved when a plurality of services compete for the same flow.
Optionally, as an embodiment, the step 101 may be specifically implemented as:
at least one recall mode tag configured for the service is obtained, one recall mode tag corresponding to a recall mode.
The service recall method in the multi-service sharing recall mode according to the embodiment of the present invention is described in detail above with reference to fig. 1 and 2, and the service recall system according to the embodiment of the present invention is described in detail below with reference to fig. 3.
Fig. 3 is a schematic structural diagram illustrating a service recall system in a multi-service sharing recall mode according to an embodiment of the present invention, where as shown in fig. 3, the system may include:
a mode obtaining module 301, configured to obtain at least one recall mode corresponding to a service, where a relationship between the service and the recall mode is preconfigured; wherein, at least two services are configured with at least one same recall mode;
a content obtaining module 302, configured to obtain, based on at least one recall mode, recall content corresponding to the service.
In one embodiment, when the recall mode comprises a crowd recall mode, the content acquisition module 302 comprises:
a first obtaining unit, configured to obtain a crowd identifier to which a user identifier corresponding to the service belongs;
and the first query unit is used for querying the content corresponding to the crowd identification and returning the content serving as the recall content corresponding to the service.
In one embodiment, when the recall mode comprises a tag recall mode, the content acquisition module 302 comprises:
a second obtaining unit, configured to obtain tag information corresponding to a user identifier corresponding to the service;
and the second query unit is used for querying the content corresponding to the activity list corresponding to the label information and returning the content serving as the recall content corresponding to the service.
In one embodiment, when the recall mode comprises a location recall mode, the content acquisition module 302 comprises:
a third obtaining unit, configured to obtain tag information corresponding to a location where the service is started;
and the third query unit is used for querying the content corresponding to the label information and returning the content serving as the recall content corresponding to the service.
In one embodiment, when the recall mode comprises a user relationship recall mode, the content acquisition module 302 comprises:
a fourth obtaining unit, configured to obtain a social list to which a user identifier corresponding to the service belongs;
and the fourth query unit is used for querying the content corresponding to at least one other user identifier associated with the user identifier in the social list and returning the content serving as the recall content corresponding to the service.
In one embodiment, when the recall mode comprises a content-associated recall mode, the content acquisition module 302 comprises:
a fifth obtaining unit, configured to obtain a content list corresponding to a user identifier corresponding to the service;
and the determining unit is used for determining at least one other content associated with the content in the content list based on the relation between the contents and returning the other content as the recall content corresponding to the service.
In one embodiment, the method further comprises:
a sorting module 303, configured to configure a weight for the recalled content, where the weight is a numerical value evaluated according to a predetermined index; and sequencing the recall contents of the configuration weights according to a preset rule.
In one embodiment, the method further comprises:
a sorting module 303, configured to use the recalled content as an input of a numerical evaluation model to obtain an output evaluation value; and sequencing corresponding recall contents according to the evaluation value, wherein the numerical evaluation model is obtained by training based on the corresponding recall contents in the flow data.
In one embodiment, the mode acquisition module 301 comprises:
a sixth obtaining unit, configured to obtain at least one recall mode tag configured for the service, where one recall mode tag corresponds to one recall mode.
The embodiment of the invention acquires the recall content corresponding to the service by acquiring at least one recall mode corresponding to the service and based on at least one recall mode. The relation between the services and the recall mode is preconfigured, and at least two services are configured with at least one same recall mode, so that different services can share and multiplex one recall mode, the sharing and multiplexing of a service recall system in a multi-service sharing recall mode are realized, and the cost is saved.
Fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification. Referring to fig. 4, at a hardware level, the electronic device includes a processor, and optionally further includes an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory to the memory and then runs the computer program to form the association device of the resource value-added object and the resource object on the logic level. The processor is used for executing the program stored in the memory and is specifically used for executing the following operations:
acquiring at least one recall mode corresponding to a service, wherein the relationship between the service and the recall mode is preconfigured, and at least two services are configured with at least one same recall mode;
and acquiring the recall content corresponding to the service based on at least one recall mode.
The embodiment of the invention acquires the recall content corresponding to the service by acquiring at least one recall mode corresponding to the service and based on at least one recall mode. The relation between the services and the recall mode is preconfigured, and at least two services are configured with at least one same recall mode, so that different services can share and multiplex one recall mode, the sharing and multiplexing of a service recall system in a multi-service sharing recall mode are realized, and the cost is saved.
The service recall method in the multi-service sharing recall mode disclosed in the embodiment of fig. 1 in this specification can be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in one or more embodiments of the present specification may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in hardware, in a software module executed by a hardware decoding processor, or in a combination of the hardware and software modules executed by a hardware decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further execute the service recall method in the multi-service sharing recall mode of fig. 1, which is not described herein again.
Of course, besides the software implementation, the electronic device in this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or logic devices.
Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction system which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.