CN115048904A - Entity display method and device, storage medium and electronic equipment - Google Patents
Entity display method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN115048904A CN115048904A CN202210960069.3A CN202210960069A CN115048904A CN 115048904 A CN115048904 A CN 115048904A CN 202210960069 A CN202210960069 A CN 202210960069A CN 115048904 A CN115048904 A CN 115048904A
- Authority
- CN
- China
- Prior art keywords
- entity
- information
- card
- displayed
- article
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/205—Parsing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephonic Communication Services (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The disclosure provides an entity display method, an entity display device, a storage medium and electronic equipment, wherein an entity of a page-displayed article is extracted, and an entity to be displayed is obtained based on an extraction result; acquiring basic information and/or special information of at least one dimension of the entity to be displayed, and generating an entity card based on the acquired information; and determining a card display area corresponding to the article, and displaying the entity card in the card display area. The method and the device for providing the relevant information of the article relevant entities for the user can enable the user to check the required information more conveniently.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for displaying an entity, a storage medium, and an electronic device.
Background
Often, a user may wish to have further knowledge of the company/person mentioned herein while browsing an article. In the traditional scheme, a user is required to search for a company/person to be known by himself or a text link only with the name of the company/person is attached to an article, and the user jumps to a corresponding detail page by clicking the text link. The user can not obtain more valuable information from the name, wants to know more pages which can only be skipped, and the information obtaining cost is higher.
Disclosure of Invention
In view of the above shortcomings in the prior art, an object of the present invention is to provide an entity display method, apparatus, storage medium and electronic device for efficiently and accurately mining the supply relationship between different enterprises.
In a first aspect, the present disclosure provides an entity display method, including:
extracting entities of the articles displayed on the page, and obtaining entities to be displayed based on the extraction result;
acquiring basic information and/or special information of at least one dimension of the entity to be displayed, and generating an entity card based on the acquired information;
and determining a card display area corresponding to the article, and displaying the entity card in the card display area.
Optionally, the generating an entity card based on the obtained information includes:
generating a basic information card based on the basic information of the entity to be displayed, respectively generating corresponding special information cards based on the special information of the entity to be displayed in each dimension, and generating an entity card based on the basic information card and the special information cards.
Optionally, the basic information card is configured to display key basic information of the entity to be displayed, and trigger a display page of all basic information of the entity to be displayed after receiving specified operation information; the special information card of any dimensionality is used for displaying key special information of the corresponding dimensionality and triggering a display page of all special information of the corresponding dimensionality of the entity to be displayed after receiving the specified operation information.
Optionally, the generating an entity card based on the basic information card and the special information card includes:
and determining the layout rule of the entity cards according to the number of the special information cards, and splicing the basic information cards and the special information cards into the entity cards according to the layout rule.
Optionally, the extracting the entity of the article displayed on the page and obtaining the entity to be displayed based on the extraction result include:
carrying out entity extraction on an article displayed on a page to obtain a person entity and/or an enterprise entity contained in the article;
if the number of the extracted entities is larger than the preset number N, sequencing the extracted entities according to a preset sequencing rule, and intercepting the first N entities from the sequenced entities to serve as entities to be displayed;
and if the number of the extracted entities is not more than the preset number N, taking all the extracted entities as entities to be displayed.
Optionally, the obtaining of the specific information of at least one dimension of the entity to be displayed includes:
analyzing the information expression type of the sentence in the article, which is associated with the entity to be displayed;
and acquiring the special information of the dimensionality of the entity to be displayed, which corresponds to the information expression type.
Optionally, the analyzing the information expression type of the sentence in the article associated with the entity to be displayed includes:
setting keywords corresponding to all dimensions, and respectively setting regular expressions corresponding to all dimensions based on the keywords of all dimensions;
determining sentences associated with the entity to be displayed in the article, matching the sentences with the regular expressions respectively, and determining the information expression types of the sentences based on the matching result.
Optionally, the method further includes:
acquiring dynamic information of an entity to be displayed in a specified time period from a database;
when the quantity of the dynamic information is not less than a specified quantity threshold value, generating a dynamic information card;
and generating an entity card based on the basic information card, the special information card and the dynamic information card.
Optionally, the dynamic information card displays each piece of dynamic information in a rolling manner in a time carousel manner, and triggers a display page of information details of the dynamic information after receiving the specified operation information.
In a second aspect, the present disclosure provides an entity display apparatus, comprising:
the entity extraction module is used for extracting entities of the articles displayed on the page and obtaining entities to be displayed based on the extraction result;
the card generating module is used for acquiring the basic information and/or the special information of at least one dimension of the entity to be displayed and generating an entity card based on the acquired information;
and the card display module is used for determining a card display area corresponding to the article and displaying the entity card in the card display area.
Optionally, the card generating module is configured to generate an entity card based on the obtained information, and configured to:
generating a basic information card based on the basic information of the entity to be displayed, respectively generating corresponding special information cards based on the special information of the entity to be displayed in each dimension, and generating an entity card based on the basic information card and the special information cards.
Optionally, the basic information card is configured to display key basic information of the entity to be displayed, and trigger a display page of all basic information of the entity to be displayed after receiving specified operation information; the special information card of any dimensionality is used for displaying key special information of the corresponding dimensionality and triggering a display page of all special information of the corresponding dimensionality of the entity to be displayed after receiving the specified operation information.
Optionally, the card generating module, when generating the entity card based on the basic information card and the special information card, is configured to:
and determining the layout rule of the entity cards according to the number of the special information cards, and splicing the basic information cards and the special information cards into the entity cards according to the layout rule.
Optionally, the entity extraction module performs entity extraction on the article displayed on the page, and obtains an entity to be displayed based on the extraction result, and is configured to:
performing entity extraction on an article displayed on a page to obtain a person entity and/or an enterprise entity contained in the article;
if the number of the extracted entities is larger than the preset number N, sequencing the extracted entities according to a preset sequencing rule, and intercepting the first N entities from the sequenced entities to serve as entities to be displayed;
and if the number of the extracted entities is not more than the preset number N, taking all the extracted entities as entities to be displayed.
Optionally, the card generating module, when obtaining the specific information of at least one dimension of the entity to be displayed, is configured to:
analyzing the information expression type of the sentence in the article, which is associated with the entity to be displayed;
and acquiring the special information of the dimension of the entity to be displayed, which corresponds to the information expression type.
Optionally, the analyzing the information expression type of the sentence in the article associated with the entity to be displayed includes:
setting keywords corresponding to all dimensions, and respectively setting regular expressions corresponding to all dimensions based on the keywords of all dimensions;
determining sentences associated with the entity to be displayed in the article, matching the sentences with the regular expressions respectively, and determining the information expression types of the sentences based on the matching result.
Optionally, the apparatus further includes a dynamic information generation module, configured to:
acquiring dynamic information of an entity to be displayed in a specified time period from a database;
when the quantity of the dynamic information is not less than a specified quantity threshold value, generating a dynamic information card;
and generating an entity card based on the basic information card, the special information card and the dynamic information card.
Optionally, the dynamic information card displays each piece of dynamic information in a rolling manner in a time carousel manner, and triggers a display page of information details of the dynamic information after receiving the specified operation information.
In a third aspect, the present disclosure provides a storage medium, where a computer program is stored on the storage medium, and when the processor executes the computer program stored on the storage medium, the entity display method according to the first aspect is implemented.
In a third aspect, the present disclosure provides an electronic device, which includes a memory for storing a computer-executable program thereon and a processor for running the computer-executable program to implement the entity exposure method according to the first aspect.
The disclosure provides an entity display method, an entity display device, a storage medium and electronic equipment, wherein an entity of a page-displayed article is extracted, and an entity to be displayed is obtained based on an extraction result; acquiring basic information and/or special information of at least one dimension of the entity to be displayed, and generating an entity card based on the acquired information; and determining a card display area corresponding to the article, and displaying the entity card in the card display area. The method and the device for providing the relevant information of the article relevant entities for the user can enable the user to check the required information more conveniently.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings.
Fig. 1 is a flowchart of an entity display method provided in an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a physical card provided by an embodiment of the present disclosure;
FIG. 3 is another schematic diagram of a physical card provided by an embodiment of the disclosure;
FIG. 4 is another schematic diagram of a physical card provided by an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an entity display apparatus provided in the embodiment of the present disclosure;
fig. 6 is a schematic hardware structure diagram of an electronic device for entity display according to an embodiment of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, but not all the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present disclosure should fall within the scope of protection of the embodiments in the present disclosure.
The following further describes specific implementations of the embodiments of the present disclosure with reference to the drawings of the embodiments of the present disclosure.
The first embodiment,
An entity display method is provided in an embodiment of the present disclosure, as shown in fig. 1, where fig. 1 is a work flow diagram of an entity display method provided in the embodiment of the present disclosure, the method includes the following steps S101 to S104:
in step S101, entity extraction is performed on the article displayed on the page, and an entity to be displayed is obtained based on the extraction result;
the articles displayed on the page can be, for example, articles related to enterprises/people displayed on the information platform. A user may want to know specific information about businesses/people mentioned in an article when viewing the article. When entity extraction is carried out, entities contained in the text content of the article are extracted, and entities to be displayed are determined from the extracted entities.
In some embodiments, the extracting the entity of the article displayed on the page and obtaining the entity to be displayed based on the extraction result include, but are not limited to, the following steps:
(1-1) carrying out entity extraction on the article displayed on the page to obtain a person entity and/or an enterprise entity contained in the article;
(1-2) if the number of the extracted entities is larger than the preset number N, sequencing the extracted entities according to a preset sequencing rule, and intercepting the first N entities from the sequenced entities to serve as entities to be displayed;
and (1-3) if the number of the extracted entities is not more than the preset number N, taking all the extracted entities as entities to be displayed.
It will be appreciated that if a large number of businesses/people are mentioned in the article, all of them taking up too much page space to be exposed. In this embodiment, a display number switch may be set at the server, a developer sets a preset number N based on the display number switch, if the extracted enterprise/person is greater than the preset number N, the step of sorting the extracted entities by using a sorting rule is triggered, and after the sorting is completed, only N entities sorted in the front are determined as entities to be displayed.
In some embodiments, the ordering rule may be:
and arranging the enterprise/personnel entities extracted from the article title at the top, and if a plurality of enterprise/personnel entities are mentioned in the article title, sequencing the enterprise/personnel entities in sequence according to the mentioned sequence.
Sequencing all enterprise/personnel entities extracted from the text of the article from more to less according to the times mentioned in the article; or, all the enterprise/personnel entities extracted from the article text are sequentially ordered from front to back according to the positions mentioned in the article.
In step S102, obtaining basic information and/or specific information of at least one dimension of the entity to be displayed, and generating an entity card based on the obtained information;
in some embodiments, the generating an entity card based on the obtained information comprises:
referring to fig. 2, a basic information card is generated based on the basic information of the entity to be displayed, corresponding special information cards are respectively generated based on the special information of the entity to be displayed in each dimension, and an entity card is generated based on the basic information card and the special information cards.
Specifically, the basic information card is used for displaying the key basic information of the entity to be displayed and triggering a display page of all basic information of the entity to be displayed after receiving the specified operation information; the special information card of any dimensionality is used for displaying key special information of the corresponding dimensionality and triggering a display page of all special information of the corresponding dimensionality of the entity to be displayed after receiving the specified operation information.
For example, referring to fig. 3, the specific information of each dimension in fig. 3 includes 3 dimensions of shareholder information, high-management information, and risk information, and the corresponding specific shareholder information card, specific high-management information card, and specific risk information card are respectively generated based on the specific information of the 3 dimensions, and the key information of the dimension (the number of key information, for example, shareholder information is 5, and a piece XX holds stock 51%) is displayed in each specific information card, so that the user can directly obtain the required key information through the specific information card. The type of the key information can be obtained based on historical operation data of clicking, viewing and the like of a full amount of users.
The receiving of the specified operation information may be receiving click operation information of the user, for example, if the key information of the entity card cannot meet the understanding requirement of the user, the user may click a special information card of the shareholder information to directly open a detailed page of the shareholder information of the corresponding enterprise to view more comprehensive shareholder information.
Wherein generating an entity card based on the basic information card and the special information card comprises: and determining the layout rule of the entity cards according to the number of the special information cards, and splicing the basic information cards and the special information cards into the entity cards according to the layout rule. The layout rules may include setting rules for shapes, sizes, and positions of the entity card, the basic information card, and the special information card. For example, when the number of the special information cards is small, the area of the entity card can be correspondingly reduced, and the like.
In some embodiments, the acquiring the specific information of at least one dimension of the entity to be shown includes, but is not limited to, the following steps:
(2-1) analyzing the information expression type of the sentence in the article, which is associated with the entity to be shown;
(2-2) acquiring the special information of the dimension of the entity to be shown corresponding to the information expression type.
In the step (2-2), the step of parsing the information expression type of the sentence in the article associated with the entity to be presented may include, but is not limited to, the following steps: setting keywords corresponding to all dimensions, and respectively setting regular expressions corresponding to all dimensions based on the keywords of all dimensions. Determining sentences associated with the entity to be displayed in the article, matching the sentences with the regular expressions respectively, and determining the information expression types of the sentences based on the matching result.
Wherein, the statement associated with the entity to be presented may include: the article and the target sentence which refers to the entity to be shown and the sentence which has the context relation with the target sentence.
The different dimensions of the enterprise may include dimensions such as an shareholder dimension, a high-management dimension, and a risk dimension of the enterprise, and one or more keywords are set for the different dimensions respectively, for example, the keywords of the shareholder dimension may include "shareholder", "stock right change", and the like. And setting regular expressions by using keywords respectively aiming at different dimensions, wherein the regular expression of the stockholder dimension is a regular expression for matching keywords such as 'stockholder', 'stock right change' and the like.
Taking the entity to be presented as company a for illustration, the sentences associated with the entity to be presented in the article include a sentence set of sentences B, C, D. And respectively matching the statement sets with regular expressions with different dimensions, determining that the information expression type of the statement sets belongs to the shareholder dimension when one regular expression corresponding to the shareholder dimension is hit, acquiring the special information of the shareholder dimension of the company A and generating a special information card.
In some embodiments, the following steps may also be performed when generating the entity card:
(3-1) acquiring dynamic information of the entity to be displayed in a specified time period from a database;
(3-2) generating a dynamic information card when the amount of the dynamic information is not less than a specified amount threshold;
(3-3) generating an entity card based on the basic information card, the special information card and the dynamic information card.
Referring to fig. 4, the dynamic information card displays each piece of dynamic information in a rolling manner in a time carousel manner, and triggers a display page of information details of the dynamic information after receiving specified operation information.
In step S103, a card display area corresponding to the article is determined, and the entity card is displayed in the card display area.
In some embodiments, the card display area corresponding to the article may be a preset area of a page where the article is located. For example, on a cell phone page, because the cell phone page is narrow, two sides of the article usually have no free page display space, and then the physical card can be displayed on the lower side of the article. On the computer page, the physical card can be displayed on the right side of the article. Therefore, the user can directly check the key information of the relevant dimension in the article relevant entity on the current page on the premise of not additionally executing searching and page jumping operations. Meanwhile, the basic information card in the entity card and the special information cards of all dimensions can be regarded as hyperlinks, the hyperlinks correspond to the basic information detail pages and the detail pages of all the special information, and under the condition that the key information cannot meet the understanding requirement, a user can solve the corresponding detailed information by operating the basic information card and the special information cards of all the dimensions.
The disclosure provides an entity display method, an entity display device, a storage medium and electronic equipment, wherein an entity of a page-displayed article is extracted, and an entity to be displayed is obtained based on an extraction result; acquiring basic information and/or special information of at least one dimension of the entity to be displayed, and generating an entity card based on the acquired information; and determining a card display area corresponding to the article, and displaying the entity card in the card display area. The embodiment of the disclosure provides the user with the relevant information of the associated entity of the article, so that the user can check the required information more conveniently.
Example II,
In a second aspect, an embodiment of the present disclosure further provides an entity display apparatus, as shown in fig. 5, fig. 5 is a schematic structural diagram of an entity display apparatus 50 provided in an embodiment of the present disclosure, where the entity display apparatus 50 includes:
an entity extraction module 510, configured to perform entity extraction on the article displayed on the page, and obtain an entity to be displayed based on an extraction result;
a card generating module 520, configured to obtain the basic information and/or the specific information of at least one dimension of the entity to be displayed, and generate an entity card based on the obtained information;
the card display module 530 is configured to determine a card display area corresponding to the article, and display the physical card in the card display area.
Optionally, the card generating module generates an entity card based on the acquired information, and is configured to:
generating a basic information card based on the basic information of the entity to be displayed, respectively generating corresponding special information cards based on the special information of the entity to be displayed in each dimension, and generating an entity card based on the basic information card and the special information cards.
Optionally, the basic information card is configured to display key basic information of the entity to be displayed, and trigger a display page of all basic information of the entity to be displayed after receiving specified operation information; the special information card of any dimensionality is used for displaying key special information of the corresponding dimensionality and triggering a display page of all special information of the corresponding dimensionality of the entity to be displayed after receiving the specified operation information.
Optionally, the card generating module, when generating the entity card based on the basic information card and the special information card, is configured to:
and determining the layout rule of the entity cards according to the number of the special information cards, and splicing the basic information cards and the special information cards into the entity cards according to the layout rule.
Optionally, the entity extraction module performs entity extraction on the article displayed on the page, and obtains an entity to be displayed based on the extraction result, and is configured to:
carrying out entity extraction on an article displayed on a page to obtain a person entity and/or an enterprise entity contained in the article;
if the number of the extracted entities is larger than the preset number N, sequencing the extracted entities according to a preset sequencing rule, and intercepting the first N entities from the sequenced entities to serve as entities to be displayed;
and if the number of the extracted entities is not more than the preset number N, taking all the extracted entities as entities to be displayed.
Optionally, the card generating module, when acquiring the specific information of at least one dimension of the entity to be displayed, is configured to:
analyzing the information expression type of the sentence in the article, which is associated with the entity to be displayed;
and acquiring the special information of the dimension of the entity to be displayed, which corresponds to the information expression type.
Optionally, the analyzing the information expression type of the sentence associated with the entity to be displayed in the article includes:
setting keywords corresponding to all dimensions, and respectively setting regular expressions corresponding to all dimensions based on the keywords of all dimensions;
determining sentences associated with the entity to be displayed in the article, matching the sentences with the regular expressions respectively, and determining the information expression types of the sentences based on the matching result.
Optionally, the apparatus further includes a dynamic information generation module, configured to:
acquiring dynamic information of an entity to be displayed in a specified time period from a database;
when the quantity of the dynamic information is not less than a specified quantity threshold value, generating a dynamic information card;
and generating an entity card based on the basic information card, the special information card and the dynamic information card.
Optionally, the dynamic information card displays each piece of dynamic information in a rolling manner in a time carousel manner, and triggers a display page of information details of the dynamic information after receiving the specified operation information.
Example III,
The embodiment of the present disclosure further provides a storage medium, where a computer program is stored on the storage medium, and when the processor executes the computer program stored on the storage medium, an entity display method is implemented, where the entity display method includes, but is not limited to:
extracting entities of the articles displayed on the page, and obtaining entities to be displayed based on the extraction result;
acquiring basic information and/or special information of at least one dimension of the entity to be displayed, and generating an entity card based on the acquired information;
and determining a card display area corresponding to the article, and displaying the entity card in the card display area.
Example four,
Based on the entity display method according to the first embodiment of the present disclosure, an electronic device for entity display is further provided in the first embodiment of the present disclosure, as shown in fig. 6, fig. 6 is a schematic diagram of a hardware structure of the electronic device for entity display provided in the present embodiment; the hardware structure of the electronic device may include: a processor 601, a communication interface 602, a memory 603, and a communication bus 604;
the processor 601, the communication interface 602, and the memory 603 complete communication with each other through the communication bus 604;
optionally, the communication interface 602 may be an interface of a communication module, such as an interface of a GSM module;
the processor 601 may be specifically configured to run the executable program stored in the memory, so as to execute all or part of the method of any one of the above-described method embodiments.
The Processor 601 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present disclosure may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The present disclosure has thus described specific embodiments of the present subject matter. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. The person involved almost always obtains the corresponding hardware circuit configuration by programming the improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the design personnel without requiring the chip manufacturer to design and manufacture a dedicated integrated circuit chip. Furthermore, nowadays, instead of manually manufacturing an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to the software compiler used in program development, but the original code before compiling is also written in a specific Programming Language, which is called Hardware Description Language (HDL), and the HDL is not only one kind but many kinds, such as abel (advanced boot Expression Language), ahdl (alternate Language Description Language), communication, CUPL (computer universal Programming Language), HDCal (Java Hardware Description Language), langa, Lola, mylar, HDL, PALASM, rhydl (runtime Description Language), vhjhdul (Hardware Description Language), and vhygl-Language, which are currently used commonly. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, apparatuses, modules or units described in the above embodiments may be specifically implemented by a computer chip or an entity, or implemented by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure 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 so forth) having computer-usable program code embodied therein.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure 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 so forth) having computer-usable program code embodied therein.
The disclosure may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The present disclosure may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present disclosure and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.
Claims (12)
1. An entity display method, comprising:
extracting entities of articles displayed on a page, and obtaining entities to be displayed based on extraction results;
acquiring basic information and/or specific information of at least one dimension of the entity to be displayed, and generating an entity card based on the acquired information;
and determining a card display area corresponding to the article, and displaying the entity card in the card display area.
2. The method of claim 1, wherein generating the entity card based on the obtained information comprises:
generating a basic information card based on the basic information of the entity to be displayed, respectively generating corresponding special information cards based on the special information of the entity to be displayed in each dimension, and generating an entity card based on the basic information card and the special information cards.
3. The method according to claim 2, wherein the basic information card is used for displaying key basic information of the entity to be displayed and triggering a display page of all basic information of the entity to be displayed after receiving specified operation information; the special information card of any dimensionality is used for displaying key special information of the corresponding dimensionality and triggering a display page of all special information of the corresponding dimensionality of the entity to be displayed after receiving the specified operation information.
4. The method of claim 2, wherein generating an entity card based on the base information card and the special information card comprises:
and determining the layout rule of the entity cards according to the number of the special information cards, and splicing the basic information cards and the special information cards into the entity cards according to the layout rule.
5. The method of claim 1, wherein the extracting the entity of the article displayed on the page and obtaining the entity to be displayed based on the extraction result comprises:
carrying out entity extraction on an article displayed on a page to obtain a person entity and/or an enterprise entity contained in the article;
if the number of the extracted entities is larger than the preset number N, sequencing the extracted entities according to a preset sequencing rule, and intercepting the first N entities from the sequenced entities to serve as entities to be displayed;
and if the number of the extracted entities is not more than the preset number N, taking all the extracted entities as entities to be displayed.
6. The method according to claim 1, wherein said obtaining specific information of at least one dimension of the entity to be shown comprises:
analyzing the information expression type of the sentence in the article, which is associated with the entity to be displayed;
and acquiring the special information of the dimension of the entity to be displayed, which corresponds to the information expression type.
7. The method of claim 6, wherein the parsing the information expression type of the sentence in the article associated with the entity to be shown comprises:
setting keywords corresponding to all dimensions, and respectively setting regular expressions corresponding to all dimensions based on the keywords of all dimensions;
determining sentences associated with the entity to be displayed in the article, matching the sentences with the regular expressions respectively, and determining the information expression types of the sentences based on the matching result.
8. The method of claim 2, further comprising:
acquiring dynamic information of an entity to be displayed in a specified time period from a database;
when the quantity of the dynamic information is not less than a specified quantity threshold value, generating a dynamic information card;
and generating an entity card based on the basic information card, the special information card and the dynamic information card.
9. The method as claimed in claim 8, wherein the dynamic information card displays each piece of dynamic information by scrolling in a time carousel manner, and triggers a display page of information details of the dynamic information after receiving specified operation information.
10. An entity display apparatus, comprising:
the entity extraction module is used for extracting entities of the articles displayed on the page and obtaining entities to be displayed based on the extraction result;
the card generating module is used for acquiring the basic information and/or the special information of at least one dimension of the entity to be displayed and generating an entity card based on the acquired information;
and the card display module is used for determining a card display area corresponding to the article and displaying the entity card in the card display area.
11. A storage medium having a computer program stored thereon, wherein the processor, when executing the computer program stored on the storage medium, implements the entity exposure method according to any one of claims 1 to 9.
12. An electronic device, comprising a memory for storing a computer-executable program and a processor for executing the computer-executable program to implement the entity exposure method of any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210960069.3A CN115048904B (en) | 2022-08-11 | 2022-08-11 | Entity display method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210960069.3A CN115048904B (en) | 2022-08-11 | 2022-08-11 | Entity display method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115048904A true CN115048904A (en) | 2022-09-13 |
CN115048904B CN115048904B (en) | 2022-11-29 |
Family
ID=83166576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210960069.3A Active CN115048904B (en) | 2022-08-11 | 2022-08-11 | Entity display method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115048904B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102906744A (en) * | 2010-06-28 | 2013-01-30 | 雅虎公司 | Infinite browse |
US20170093934A1 (en) * | 2014-03-03 | 2017-03-30 | Google Inc. | Entity page recommendation based on post content |
CN106663109A (en) * | 2014-08-21 | 2017-05-10 | 谷歌公司 | Providing automatic actions for mobile onscreen content |
CN110825839A (en) * | 2019-11-07 | 2020-02-21 | 成都国腾实业集团有限公司 | Incidence relation analysis method for targets in text information |
CN112069315A (en) * | 2020-08-31 | 2020-12-11 | 深圳市卡牛科技有限公司 | Method, device, server and storage medium for extracting text multidimensional information |
-
2022
- 2022-08-11 CN CN202210960069.3A patent/CN115048904B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102906744A (en) * | 2010-06-28 | 2013-01-30 | 雅虎公司 | Infinite browse |
US20170093934A1 (en) * | 2014-03-03 | 2017-03-30 | Google Inc. | Entity page recommendation based on post content |
CN106663109A (en) * | 2014-08-21 | 2017-05-10 | 谷歌公司 | Providing automatic actions for mobile onscreen content |
CN110825839A (en) * | 2019-11-07 | 2020-02-21 | 成都国腾实业集团有限公司 | Incidence relation analysis method for targets in text information |
CN112069315A (en) * | 2020-08-31 | 2020-12-11 | 深圳市卡牛科技有限公司 | Method, device, server and storage medium for extracting text multidimensional information |
Also Published As
Publication number | Publication date |
---|---|
CN115048904B (en) | 2022-11-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110619076B (en) | Search term recommendation method and device, computer and storage medium | |
US9852217B2 (en) | Searching and ranking of code in videos | |
CN108932320B (en) | Article searching method and device and electronic equipment | |
CN111241389A (en) | Sensitive word filtering method and device based on matrix, electronic equipment and storage medium | |
CN112087667A (en) | Information processing method and device and computer storage medium | |
CN112328872A (en) | Information display method, information search method and device | |
CN114882311A (en) | Training set generation method and device | |
CN108846069B (en) | Document execution method and device based on markup language | |
CN107491484B (en) | Data matching method, device and equipment | |
CN112966187A (en) | Information recommendation method and device | |
CN109783612B (en) | Report data positioning method and device, storage medium and terminal | |
CN107402953A (en) | A kind of method for page jump and device | |
CN115048904B (en) | Entity display method and device, storage medium and electronic equipment | |
CN110738048B (en) | Keyword extraction method and device and terminal equipment | |
CN109584088B (en) | Product information pushing method and device | |
CN110580313B (en) | Data processing method a treatment method apparatus and apparatus for data processing | |
CN111159408A (en) | Text data labeling method and device, computer device and computer readable storage medium | |
CN105843849A (en) | Search method and device | |
CN111625706B (en) | Information retrieval method, device, equipment and storage medium | |
US11144565B2 (en) | Information extraction apparatus, information extraction method, and information extraction program | |
CN110263137B (en) | Theme keyword extraction method and device and electronic equipment | |
CN113344078A (en) | Model training method and device | |
JP2011028453A (en) | System, method and program for retrieving electronic document | |
CN109165065B (en) | Method, device and equipment for processing word list | |
CN112433622A (en) | Entry processing method, device and medium based on examination |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |