Information presentation method and apparatus, and device and medium
View Patent ↗Embodiments of the present disclosure relate to an information presentation method and an apparatus, a device, and a medium. The method includes the steps described below. Collection information of at least one collection is acquired. The collection information includes title information of each collection and attribute information of multiple entities in the each collection. Attribute information of each entity matches the title information of the each collection. All or part of the collection information of the at least one collection is presented.
1 . An information presentation method, applied to a client, comprising:
in response to detecting a preset trigger operation of a user, acquiring collection information of at least one collection corresponding to the preset trigger operation, wherein the collection information comprises title information of each collection of the at least one collection and attribute information of a plurality of entities in the each collection, the title information of the each collection comprises keywords under different attribute dimensions, attribute information of each entity of the plurality of entities matches the title information of the each collection, and the attribute information of each entity comprises an entity name and a feature text that matches a keyword of the keywords under the different attribute dimensions in the title information of a respective one of the at least one collection; and
presenting all or part of the collection information of the at least one collection;
wherein presenting the all or the part of the collection information of the at least one collection comprises: determining a presentation scenario of the collection information, wherein the presentation scenario comprises at least one of an encyclopedia scenario, a recommendation scenario, or a search scenario; and presenting the all or the part of the collection information of the at least one collection according to the presentation scenario; and
wherein in response to determining that the presentation scenario is the encyclopedia scenario, presenting the all or the part of the collection information of the at least one collection according to the presentation scenario comprises:
presenting the all or the part of the collection information of the at least one collection in a form of a card in a collection presentation area of an encyclopedia detail page, wherein the collection information comprises the title information of the each collection and attribute information of a first preset number of entities in the each collection, and the first preset number of entities comprise a target entity corresponding to the encyclopedia scenario.
2 . The method of claim 1 , wherein the feature text matches a core word in the title information of the each collection.
3 . The method of claim 1 , wherein in response to determining that the presentation scenario is the search scenario, presenting the all or the part of the collection information of the at least one collection according to the presentation scenario comprises:
determining, in each collection of the at least one collection, a target entity that matches a search word; and
presenting part of collection information of the each collection in a form of a collection card on a search result page; wherein the collection card supports being slid in a preset direction, and the part of the collection information of the each collection comprises the title information of the each collection and attribute information of the target entity.
4 . The method of claim 1 , wherein in response to determining that the presentation scenario is the recommendation scenario, presenting the all or the part of the collection information of the at least one collection according to the presentation scenario comprises:
presenting part of collection information of any collection of the at least one collection in a form of a card on a recommendation information page, wherein the part of the collection information comprises title information of the any collection and attribute information of at least one target entity in the any collection, and at least one of the title information of the any collection or the at least one entity is associated with key content of recommendation information on the recommendation information page.
5 . The method of claim 1 , further comprising:
in response to a trigger operation on a target collection in the at least one collection, presenting title information of the target collection and attribute information of each entity in the target collection in a first presentation area of a collection detail page.
6 . The method of claim 5 , wherein in response to determining that a plurality of the collections are provided, the method further comprises:
presenting, in a second presentation area of the collection detail page, at least one of title information of another collection in the plurality of the collections except the target collection or attribute information of a second preset number of entities in the another collection.
7 . A non-transitory computer-readable storage medium, which stores a computer program configured to execute the information presentation method of claim 1 .
8 . An information presentation method, comprising:
acquiring a collection constituent element, and creating, based on the collection constituent element, at least one collection, wherein each collection of the at least one collection comprises a plurality of entities satisfying the collection constituent element;
determining collection information of the at least one collection, wherein the collection information comprises title information of each collection of the at least one collection and attribute information of each entity in the each collection, the attribute information of the each entity matches the title information of the each collection, the title information of the each collection comprises keywords under different attribute dimensions, and the attribute information of each entity comprises an entity name and a feature text that matches a keyword of the keywords under the different attribute dimensions in the title information of a respective one of the at least one collection; and
sending the collection information of the at least one collection to a client so that in response to detecting a preset trigger operation of a user, the client presents all or part of the collection information of the at least one collection corresponding to the preset trigger operation;
wherein the all or the part of the collection information of the at least one collection is presented by determining a presentation scenario of the collection information, wherein the presentation scenario comprises at least one of an encyclopedia scenario, a recommendation scenario, or a search scenario; and presenting the all or the part of the collection information of the at least one collection according to the presentation scenario; and
wherein in response to determining that the presentation scenario is the encyclopedia scenario, the all or the part of the collection information of the at least one collection is presented according to the presentation scenario by:
presenting the all or the part of the collection information of the at least one collection in a form of a card in a collection presentation area of an encyclopedia detail page, wherein the collection information comprises the title information of the each collection and attribute information of a first preset number of entities in the each collection, and the first preset number of entities comprise a target entity corresponding to the encyclopedia scenario.
9 . The method of claim 8 , wherein the feature text matches the title information of the each collection, and determining the attribute information of the each entity in the collection information comprises:
determining an attribute dimension comprised in the title information of the each collection; and
extracting a respective feature text of the each entity under the attribute dimension from an entity database.
10 . The method of claim 9 , wherein determining the attribute dimension comprised in the title information of the each collection comprises:
segmenting the title information of the each collection to obtain at least one core word; and
determining a target mapping word that matches the at least one core word, and determining an attribute keyword associated with the target mapping word as the attribute dimension comprised in the title information of the each collection.
11 . The method of claim 10 , wherein determining the target mapping word that matches the at least one core word comprises:
determining similarity between each core word of the at least one core word and a plurality of mapping words in a mapping thesaurus; and
determining a mapping word whose similarity is greater than a similarity threshold as the target mapping word.
12 . The method according to claim 9 , wherein extracting the respective feature text of the each entity under the attribute dimension from the entity database comprises:
searching, according to the attribute dimension and a respective entity identifier of the each entity, the entity database to determine a respective attribute value corresponding to the each entity; and
determining the respective attribute value corresponding to the each entity as the respective feature text of the each entity under the attribute dimension.
13 . The method of claim 8 , wherein creating, based on the collection constituent element, the at least one collection comprises:
matching the collection constituent element with key information of a plurality of candidate entities in an entity database;
classifying a plurality of successfully matched target candidate entities to obtain collections of target candidate entities of a plurality of categories; and
selecting a plurality of entities from collections of target candidate entities of each category of the plurality of categories separately to obtain the at least one collection.
14 . The method of claim 8 , wherein determining the title information of the each collection comprises:
clustering and screening multimedia information of the each entity in the each collection, determining a respective category keyword in the collections of target candidate entities of the each category, and determining, according to the respective category keyword, the title information of the each collection.
15 . An electronic device, comprising:
a processor; and
a memory configured to store instructions executable by the processor; wherein
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the information presentation method of claim 8 .
16 . A non-transitory computer-readable storage medium, which stores a computer program configured to execute the information presentation method of claim 8 .
17 . An electronic device, comprising:
a processor; and
a memory configured to store instructions executable by the processor; wherein
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the following steps:
in response to detecting a preset trigger operation of a user, acquiring collection information of at least one collection corresponding to the preset trigger operation, wherein the collection information comprises title information of each collection of the at least one collection and attribute information of a plurality of entities in the each collection, the title information of the each collection comprises keywords under different attribute dimensions, attribute information of each entity of the plurality of entities matches the title information of the each collection, and the attribute information of each entity comprises an entity name and a feature text that matches a keyword of the keywords under the different attribute dimensions in the title information of a respective one of the at least one collection; and
presenting all or part of the collection information of the at least one collection;
wherein presenting the all or the part of the collection information of the at least one collection comprises: determining a presentation scenario of the collection information, wherein the presentation scenario comprises at least one of an encyclopedia scenario, a recommendation scenario, or a search scenario; and presenting the all or the part of the collection information of the at least one collection according to the presentation scenario; and
wherein in response to determining that the presentation scenario is the encyclopedia scenario, presenting the all or the part of the collection information of the at least one collection according to the presentation scenario comprises:
presenting the all or the part of the collection information of the at least one collection in a form of a card in a collection presentation area of an encyclopedia detail page, wherein the collection information comprises the title information of the each collection and attribute information of a first preset number of entities in the each collection, and the first preset number of entities comprise a target entity corresponding to the encyclopedia scenario.