CN114896290A - List processing method and device, electronic equipment and readable storage medium - Google Patents
List processing method and device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN114896290A CN114896290A CN202210454996.8A CN202210454996A CN114896290A CN 114896290 A CN114896290 A CN 114896290A CN 202210454996 A CN202210454996 A CN 202210454996A CN 114896290 A CN114896290 A CN 114896290A
- Authority
- CN
- China
- Prior art keywords
- pushing
- push
- ith
- list
- result
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 30
- 238000003860 storage Methods 0.000 title claims abstract description 12
- 238000000034 method Methods 0.000 claims abstract description 40
- 238000012545 processing Methods 0.000 claims abstract description 19
- 238000012163 sequencing technique Methods 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 14
- 230000001186 cumulative effect Effects 0.000 description 13
- 238000012216 screening Methods 0.000 description 8
- 238000012546 transfer Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000002776 aggregation Effects 0.000 description 2
- 238000004220 aggregation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004075 alteration Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
- G06F16/24578—Query processing with adaptation to user needs using ranking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application provides a list processing method, a list processing device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a first push list, wherein the first push list comprises n push results arranged in a first sequence; when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in the ith set; determining a first ordering parameter of an ith pushing result according to the occurrence frequency of each attribute of the ith pushing result in the ith set and the ordering of the ith pushing result in a first pushing list; and sorting the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list. Therefore, in the embodiment of the application, the problem that pushing results of a plurality of similar attributes are piled is avoided, and the use experience of a user is improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a list processing method and apparatus, an electronic device, and a readable storage medium.
Background
Conventionally, when generating a push list, a server of an application program generally pushes the list according to a relevance condition such as a user figure. The push result in the push list can embody information interested by the user, but the method is too direct and accurate for capturing preference information of the user, so that the server side is easy to push a large number of push results with similar attributes to the user.
Therefore, the server generates the push list directly according to the relevance conditions such as the user portrait, which easily causes the stacking of multiple push results with similar attributes, and thus causes poor user experience.
Disclosure of Invention
The embodiment of the application provides a list processing method and device, an electronic device and a readable storage medium, so as to solve the problem that the existing list processing mode easily causes the heap bundling of the push results of a plurality of similar attributes.
In a first aspect, an embodiment of the present application provides a list processing method, where the method includes:
acquiring a first push list, wherein the first push list comprises n push results arranged in a first sequence, and n is an integer greater than 1;
when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list;
determining a first ordering parameter of the ith pushing result according to the occurrence number of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list;
and sorting the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list.
In a second aspect, an embodiment of the present application provides a list processing apparatus, where the apparatus includes:
the system comprises a push list acquisition module, a push list acquisition module and a push list acquisition module, wherein the push list acquisition module is used for acquiring a first push list, the first push list comprises n push results which are arranged in a first sequence, and n is an integer which is more than 1;
the number-of-times counting module is used for acquiring the occurrence number of each attribute of the ith pushing result in the first pushing list in an ith set when i is an integer from 1 to n, wherein the ith set comprises the attributes of the 1 st to the i th pushing results in the first pushing list;
a first sorting parameter calculating module, configured to determine a first sorting parameter of an ith pushing result according to a number of occurrences of each attribute of the ith pushing result in the ith set and a ranking of the ith pushing result in the first pushing list;
and the first sequencing module is used for sequencing the n pushing results according to the first sequencing parameters of each pushing result to obtain a second pushing list.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the list processing method described above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the list processing method described above.
In an embodiment of the present application, a first push list may be obtained, where the first push list includes n push results arranged in a first order, and n is an integer greater than 1; then when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list; determining a first ordering parameter of the ith pushing result according to the occurrence frequency of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list; and sequencing the n pushing results according to the first sequencing parameter of each pushing result to obtain a second pushing list.
The larger the accumulated occurrence number of a certain attribute included in one push result is, and the later the ranking of the push result in the first push list is, the larger the first ranking parameter of the push result is. Therefore, in the embodiment of the application, according to the ranking of the pushing results in the first pushing list and the respective accumulated occurrence times of various attributes of the pushing results, the first ranking parameters of the pushing results are calculated, the pushing results are ranked again according to the first ranking parameters, the attributes of the stack can be broken up ingeniously, the original ranking results are respected, and therefore when the second pushing list obtained after the ranking is displayed, the user can see the broken pushing results, and the use experience of the user can be improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a list processing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of a specific implementation manner of a list processing method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a first push list provided in an embodiment of the present application;
fig. 4 is a schematic diagram of attributes included in each push result and corresponding first ordering parameters provided by the embodiment of the present application;
fig. 5 is a schematic diagram of reordering push results according to a first ordering parameter according to an embodiment of the present application;
fig. 6 is a block diagram of a list processing apparatus according to an embodiment of the present application.
Detailed Description
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, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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.
The list processing method of the embodiment of the application can be operated on terminal equipment or a server. The terminal device may be a local terminal device. When the method is operated as a server, cloud presentation can be performed.
In an optional embodiment, the cloud presentation refers to an information presentation manner based on cloud computing. In the cloud display operation mode, an operation main body and an information picture presentation main body of an information processing program are separated, storage and operation of a display switching method are completed on a cloud display server, and a cloud display client is used for receiving and sending data and presenting an information picture, for example, the cloud display client can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; however, the terminal device for processing the information data is a cloud display server at the cloud end. When browsing, a user operates the cloud display client to send an operation instruction to the cloud display server, the cloud display server performs coding compression on data according to operation instruction display information, returns the data to the cloud display client through a network, and finally decodes the data through the cloud display client and outputs display content.
In another alternative embodiment, the terminal device may be a local terminal device. The local terminal device stores an application program and is used for presenting an application interface. The local terminal device is used for interacting with a user through a graphical user interface, namely, downloading and installing an application program through the electronic device and running the application program conventionally. The manner in which the local terminal device provides the graphical user interface to the user may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the user by holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including an application screen and a processor for running the application, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
The embodiment of the application provides a list processing method and device, electronic equipment and a readable storage medium. In an embodiment of the present application, a first push list may be obtained, where the first push list includes n push results arranged in a first order, and n is an integer greater than 1; then when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list; determining a first ordering parameter of the ith pushing result according to the occurrence frequency of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list; and sequencing the n pushing results according to the first sequencing parameter of each pushing result to obtain a second pushing list.
The larger the accumulated occurrence number of a certain attribute included in one push result is, and the later the ranking of the push result in the first push list is, the larger the first ranking parameter of the push result is. Therefore, in the embodiment of the application, according to the ranking of the pushing results in the first pushing list and the respective accumulated occurrence times of various attributes of the pushing results, the first ranking parameters of the pushing results are calculated, the pushing results are ranked again according to the first ranking parameters, the attributes of the stack can be broken up ingeniously, the original ranking results are respected, and therefore when the second pushing list obtained after the ranking is displayed, the user can see the broken pushing results, and the use experience of the user can be improved.
In order to facilitate understanding of the list processing method provided in the embodiment of the present application, the following concepts are first explained:
the attributes are as follows: refers to the nature and relationship of things, such as: the building and the price area to which the house source information belongs are the attributes of the house source information.
Multi-dimensional: refers to a number of different attributes.
Scattering: the method comprises the steps of firstly obtaining a list of push results arranged according to the preference degree of a user, and then dispersing similar attributes in the list to obtain a new list, wherein each push result has one or more attributes needing to be distinguished.
Dynamic configuration: the configuration of the server is modified in a dynamic mode, so that the server does not need to be restarted, namely, the configuration information in the server is changed and taken into effect.
Bundling: the method refers to a push result that a plurality of similar attributes are continuously shown in a list, for example, the house source information of a plurality of first floors in a house source information list is sequentially shown.
User portrait: the method is an effective tool for sketching the appeal and the design direction of a target user and a contact user. For example, the user clicks on a product and the search browses a product. The system records the user portrait and is used for capturing the behavior preference of the user.
Page screening information: the method includes that retrieval key information selected by a user or retrieval key information preset by a system is referred, for example, if the user selects a city F, house source information of the city F is displayed in a list; or the user is in the G city and does not select other geographic positions, the house source information of the G city is displayed in a list.
The following describes the list processing method provided in the embodiment of the present application in detail. The list processing method can be applied to the processing of a house source information list, and can also be applied to the processing of a commodity information list, an advertisement information list and any other information list. It can be understood that the application scenarios of the list processing method provided in the embodiments of the present application are not limited to this.
Referring to fig. 1, a flow chart of steps of a list processing method in an embodiment of the present application is shown, and the method may include the following steps 101 to 105.
Step 101: a first push list is obtained.
The first push list comprises n push results arranged in a first sequence, wherein n is an integer greater than 1.
In the embodiment of the application, the first push list is a list obtained according to the user portrait and/or the page screening information, and the list comprises a plurality of push results which accord with user preferences or accord with the page screening information. I.e. the first push list may be a list determined from the user representation; or a list determined according to the page screening information (i.e. the retrieval key information selected by the user or the preset retrieval key information); or a list determined by combining the user portrait after the page screening information is acquired.
The server may generate the first push list when receiving a list request sent by the terminal device. For example, when the terminal device receives a click operation of a user on a search control displayed in a search page, the terminal device sends the list request to a server; or, in the case that the terminal device detects a page refresh operation or a filtering operation for information in a page, the list request is sent to the server.
In addition, the push result may be, for example, a product in a commodity page, house source information in a house source page, and the like.
Step 102: when i is each integer from 1 to n, acquiring the occurrence number of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list.
For example, the room source information list includes 3 pieces of room source information, where the attribute of the 1 st room source information is: "first floor tray", "transfer"; the attribute of the 2 nd house source information is: "second floor disc", "rent"; the 3 rd house source information has the following attributes: "first floor disc", "rent"; when the first ranking parameter of the 1 st house source information is calculated, the cumulative occurrence number of the attribute of 'first floor' in the 1 st house source information is 1, and the cumulative occurrence number of the attribute of 'transfer' is 1; when the first ranking parameter of the 2 nd house source information is calculated, the cumulative occurrence number of the attribute of 'second floor' in the 2 nd house source information is 1, and the cumulative occurrence number of the attribute of 'rent' is 1; when the first ranking parameter of the 3 rd house source information is calculated, the cumulative occurrence number of the attribute of "first floor" in the 3 rd house source information is 2, and the cumulative occurrence number of the attribute of "rent" is 2.
Step 103: determining a first sorting parameter of the ith pushing result according to the occurrence number of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list.
The first order is a ranking order of the pushing results in the first pushing list, namely an original ranking order.
In addition, in the embodiment of the present application, the larger the cumulative occurrence number of a certain attribute included in one push result is, and the later the push result is ranked in the first push list, the larger the first ranking parameter of the push result is. Therefore, in the embodiment of the application, according to the ranking of the pushing results in the first pushing list and the respective accumulated occurrence times of various attributes of the pushing results, the first ranking parameters of the pushing results are calculated, so that the pushing results are ranked again according to the first ranking parameters, the attributes occurring in the bundle can be ingeniously scattered, the original ranking, namely the result of the first order, is respected, and the use experience of a user is improved.
Step 104: and sorting the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list.
The first sorting parameter is used as a sorting basis of the pushing result in the first pushing list; specifically, the sorting is performed according to the size of the first sorting parameter of each push result, for example, the push results in the first push list may be sorted in the order from small to large of the first sorting parameter.
In addition, the list processing method of the embodiment of the application can be applied to a server and can also be applied to terminal equipment. When the second push list generated in step 104 is applied to the server, the second push list may be sent by the server to the terminal device for presentation, and when the second push list is applied to the terminal device, the second push list generated in step 104 may be directly presented at the terminal device.
In the embodiment of the application, the second push list is obtained after the push results are sorted according to the first sorting parameters. The pushing results of the attributes contained in the second pushing list are uniformly sorted, no similar attribute pushing situation exists, and the original ranking sequence, namely the first sequence, is respected.
As can be seen from the foregoing steps 101 to 104, in an embodiment of the present application, a first push list can be obtained, where the first push list includes n push results arranged in a first order, and n is an integer greater than 1; then when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list; determining a first ordering parameter of the ith pushing result according to the occurrence frequency of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list; and sequencing the n pushing results according to the first sequencing parameters of each pushing result to obtain a second pushing list for displaying, wherein the first pushing list is not used for displaying in the application.
The larger the accumulated occurrence number of a certain attribute included in one push result is, and the later the ranking of the push result in the first push list is, the larger the first ranking parameter of the push result is. Therefore, in the embodiment of the application, according to the ranking of the pushing results in the first pushing list and the respective accumulated occurrence times of various attributes of the pushing results, the first ranking parameters of the pushing results are calculated, the pushing results are ranked again according to the first ranking parameters, the attributes of the stack can be broken up ingeniously, the original ranking results are respected, and therefore when the second pushing list obtained after the ranking is displayed, the user can see the broken pushing results, and the use experience of the user can be improved.
Optionally, the determining, according to the number of occurrences of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list, a first ranking parameter of the ith pushing result includes:
determining a first sorting parameter of the ith pushing result according to predetermined weight values of different attributes, the occurrence frequency of each attribute of the ith pushing result in the ith set, the sorting of the ith pushing result in the first pushing list and a predetermined weight value of the first order.
Therefore, in the embodiment of the application, the obtained first push list includes a plurality of push results, and the attribute of each push result includes at least one; when the first sequencing parameter is calculated, the accumulated occurrence times of each attribute of the pushing result in the first pushing list can be directly obtained; and then, according to the weight value of each attribute, the ranking of each pushing result in the first pushing list and the weight value of the first sequence, the first ranking parameter of each pushing result can be determined.
For example, in an example, in a house source information page, 3 pieces of house source information, that is, 3 push results are included, and the attribute of the 1 st piece of house source information includes: first floor, transfer; the 2 nd house source information includes: the second building is rented; the 3 rd house source information comprises: first building, rent.
The data according to which the first ranking parameter of each house source information is calculated is as follows:
for the 1 st house source information, the data needed to be relied upon includes: the weight value of the attribute of "first floor", the weight value of the attribute of "transfer", the cumulative occurrence number of "first floor" is 1 time, the cumulative occurrence number of "transfer" is 1 time, the rank (i.e. 1) of the 1 st house source information in the first ranking, and the weight value of the first order.
For the 2 nd house source information, the data needed to be relied upon includes: the weight value of the attribute of 'second floor', the weight value of 'rent', the cumulative occurrence number of 'second floor' is 1 time, the cumulative occurrence number of 'rent' is 1 time, the rank (namely 2) of the 2 nd house source information in the first rank and the weight value of the first sequence.
For the 3 rd house source information, the data needed to be relied on includes: the weight value of the attribute of ' first floor ', the weight value of the attribute of ' rent ', the accumulated occurrence number of ' first floor ' is 2 times, the accumulated occurrence number of rent ' is 2 times, the ranking (namely 3) of the 3 rd house source information in the first ranking and the weight value of the first sequence.
The size of the weight value indicates the priority or preference of the scattering, that is, the larger the weight value is, the push result with the attribute to which the weight value belongs is scattered preferentially. Optionally, an absolute value of a difference between the predetermined weight values of different attributes is smaller than a preset threshold, that is, a difference between the predetermined weight values of different attributes is smaller, so that the calculated first sorting parameters of different pushing results do not differ greatly, and thus a better scattering effect can be achieved.
Optionally, the determining a first sorting parameter of the ith pushing result according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order includes:
according to a first predetermined formulaCalculating the saidFirst ordering parameter f of ith push result i ;
Wherein,a weight value representing a predetermined jth attribute of the ith push outcome,number of occurrences, w, of a jth attribute representing the ith push result in the ith set 0 A weight value representing the predetermined first order.
As can be seen from the above, in the embodiment of the present application, when determining the first sorting parameter of each push result in the first push list, the accumulated occurrence number of each attribute of the push result in the first push list, the predetermined weight value of each attribute, the ranking of the push result in the first push list, and the predetermined weight value of the first order need to be substituted into the first preset formula.
For example, in the above example, 3 pieces of house source information in the house source information page, where the weight value of the attribute "first floor" is 3, the weight value of the attribute "second floor" is 5, the weight value of the attribute "transfer" is 2, the weight value of the attribute "rent" is 4, and the weight value of the first order is 3; then the first ranking parameter of each room source information can be obtained according to the first preset formula as follows:
the first sequencing parameter of the 1 st house source information is: 3 × 1+2 × 1+3 × 1 ═ 8;
the first sequencing parameter of the 2 nd house source information is: 5 × 1+4 × 1+3 × 2 ═ 15;
the first sequencing parameter of the 3 rd house source information is: 3 × 2+4 × 2+3 × 3 ═ 23.
Optionally, the determining, according to predetermined weight values of different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order, a first ordering parameter of the ith push result includes:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result, client information corresponding to the first push list or other information related to a request;
in a first predetermined corresponding relationship, when there is no preset attribute corresponding to the request information associated with the first push list, determining a first sorting parameter of the ith push result according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and a predetermined weight value of the first order, where the first corresponding relationship is a corresponding relationship between the request information and the preset attribute.
In addition, the geographic position is the geographic position of the terminal equipment to be pushed, or the geographic position selected by the user; the device information is parameters of the terminal device to be pushed, such as a computer and a mobile phone, or models or device identifiers of the computer and the mobile phone; the category of the push result is the type of the push result in the first push list, for example, a rental category and a sale category; the client information corresponding to the first push list may be client information of the sending request, such as a client identifier, a version number, and the like.
In the embodiment of the present application, the preset attribute represents an attribute preferred by a user. The preset attribute can be determined according to the user image or the page screening information, that is, which attribute is preferred by the user can be determined according to the user image, or which attribute is selected by the user can be determined according to the page screening information, which attribute is preferred by the user is indicated.
The first corresponding relation between the request information and the preset attribute is stored in advance, and the first corresponding relation represents that the user preferences are different under different request information. And when the target attribute does not exist in the first corresponding relationship, the attribute of a certain preference is not screened by the user in the first push list, that is, the first push list is not a list of the attribute of the certain preference screened by the user, therefore, in this case, the first sorting parameters of each push result can be calculated according to the weight value of the predetermined first order, the sorting position of the push result in the first push list, the weight value of the predetermined unused attribute, and the respective accumulated occurrence times of various attributes of the push result, so that the push results are reordered according to the first sorting parameters, thereby scattering the attributes occurring in the bundle, and respecting the original sorting result.
Optionally, the method further includes:
setting a weight value of the target attribute as a first preset value under the condition that the target attribute exists in the first corresponding relation, and setting a weight value of an attribute except the target attribute in the attributes of the pushing result as a second preset value to obtain an updated attribute weight value, wherein the target attribute is a preset attribute corresponding to request information associated with the first pushing list, the first preset value is greater than the second preset value, and the difference between the first preset value and the second preset value is greater than a preset difference value;
determining a second sorting parameter of the ith pushing result according to the updated attribute weight value, the occurrence frequency of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list and a predetermined weight value of the first sequence;
and sorting the n pushing results according to the second sorting parameter of each pushing result to obtain a third pushing list.
In this embodiment, when there is a target attribute in the first correspondence, it indicates that the first push list is a list in which the user has screened a certain preferred attribute, and therefore, in this case, the weight value of the attribute preferred by the user (i.e., the target attribute) may be set to a first preset value, the weight values of the other attributes may be set to a second preset value, that is, the weight value of the attribute preferred by the user is increased, the weight values of the other attributes are decreased, and a difference between the weight value of the attribute preferred by the user and the weight values of the other attributes is made as large as possible, so as to obtain an updated attribute weight value, and thereby reorder the push results according to the second ordering parameter, according to the predetermined first order weight value, the ranking of the push results in the first push list, the updated weight value, and the respective cumulative occurrence number of each attribute of the push results, therefore, the push results with the preference attribute screened by the user are displayed in an aggregation manner, so that the user can conveniently view the push results with the preference attribute according with the user.
Optionally, the determining a first sorting parameter of the ith pushing result according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order includes:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result, client information corresponding to the first push list or other information related to a request;
in a predetermined third corresponding relation, under the condition that a value of a target parameter corresponding to request information associated with the first push list is a third preset value, determining a first ordering parameter of an ith push result according to predetermined weight values of different attributes, the occurrence frequency of each attribute of the ith push result in the ith set, the ordering of the ith push result in the first push list and a predetermined weight value of the first order;
and the third corresponding relation is the corresponding relation between the request information and the value of the target parameter.
In this embodiment of the application, when the request information includes one of a geographic location, device information, a category of a push result, and client information corresponding to a first push category, values of target parameters corresponding to different request information are different, for example, when the request information includes a geographic location, values of target parameters corresponding to different geographic locations are different.
When the request information includes at least two of the geographic position, the device information, the category of the push result, and the client information corresponding to the first push category, different information of each category may correspond to different values of the target parameter, for example, when the request information includes the geographic position and the device information, the values of the target parameters corresponding to different geographic positions are different, and the values of the target parameters corresponding to different device information are different, in this case, the priority of each item of information included in the request information may be preset, so that the subsequent process may be executed according to the value of the target parameter corresponding to the information with the highest priority. For example, when the request information includes the geographic location and the device information, the priority of the geographic location is set to be higher than the priority of the device information, and when both the geographic location and the device information associated with the first push list can be acquired, the subsequent processes can be executed according to the value of the target parameter corresponding to the geographic location.
In addition, the value of the target parameter is a third preset value, which indicates that the pushing result is normally broken up, that is, the first sorting parameter is calculated according to the accumulated occurrence number of each attribute of the pushing result in the first pushing list, the weight value of each attribute, the ranking of each pushing result in the first pushing list, and the weight value of the first order, so that the effect of breaking up and sorting the pushing result is achieved according to the first sorting parameter.
It should be noted that the value of the target parameter corresponding to the request information may be manually set, for example, the target parameter corresponding to different request information may be set to be a third preset value or a fourth preset value according to an actual list pushing requirement, where the third preset value may be 0 or another value, the fourth preset value may be 1 or another value, and the third preset value is different from the fourth preset value.
Optionally, the method further includes:
in the third corresponding relationship, setting a weighted value of a target attribute as a first preset value under the condition that a target attribute exists in a predetermined first corresponding relationship, and setting a weighted value of an attribute except the target attribute in the attributes of the pushing result as a second preset value to obtain an updated attribute weighted value, wherein the first corresponding relationship is a corresponding relationship between request information and a preset attribute, the target attribute is a preset attribute corresponding to the request information associated with the first pushing list, the first preset value is greater than the second preset value, and a difference between the first preset value and the second preset value is greater than a preset difference value;
determining a second sorting parameter of the ith pushing result according to the updated attribute weight value, the occurrence frequency of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list and a predetermined weight value of the first sequence;
sorting the n pushing results according to the second sorting parameter of each pushing result to obtain a third pushing list;
in the third corresponding relationship, a value of a target parameter corresponding to the request information associated with the first push list is the fourth preset value, and in the case that the target attribute does not exist in the first corresponding relationship, a first sorting parameter of the ith push result is determined according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and a predetermined weight value of the first order;
and sorting the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list.
The value of the target parameter is a fourth preset value, which indicates that the pushing result with the preference attribute is displayed in an aggregated manner under the condition that the preference attribute is predetermined, and the pushing result is normally broken up under the condition that the preference attribute is not predetermined.
In other words, in this case, whether the target attribute exists in the first corresponding relationship is searched, if so, the weight value of the target attribute is set to be a first preset value, the weight values of other attributes are set to be a second preset value, and the difference between the weight value of the target attribute and the weight values of other attributes is made as large as possible, so that an updated attribute weight value is obtained, and thus, according to a predetermined first-order weight value, the ranking of the push result in the first push list, the updated weight value, and the accumulated occurrence times of each attribute of the push result, a second ranking parameter of each push result is calculated, the push results are re-ranked according to the second ranking parameter, and then, the aggregation display of the push results with preference attributes is realized.
And when the target attribute does not exist in the first corresponding relation, calculating a first sorting parameter according to the accumulated occurrence frequency of each attribute of the pushing result in the first pushing list, the weight value of each attribute, the ranking of each pushing result in the first pushing list and the weight value of the first order, thereby achieving the effect of scattering and sorting the pushing results according to the first sorting parameter.
Optionally, the determining, according to the updated attribute weight value, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order, a second ranking parameter of the ith push result includes:
according to a second predetermined formulaCalculating a second sorting parameter' of the ith pushing result;
wherein,the ith representing the updated push resultThe weight values of the j attributes are,number of occurrences, w, of a jth attribute representing the ith push result in the ith set 0 A weight value representing the predetermined first order.
As can be seen from the above, in the embodiment of the present application, when determining the second sorting parameter of each push result in the first push list, the accumulated occurrence number of each attribute of the push result in the first push list, the updated weight value of each attribute, the ranking of the push result in the first push list, and the predetermined weight value of the first order need to be substituted into the second preset formula.
Optionally, the first preset value may be 100, and the second preset value may be 1.
As the above example, the properties of the 1 st house source information include the 3 house source information of the house source information page: "first floor tray", "transfer"; the attributes of item 2 house source information include: "second floor disc", "rent"; the attributes of item 3 of house source information include: first floor disc and rental. The weight value of the attribute of "first floor" is predetermined to be 3, the weight value of the attribute of "second floor" is predetermined to be 5, the weight value of the attribute of "assignment" is predetermined to be 2, the weight value of the attribute of "lease" is predetermined to be 4, and the weight value of the first order is predetermined to be 3.
If the first floor is a preset attribute, the updated weighted values of different attributes are as follows: the weight value of the attribute of "first floor" is 100, the weight value of the attribute of "second floor" is 1, the weight value of the attribute of "transfer" is 1, the weight value of the attribute of "lease" is 1, and the weight value of the first order is 3; obtaining the ranking parameters of each piece of house source information according to a first preset formula, wherein the ranking parameters are shown as follows:
the second sorting parameter of the 1 st house source information is as follows: 100 × 1+3 × 1 ═ 104;
the second sorting parameter of the 2 nd house source information is: 1 × 1+3 × 2 ═ 8;
the second sorting parameter of the 3 rd house source information is: 100 × 2+1 × 2+3 × 3 ═ 211.
Optionally, the sorting the n push results according to the second sorting parameter of each push result includes:
and sorting the pushing results according to the sequence of the second sorting parameters from large to small.
When the target attribute exists in the first corresponding relationship, the weight value of the attribute preferred by the user (namely, the target attribute) is set to be a first preset value, the weight values of other attributes are set to be a second preset value, namely, the weight value of the attribute preferred by the user is increased, the weight values of other attributes are reduced, the difference between the weight value of the attribute preferred by the user and the weight values of other attributes is made to be as large as possible, and the updated attribute weight value is obtained, so that in the subsequently calculated second sorting parameters, the second sorting parameter of the pushing result with the attribute preferred by the user is larger, and the second sorting parameter of the pushing result without the attribute preferred by the user is smaller. In this way, the push results are sorted according to the sequence of the second sorting parameter from large to small, and the push results with the user preference attribute can be displayed on top, so that the user can conveniently check the push results according with the preference of the user.
In addition, when the second sorting parameter is calculated, the accumulated occurrence times of various attributes of the pushing result and the ranking of the pushing result in the first pushing list are also calculated, and the larger the accumulated occurrence times of certain attribute included in one pushing result is, and the later the ranking of the pushing result in the first pushing list is, the larger the second sorting parameter of the pushing result is, so that after the pushing results are sorted according to the second sorting parameter, the pushing result with the user preference attribute can be set top, and a certain scattering effect can be achieved on the basis of respecting the original sorting.
For example, in the above example, the second sorting parameters of 3 pieces of room source information are 104, 8, and 211, respectively, and after the 3 pieces of room source information are sorted according to the descending order of the second sorting parameters, the obtained sorting result is:
1. item 3 house source information (211);
2. item 1 house source information (104);
3. item 2 house source information (8).
Therefore, according to the sorting mode of the second sorting parameter, the house source information with the first floor preferred by the user can be displayed at the top.
To sum up, in the embodiment of the present application, under the condition that the user does not filter a certain preference attribute in the first push list, the first ordering parameter is calculated in the above manner, and then the push results are ordered according to the first ordering parameter; and under the condition that the user filters a certain preference attribute in the first push list, updating the weight value of the attribute, calculating a second sorting parameter by adopting the mode, and sorting the push results according to the second sorting parameter. The method and the device achieve the aim of dynamically adjusting the sorting rule of the first push list in real time, thereby improving the development efficiency.
For example, when a user H browses a house source information push list of a city F, if a specific preference attribute is not screened, the push list sorts push results according to a first sorting parameter; and when the H user browses the house source information push list of the F city, the preference attribute of 'shops' is screened, and the house source information in the list sorts the push results according to the second sorting parameter, so that the house source information of the type of shops is displayed at the top.
Further, after presenting the second push list, the method may further comprise:
receiving an input operation of an attribute keyword;
responding to the input operation, and acquiring the input attribute keywords;
determining the attribute matched with the attribute keyword;
setting a weight value of an attribute matched with the attribute keyword as a first preset value, and setting a weight value of an attribute except the attribute matched with the attribute keyword in the attributes of the pushing result as a second preset value to obtain an updated attribute weight value, wherein the first preset value is greater than the second preset value, and the difference between the first preset value and the second preset value is greater than a preset difference value;
when i is an integer from 1 to n, determining a third sorting parameter of the ith pushing result according to the updated attribute weight value, the occurrence frequency of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list and the predetermined weight value of the first sequence;
sorting the pushing results according to the third sorting parameters to obtain a fourth pushing list;
and displaying the fourth push list.
Therefore, in the embodiment of the application, after the second push list which sorts the push results according to the first sorting parameter is displayed, the push results with the specific attributes can be displayed in a top-up mode according to the specific attributes screened by the user, so that multiple display modes of the push results can be realized.
Optionally, the determining a first sorting parameter of the ith pushing result according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order includes:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result, client information corresponding to the first push list or other information related to a request;
acquiring a weight value of an attribute of the push result from weight values of attributes corresponding to request information associated with the first push list in a predetermined second corresponding relationship, wherein the second corresponding relationship is a corresponding relationship between the request information and weight values of different attributes;
determining a first sorting parameter of the ith pushing result according to the target weight value, the occurrence number of each attribute of the ith pushing result in the ith set, the sorting of the ith pushing result in the first pushing list and a predetermined weight value of the first order.
As can be seen from the above, in the embodiment of the present application, the second correspondence between the request information and the weight values of different attributes is stored in advance. I.e. the same attribute may have different weight values under different request information (e.g. geographical location, device information, category of push result, etc.). For example:
if a user frequently browses house source information of the F city, the weight value of the attribute of shop of the F city is 10, and the weight value of the attribute of shop of the G city is 4;
if a user frequently uses the mobile phone to browse house source information, the weight value of the attribute of shop at the mobile phone end is 8, and the weight value of the attribute of shop at the computer end is 3;
if the user frequently browses the house source information of the rental category, the weight value of the attribute of shop under the rental category is 6, and the weight value of the attribute of shop under the selling category is 2.
As can be seen from the above, in the embodiment of the present application, the second corresponding relationship between the request information and the weight values of different attributes is pre-stored, so that the same attribute may have different weight values under different request information, thereby enriching the sorting manner of the first push list, and realizing that different sorting manners may operate simultaneously.
The second corresponding relationship may be pulled from the configuration center by the server, so that the user may modify the second corresponding relationship in the configuration center, for example, modify the request information in the second corresponding relationship, and/or modify the weight value of the attribute corresponding to the request information in the second corresponding relationship.
In addition, it should be noted that the server may pull the third corresponding relationship between the weighted value in the first order and the value of the request information and the target parameter from the configuration center, and similarly, the user may modify the value of the request information and/or the value of the target parameter in the weighted value in the first order and the third corresponding relationship in the configuration center.
Optionally, the method may also be applied to a terminal device; before the calculating the first sorting parameter of each of the push results according to the predetermined weight value of the first order and the weight values of different attributes of the push results, the method further includes:
sending a weight value request to a server under the condition that the weight value of the attribute of the push result is not stored in the terminal equipment;
and receiving a weight value of the attribute of the pushing result, which is sent by the server and is pre-stored in the server.
The weight value of the attribute of the push result stored in the server may be pulled from the configuration center.
In this embodiment of the application, when the first push list is acquired and the terminal device does not cache the weight value of the attribute of the push result in the first push list, the terminal device may request the server for the weight value of the corresponding attribute and cache the weight value in the terminal device.
Optionally, the method may also be applied to a terminal device; the method further comprises the following steps:
and when the weight value of the attribute stored in the server is changed, receiving the changed weight value of the attribute sent by the server.
In the embodiment of the application, when the weight values of different attributes stored in the server are changed, the terminal equipment side is synchronously updated.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the embodiments. Further, those skilled in the art will also appreciate that the embodiments described in the specification are presently preferred and that no particular act is required of the embodiments of the application.
In summary, as shown in fig. 2, the specific implementation of the list processing method in the embodiment of the present application can be described as follows in H1 to H5:
h1: receiving a list request sent by terminal equipment, and generating a first push list by a server according to user images or page screening information, wherein the first push list comprises n push results arranged in a first sequence.
H2: and searching whether the server stores weight values of different attributes corresponding to the request information associated with the first push list, and if not, acquiring the weight values from the configuration center.
H3: after acquiring the weight values of different attributes corresponding to the request information associated with the first push list, the server searches whether a preset attribute corresponding to the request information associated with the first push list is stored in the server, if so, step H5 is executed, and if not, step H4 is executed;
h4: and calculating a first sorting parameter of each pushing result according to the weight value of the attribute obtained in the step H2, the predetermined weight value of the first order, the ranking of the pushing result in the first pushing list and the respective accumulated occurrence number of each attribute of the pushing result, so as to reorder the pushing results according to the first sorting parameter, to break up the attributes of the bundled piles, and to respect the original sorting result.
H5: setting a weight value of a target attribute as a first preset value, setting weight values of attributes except the target attribute in attributes of the pushing results as second preset values, obtaining updated attribute weight values, calculating second sorting parameters of all pushing results according to the updated attribute weight values, the predetermined weight values of a first sequence, the ranking of the pushing results in a first pushing list and the accumulated occurrence times of all attributes of the pushing results, re-sorting the pushing results according to the second sorting parameters, and realizing the effect of displaying the preference attributes screened by a user on top, wherein the first preset value is greater than the second preset value, the difference between the first preset value and the second preset value is greater than a preset difference value, and the target attribute is a preset attribute corresponding to request information associated with the first pushing list.
The following illustrates a calculation flow of the sorting manner of the first sorting parameter and the second sorting parameter, as follows:
for example, the first push list is obtained as shown in fig. 3, which has a total of 8 push results, starting from 1 to 8, each square represents one push result, and each push result includes a plurality of attributes, such as the floor of the house source information, the floor price, and the like.
For example, the push result in the first push list includes A, B, C, D four attributes, where the four attributes and the first order weight values are as follows:
a attribute weight value: a is 5;
b attribute weight value: b ═ 4;
c attribute weight value: c is 3;
d, attribute weight value: d is 2;
first order (E) weight values: e ═ 1.5;
as shown in fig. 4, the first push list includes the 1 st to 8 th push results arranged in the first order.
Wherein, can be according to a first preset formulaThe first ordering parameter f of each push result can be calculated i (ii) a Wherein,a weight value representing a j-th attribute of an i-th push result determined in advance,number of occurrences, w, of jth attribute representing ith push result in ith set 0 Representing a predetermined first order of weight values.
For the first push result, as shown in fig. 4, there are A, B and D attributes, since each attribute in the first push result appears for the first time, the weight value of each attribute is calculated by multiplying 1, the rank of the first push result is 1, the first order weight value is 1.5, so the first order parameter is:
f 1 =1*5+1*4+1*2+1*1.5=12.5;
for the second push result, as shown in fig. 4, including A, C two attributes, the a attribute appears two times in a cumulative manner, the C attribute appears once, and the rank of the first push result is 2, so the first ranking parameter is:
f 2 =2*5+1*3+2*1.5=16;
the first ordering parameters for the 3 rd to 8 th push results are as follows:
f 3 =3*5+2*2+3*1.5=23.5;
f 4 =4*5+4*1.5=26;
f 5 =2*4+2*3+5*1.5=21.5;
f 6 =3*3+3*2+6*1.5=24;
f 7 =4*3+7*1.5=22.5;
f 8 =4*2+8*1.5=20;
after re-ordering according to the descending order of the numerical value of the first ordering parameter, as shown in fig. 5. Therefore, the sorting of the push results shown in fig. 5 realizes uniform sorting of a plurality of attributes, and respects the results of the original sorting without the bundling of similar attributes.
In addition, for example, the pre-set attributes corresponding to the request information associated with the first push list stored in advance are: if the attribute A is set to be 100, the weight values of other attributes of the pushing result in the first pushing list are set to be 1, the updated attribute weight value is obtained, and the second attribute weight value is set according to a second preset formula The second ordering parameter f of the ith push result can be calculated i′ So as to re-order the values of the second sorting parameter from larger to smallerSorting, namely realizing top-setting sorting of the A attributes; wherein,a weight value representing the jth attribute of the updated ith push result,number of occurrences, w, of jth attribute representing ith push result in ith set 0 A weight value representing the first order determined in advance, the ith set including attributes of the 1 st to i th push outcomes in the first order.
Here, it should be noted that: if the push result with the attribute a exists in the first push list, the second ranking score of the push result with the attribute a may be 100 at the lowest, which is far beyond the push result without the attribute a, so that after the push results are ranked according to the second ranking parameter from large to small, it is equivalent to top-ranking the push results with the attribute a.
In addition, the calculation formulas of the first sorting parameter and the second sorting parameter are basically the same, and only the weight values of specific attributes are different, so that the same set of codes can be called even if top sorting and scattered sorting are performed, development cost is saved, and development efficiency is improved.
Referring to fig. 6, which shows a block diagram of a list processing apparatus in an embodiment of the present application, the list processing apparatus 600 may include the following modules:
a push list obtaining module 601, configured to obtain a first push list, where the first push list includes n push results arranged in a first order, and n is an integer greater than 1;
a number-of-times counting module 602, configured to obtain, when i is an integer from 1 to n, a number of times that each attribute of an ith pushing result in the first pushing list appears in an ith set, where the ith set includes attributes of the 1 st to i th pushing results in the first pushing list;
a first sorting parameter calculating module 603, configured to determine a first sorting parameter of an ith pushing result according to the number of occurrences of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list;
a first sorting module 604, configured to sort the n push results according to the first sorting parameter of each push result, so as to obtain a second push list.
Optionally, the first sorting parameter calculating module 603 includes:
a first sorting parameter calculating sub-module, configured to determine a first sorting parameter of the ith pushing result according to a predetermined weight value of a different attribute, a number of occurrences of each attribute of the ith pushing result in the ith set, a ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order.
Optionally, the first ordering parameter calculation sub-module is specifically configured to:
according to a first predetermined formulaCalculating a first ordering parameter f of the ith push result i ;
Wherein,a weight value representing a predetermined jth attribute of the ith push outcome,number of occurrences, w, of a jth attribute representing the ith push result in the ith set 0 A weight value representing the predetermined first order.
Optionally, the first ordering parameter calculating sub-module includes:
a first request information obtaining unit, configured to obtain request information associated with the first push list, where the request information includes at least one of a geographic location, device information, a category of a push result, client information corresponding to the first push list, or other information related to a request;
a first ordering parameter calculating unit, configured to determine, when there is no preset attribute corresponding to the request information associated with the first push list in a predetermined first corresponding relationship, a first ordering parameter of an ith push result according to a weight value of a different predetermined attribute, an occurrence number of each attribute of the ith push result in the ith set, a ranking of the ith push result in the first push list, and a predetermined weight value of the first order, where the first corresponding relationship is a corresponding relationship between the request information and the preset attribute.
Optionally, the list processing apparatus 600 further includes:
a first weight value setting module, configured to set a weight value of the target attribute as a first preset value when the target attribute exists in the first corresponding relationship, and set a weight value of an attribute other than the target attribute in the attributes of the push result as a second preset value, so as to obtain an updated attribute weight value, where the target attribute is a preset attribute corresponding to request information associated with the first push list, the first preset value is greater than the second preset value, and a difference between the first preset value and the second preset value is greater than a preset difference value;
a second sorting parameter calculating module, configured to determine a second sorting parameter of the ith pushing result according to the updated attribute weight value, the number of occurrences of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order;
and the second sorting module is used for sorting the n pushing results according to the second sorting parameter of each pushing result to obtain a third pushing list.
Optionally, the second sorting module is specifically configured to:
and sorting the pushing results according to the sequence of the second sorting parameters from large to small.
Optionally, the first ordering parameter calculation sub-module is specifically configured to:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result, client information corresponding to the first push list or other information related to a request;
in a predetermined third corresponding relation, under the condition that a value of a target parameter corresponding to request information associated with the first push list is a third preset value, determining a first ordering parameter of an ith push result according to predetermined weight values of different attributes, the occurrence frequency of each attribute of the ith push result in the ith set, the ordering of the ith push result in the first push list and a predetermined weight value of the first order;
and the third corresponding relation is the corresponding relation between the request information and the value of the target parameter.
Optionally, the list processing apparatus 600 further includes:
a second weight value setting module, configured to set, in the third correspondence, a value of a target parameter corresponding to the request information associated with the first push list to be a fourth preset value, and set, when a target attribute exists in a predetermined first correspondence, a weight value of the target attribute to be a first preset value, and a weight value of an attribute other than the target attribute in attributes of the push result to be a second preset value, to obtain an updated attribute weight value, where the first correspondence is a correspondence between the request information and a preset attribute, the target attribute is a preset attribute corresponding to the request information associated with the first push list, the first preset value is greater than the second preset value, and a difference between the first preset value and the second preset value is greater than a preset difference value;
a third sorting parameter calculating module, configured to determine a second sorting parameter of the ith pushing result according to the updated attribute weight value, the number of occurrences of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order;
a third sorting module, configured to sort the n push results according to the second sorting parameter of each push result, so as to obtain a third push list;
a fourth sorting parameter calculating module, configured to, in the third correspondence, determine a first sorting parameter of an ith push result according to a predetermined weight value of a different attribute, a number of occurrences of each attribute of the ith push result in the ith set, a ranking of the ith push result in the first push list, and a predetermined weight value of the first order, where a value of a target parameter corresponding to request information associated with the first push list is the fourth preset value, and where the target attribute does not exist in the first correspondence;
and the fourth sorting module sorts the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list.
Optionally, the first ordering parameter calculating sub-module includes:
a second request information obtaining unit, configured to obtain request information associated with the first push list, where the request information includes at least one of a geographic location, device information, a category of a push result, client information corresponding to the first push list, or other request-related information;
an attribute weight value obtaining unit, configured to obtain, as a target weight value, a weight value of an attribute of the push result from among predetermined second correspondence relationships, which are correspondence relationships between request information and weight values of different attributes, and from among weight values of attributes corresponding to request information associated with the first push list;
a second sorting parameter calculating unit, configured to determine a first sorting parameter of the ith pushing result according to the target weight value, the number of occurrences of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list, and a predetermined weight value of the first order.
Optionally, the method is applied to a terminal device; the list processing apparatus 600 further comprises:
a request sending module, configured to send a weight value request to a server when a weight value of an attribute of the push result is not stored in the terminal device;
the first receiving module is configured to receive a weight value of an attribute of the push result, which is stored in the server in advance, and sent by the server.
Optionally, the list processing apparatus 600 further includes:
and the second receiving module is used for receiving the weight value of the changed attribute sent by the server when the weight value of the attribute stored in the server is changed.
Therefore, in the embodiment of the present application, a first push list can be obtained, where the first push list includes n push results arranged in a first order, and n is an integer greater than 1; then when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list; determining a first ordering parameter of the ith pushing result according to the occurrence frequency of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list; and sequencing the pushing results according to the first sequencing parameters of each pushing result to obtain a second pushing list.
The larger the accumulated occurrence number of a certain attribute included in one push result is, and the later the ranking of the push result in the first push list is, the larger the first ranking parameter of the push result is. Therefore, in the embodiment of the application, according to the ranking of the pushing results in the first pushing list and the respective accumulated occurrence times of various attributes of the pushing results, the first ranking parameters of the pushing results are calculated, the pushing results are ranked again according to the first ranking parameters, the attributes of the stack can be broken up ingeniously, the original ranking results are respected, and therefore when the second pushing list obtained after the ranking is displayed, the user can see the broken pushing results, and the use experience of the user can be improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present application further provides an electronic device, including:
one or more processors; and one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform the methods of embodiments of the present application.
Embodiments of the present application also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods of embodiments of the present application.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application 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.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. 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 terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means 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 terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means 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 terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the true scope of the embodiments of the application.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The above detailed description is given to a list processing method and apparatus provided by the present application, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (12)
1. A method of list processing, the method comprising:
acquiring a first push list, wherein the first push list comprises n push results arranged in a first sequence, and n is an integer greater than 1;
when i takes each integer from 1 to n, acquiring the occurrence frequency of each attribute of the ith pushing result in the first pushing list in an ith set, wherein the ith set comprises the attributes of the 1 st to i th pushing results in the first pushing list;
determining a first ordering parameter of the ith pushing result according to the occurrence number of each attribute of the ith pushing result in the ith set and the ranking of the ith pushing result in the first pushing list;
and sorting the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list.
2. The list processing method according to claim 1, wherein determining the first ordering parameter of the ith push result according to the number of occurrences of each attribute of the ith push result in the ith set and the ranking of the ith push result in the first push list comprises:
determining a first sorting parameter of the ith pushing result according to predetermined weight values of different attributes, the occurrence frequency of each attribute of the ith pushing result in the ith set, the sorting of the ith pushing result in the first pushing list and a predetermined weight value of the first order.
3. The list processing method according to claim 2, wherein the determining a first ordering parameter of the ith push result according to the predetermined weight values of the different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order comprises:
according to a first predetermined formulaCalculating a first ordering parameter f of the ith push result i ;
4. The list processing method according to claim 2, wherein the determining a first ordering parameter of the ith push result according to the predetermined weight values of the different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order comprises:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result and client information corresponding to the first push list;
in a first predetermined corresponding relationship, when there is no preset attribute corresponding to the request information associated with the first push list, determining a first ordering parameter of the ith push result according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order, where the first corresponding relationship is a corresponding relationship between the request information and the preset attribute.
5. The list processing method of claim 4, wherein the method further comprises:
setting a weight value of the target attribute as a first preset value under the condition that the target attribute exists in the first corresponding relation, and setting a weight value of an attribute except the target attribute in the attributes of the pushing result as a second preset value to obtain an updated attribute weight value, wherein the target attribute is a preset attribute corresponding to request information associated with the first pushing list, the first preset value is larger than the second preset value, and the difference between the first preset value and the second preset value is larger than a preset difference value;
determining a second sorting parameter of the ith pushing result according to the updated attribute weight value, the occurrence frequency of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list and a predetermined weight value of the first sequence;
and sorting the n pushing results according to the second sorting parameter of each pushing result to obtain a third pushing list.
6. The list processing method according to claim 5, wherein the sorting the n push results according to the second sorting parameter of each push result to obtain a third push list comprises:
and sorting the pushing results according to the sequence of the second sorting parameters from large to small.
7. The list processing method according to claim 2, wherein the determining a first ordering parameter of the ith push result according to the predetermined weight values of the different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order comprises:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result and client information corresponding to the first push list;
in a predetermined third corresponding relation, under the condition that a value of a target parameter corresponding to request information associated with the first push list is a third preset value, determining a first ordering parameter of an ith push result according to predetermined weight values of different attributes, the occurrence frequency of each attribute of the ith push result in the ith set, the ordering of the ith push result in the first push list and a predetermined weight value of the first order;
and the third corresponding relation is the corresponding relation between the request information and the value of the target parameter.
8. The list processing method of claim 7, wherein the method further comprises:
in the third corresponding relationship, setting a weighted value of a target attribute as a first preset value under the condition that a target attribute exists in a predetermined first corresponding relationship, and setting a weighted value of an attribute except the target attribute in the attributes of the pushing result as a second preset value to obtain an updated attribute weighted value, wherein the first corresponding relationship is a corresponding relationship between request information and a preset attribute, the target attribute is a preset attribute corresponding to the request information associated with the first pushing list, the first preset value is greater than the second preset value, and a difference between the first preset value and the second preset value is greater than a preset difference value;
determining a second sorting parameter of the ith pushing result according to the updated attribute weight value, the occurrence frequency of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list and a predetermined weight value of the first sequence;
sorting the n pushing results according to the second sorting parameter of each pushing result to obtain a third pushing list;
in the third corresponding relationship, a value of a target parameter corresponding to the request information associated with the first push list is the fourth preset value, and in the case that the target attribute does not exist in the first corresponding relationship, a first sorting parameter of the ith push result is determined according to a predetermined weight value of different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and a predetermined weight value of the first order;
and sorting the n pushing results according to the first sorting parameter of each pushing result to obtain a second pushing list.
9. The list processing method according to claim 2, wherein the determining a first ordering parameter of the ith push result according to the predetermined weight values of the different attributes, the number of occurrences of each attribute of the ith push result in the ith set, the ranking of the ith push result in the first push list, and the predetermined weight value of the first order comprises:
acquiring request information associated with the first push list, wherein the request information comprises at least one of a geographical position, equipment information, a category of a push result and client information corresponding to the first push list;
acquiring a weight value of an attribute of the pushing result from weight values of attributes corresponding to the request information associated with the first pushing list in a predetermined second corresponding relationship, wherein the second corresponding relationship is a corresponding relationship between the request information and weight values of different attributes;
determining a first sorting parameter of the ith pushing result according to the target weight value, the occurrence number of each attribute of the ith pushing result in the ith set, the ranking of the ith pushing result in the first pushing list and a predetermined weight value of the first order.
10. A list processing apparatus, characterized in that the apparatus comprises:
the system comprises a push list acquisition module, a push list acquisition module and a push list acquisition module, wherein the push list acquisition module is used for acquiring a first push list, the first push list comprises n push results which are arranged in a first sequence, and n is an integer which is more than 1;
the number-of-times counting module is used for acquiring the occurrence number of each attribute of the ith pushing result in the first pushing list in an ith set when i is an integer from 1 to n, wherein the ith set comprises the attributes of the 1 st to the i th pushing results in the first pushing list;
a first sorting parameter calculating module, configured to determine a first sorting parameter of an ith pushing result according to a number of occurrences of each attribute of the ith pushing result in the ith set and a ranking of the ith pushing result in the first pushing list;
and the first sequencing module is used for sequencing the n pushing results according to the first sequencing parameters of each pushing result to obtain a second pushing list.
11. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the list processing method according to any one of claims 1 to 9.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the list processing method according to any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210454996.8A CN114896290A (en) | 2022-04-24 | 2022-04-24 | List processing method and device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210454996.8A CN114896290A (en) | 2022-04-24 | 2022-04-24 | List processing method and device, electronic equipment and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114896290A true CN114896290A (en) | 2022-08-12 |
Family
ID=82719849
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210454996.8A Pending CN114896290A (en) | 2022-04-24 | 2022-04-24 | List processing method and device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114896290A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116405453A (en) * | 2023-04-23 | 2023-07-07 | 中航信移动科技有限公司 | Information pushing method based on multiple features, storage medium and electronic equipment |
CN116405452A (en) * | 2023-04-23 | 2023-07-07 | 中航信移动科技有限公司 | Information pushing method, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977405A (en) * | 2017-11-16 | 2018-05-01 | 北京三快在线科技有限公司 | Data reordering method, data sorting device, electronic equipment and readable storage medium storing program for executing |
CN108763318A (en) * | 2018-04-27 | 2018-11-06 | 达而观信息科技(上海)有限公司 | item recommendation method and device |
CN108960958A (en) * | 2018-04-27 | 2018-12-07 | 达而观信息科技(上海)有限公司 | item recommendation method and device |
CN109948023A (en) * | 2019-03-08 | 2019-06-28 | 腾讯科技(深圳)有限公司 | Recommended acquisition methods, device and storage medium |
CN110545233A (en) * | 2019-08-09 | 2019-12-06 | 五八有限公司 | information pushing method and device, electronic equipment and storage medium |
-
2022
- 2022-04-24 CN CN202210454996.8A patent/CN114896290A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107977405A (en) * | 2017-11-16 | 2018-05-01 | 北京三快在线科技有限公司 | Data reordering method, data sorting device, electronic equipment and readable storage medium storing program for executing |
CN108763318A (en) * | 2018-04-27 | 2018-11-06 | 达而观信息科技(上海)有限公司 | item recommendation method and device |
CN108960958A (en) * | 2018-04-27 | 2018-12-07 | 达而观信息科技(上海)有限公司 | item recommendation method and device |
CN109948023A (en) * | 2019-03-08 | 2019-06-28 | 腾讯科技(深圳)有限公司 | Recommended acquisition methods, device and storage medium |
CN110545233A (en) * | 2019-08-09 | 2019-12-06 | 五八有限公司 | information pushing method and device, electronic equipment and storage medium |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116405453A (en) * | 2023-04-23 | 2023-07-07 | 中航信移动科技有限公司 | Information pushing method based on multiple features, storage medium and electronic equipment |
CN116405452A (en) * | 2023-04-23 | 2023-07-07 | 中航信移动科技有限公司 | Information pushing method, storage medium and electronic equipment |
CN116405453B (en) * | 2023-04-23 | 2024-06-14 | 中航信移动科技有限公司 | Information pushing method based on multiple features, storage medium and electronic equipment |
CN116405452B (en) * | 2023-04-23 | 2024-08-09 | 中航信移动科技有限公司 | Information pushing method, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11727459B2 (en) | Search query-based replacement part interface | |
US7685200B2 (en) | Ranking and suggesting candidate objects | |
JP5736469B2 (en) | Search keyword recommendation based on user intention | |
CN114896290A (en) | List processing method and device, electronic equipment and readable storage medium | |
EP3139288A1 (en) | Item recommendation method and device | |
US8463779B2 (en) | Representative keyword selection | |
US20140172821A1 (en) | Generating filters for refining search results | |
CN109753601B (en) | Method and device for determining click rate of recommended information and electronic equipment | |
CN108648058B (en) | Product sorting method and device, electronic equipment and storage medium | |
CN111105269B (en) | Advertisement delivery processing method, device, equipment and storage medium | |
JP2006227994A (en) | Image retrieving/displaying apparatus, image retrieving/displaying method and program | |
US8655982B2 (en) | Information searching apparatus, number deciding method, information searching program, information searching system and recording medium | |
EP1913501A1 (en) | System and method for reordering a result set | |
CN110008396B (en) | Object information pushing method, device, equipment and computer readable storage medium | |
EP2864945A2 (en) | Generating application recommendations based on user feedback | |
US8346799B1 (en) | Recent content rank adjustment with inverted decay | |
EP2701111A1 (en) | Group composition based recommender system and method | |
CN114820123A (en) | Group purchase commodity recommendation method, device, equipment and storage medium | |
JP2009251957A (en) | Interest information specification system, interest information specification method, and program for interest information specification | |
JP6414192B2 (en) | Information processing apparatus, information processing method, and information processing program | |
JP2000148765A (en) | System and method for retrieval | |
CN112966176B (en) | Object display method and device, electronic equipment and readable storage medium | |
US20120166476A1 (en) | Object comparison via real time metadata calculation | |
CN116628338A (en) | Mobile terminal product recommendation method, system, computer and readable storage medium | |
CN108334522B (en) | Method for determining customs code, and method and system for determining type information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |