# US 2021/0334297 A1 · Comments-ordering method, apparatus, device and computer storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0334297 A1
- Document ID: US20210334297A1
- Status: Published application
- Kind: A1
- Application number: 17/212,237
- Filed: 2021-03-25
- Published: 2021-10-28
- Earliest claimed: 2020-04-27
- Assignees: Baidu Online Network Technology (Beijing) Co., Ltd.
- Applicants: Baidu Online Network Technology (Beijing) Co., Ltd.
- Inventors: Jianmin Bai; Junling Liu; Kechen Lin
- Web page: https://patentgrep.com/patent/US20210334297A1

## CPC

- G06F 16/31: Indexing; Data structures therefor; Storage structures
- G06F 16/24578: {using ranking}
- G06F 16/335: Filtering based on additional data, e.g. user or group profiles (filtering in web context G06F16/9535, G06F16/9536)
- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06F 16/9577: {Optimising the visualization of content, e.g. distillation of HTML documents}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure provides a method for ordering comments, and apparatus, device and computer storage medium thereof, which relates to the technical field of big data. A specific implementation solution is as follows: obtaining comments data, ordering the comments based on basic attributes of the comment to obtain a first ordering result, and establishing an index for the first ordering result; in response to obtaining an event of the user triggering display of the comments, obtaining the first ordering result through the index, and performing ordering adjustment on the first ordering result based on the user's feature data to obtain a second ordering result which serves as a basis for displaying the comments to the user. The present disclosure can meet the user's personalized needs for comment ordering.

## Claims

### Claim 1

A method for ordering comments, wherein the method comprises:
obtaining comments data, ordering the comments based on basic attributes of the comment to obtain a first ordering result, and establishing an index for the first ordering result;
in response to obtaining an event of a user triggering display of the comments, obtaining the first ordering result through the index, and performing ordering adjustment on the first ordering result based on the user's feature data to obtain a second ordering result which serves as a basis for displaying the comments to the user.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the obtaining comment data comprises:
obtaining comment data pushed by the distributed message queue, triggered by a comment alteration event; or periodically obtaining the comment data from the distributed message queue;
in response to obtaining the event of the user triggering display of the comments, the method further comprises: obtaining comment data from the distributed message queue according to information of the event.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the ordering the comments based on basic attributes of the comments comprises:
obtaining a first ordering policy configuration which includes an operator combination employed by a first ordering policy;
according to the first ordering policy configuration, invoking operators to score the comments based on the basic attributes of the comments on which the operators depend to obtain score results of the comments.

### Claim 4 (depends on 3)

The method according to claim 3, wherein if the first ordering policy configuration includes more than one ordering policy, establishing an index for the first ordering result corresponding to each ordering policy.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the event of the user triggering display of the comments comprises:
an event of the user clicking a component for triggering display of comments on a webpage; or
an event of the user sliding the webpage to a comment display area; or
an event of the user of opening a webpage displaying comments by default; or
an event of the user of triggering display of comments via a voice instruction.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the performing ordering adjustment on the first ordering result based on the user's feature data comprises:
scoring the comments according to matching degrees of the comments and the user's feature data;
combining the obtained score results of the comments with the score results of the comments in the first ordering result, to obtain final score results of the comments;
ordering the comments based on the final score results of the comments, to obtain the second ordering result.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the scoring the comments according to matching degrees of the comments and the user's feature data comprises:
obtaining a second ordering policy configuration which includes an operator combination employed by a second ordering policy;
according to the second ordering policy configuration, invoking the operators to score the comments based on the user's feature data on which the operators depend to obtain score results of the comments.

### Claim 8 (depends on 3)

The method according to claim 3, wherein the first ordering policy configuration or the second ordering policy configuration further comprises: an operator-dependent data relationship;
the invoking the operators comprises: performing parallel invocation for the operators based on the operator-dependent data relationship.

### Claim 9 (depends on 7)

The method according to claim 7, wherein the method further comprises:
further adjusting the second ordering result based on intervention data.

### Claim 10 (depends on 7)

The method according to claim 7, wherein the first ordering policy configuration or the second ordering policy configuration further comprises: an operator-dependent data relationship;
the invoking the operators comprises: performing parallel invocation for the operators based on the operator-dependent data relationship.

### Claim 11

An electronic device, comprising:
at least one processor; and
a memory communicatively connected with the at least one processor;
wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform a method for ordering comments, wherein the method comprise:
obtaining comments data, ordering the comments based on basic attributes of the comment to obtain a first ordering result, and establishing an index for the first ordering result;
in response to obtaining an event of the user triggering display of the comments, obtaining the first ordering result through the index, and performing ordering adjustment on the first ordering result based on the user's feature data to obtain a second ordering result which serves as a basis for displaying the comments to the user.

### Claim 12 (depends on 11)

The electronic device according to claim 11, wherein the obtaining comment data comprises:
obtaining comment data pushed by the distributed message queue, triggered by a comment alteration event; or periodically obtaining the comment data from the distributed message queue;
in response to obtaining the event of the user triggering display of the comments, the method further comprises: obtaining comment data from the distributed message queue according to information of the event.

### Claim 13 (depends on 11)

The electronic device according to claim 11, wherein the ordering the comments based on basic attributes of the comments comprises:
obtaining a first ordering policy configuration which includes an operator combination employed by an ordering policy;
according to the first ordering policy configuration, invoking operators to score the comments based on the basic attributes of the comments on which the operators depend to obtain score results of the comments.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein if the first ordering policy configuration includes more than one ordering policy, establishing an index for the first ordering result corresponding to each ordering policy.

### Claim 15 (depends on 11)

The electronic device according to claim 11, wherein the performing ordering adjustment on the first ordering result based on the user's feature data comprise:
scoring the comments according to matching degrees of the comments and the user's feature data;
combining the obtained score results of the comments with the score results of the comments in the first ordering result, to obtain final score results of the comments;
ordering the comments based on the final score results of the comments, to obtain the second ordering result.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the scoring the comments according to matching degrees of the comments and the user's feature data comprises:
obtaining a second ordering policy configuration which includes an operator combination employed by a second ordering policy;
according to the second ordering policy configuration, invoking the operators to score the comments based on the user's feature data on which the operators depend to obtain score results of the comments.

### Claim 17 (depends on 13)

The electronic device according to claim 13, wherein the first ordering policy configuration or the second ordering policy configuration further comprises: an operator-dependent data relationship;
the invoking the operators comprises: performing parallel invocation for the operators based on the operator-dependent data relationship.

### Claim 18 (depends on 16)

The electronic device according to claim 16, wherein the online ordering service module is configured to further adjust the second ordering result based on intervention data.

### Claim 19 (depends on 16)

The electronic device according to claim 16, wherein the first ordering policy configuration or the second ordering policy configuration further comprises: an operator-dependent data relationship;
the invoking the operators comprises: performing parallel invocation for the operators based on the operator-dependent data relationship.

### Claim 20

A non-transitory computer readable storage medium with computer instructions stored thereon, wherein the computer instructions are used for causing a computer to perform a method for ordering comments, wherein the method comprises:
obtaining comments data, ordering the comments based on basic attributes of the comment to obtain a first ordering result, and establishing an index for the first ordering result;
in response to obtaining an event of a user triggering display of the comments, obtaining the first ordering result through the index, and performing ordering adjustment on the first ordering result based on the user's feature data to obtain a second ordering result which serves as a basis for displaying the comments to the user.
