CN111813897A - Article display method, article display device, server and storage medium - Google Patents

Article display method, article display device, server and storage medium Download PDF

Info

Publication number
CN111813897A
CN111813897A CN202010675624.9A CN202010675624A CN111813897A CN 111813897 A CN111813897 A CN 111813897A CN 202010675624 A CN202010675624 A CN 202010675624A CN 111813897 A CN111813897 A CN 111813897A
Authority
CN
China
Prior art keywords
article
read
matching result
user
matching
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
Application number
CN202010675624.9A
Other languages
Chinese (zh)
Inventor
卓民
杨楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Kaniu Technology Co ltd
Original Assignee
Shenzhen Kaniu Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Kaniu Technology Co ltd filed Critical Shenzhen Kaniu Technology Co ltd
Priority to CN202010675624.9A priority Critical patent/CN111813897A/en
Publication of CN111813897A publication Critical patent/CN111813897A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3344Query execution using natural language analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a method, a device, a server and a storage medium for displaying articles, wherein the method comprises the following steps: acquiring an article to be read; extracting a feature vector of the article to be read; matching in a preset database according to the characteristic vector to obtain a matching result; and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.

Description

Article display method, article display device, server and storage medium
Technical Field
The embodiment of the invention relates to the Internet technology, in particular to a method, a device, a server and a storage medium for displaying articles.
Background
Most users read articles on terminals, similar articles are usually recommended to the users according to reading APP, the users often find that many same paragraphs and chapters exist when reading the similar articles, repeated reading of the same content causes the users to feel boring, and the reading time and the mood of the users are wasted to a great extent.
At present, most functions similar to reducing the same paragraph are performed based on the whole article, that is, if the similarity between the article a and the article B is very high, a strategy is to reduce the pushing of the article B to the user, but most of the cases are that two articles, such as news, describe a hot event, but the attitudes of the two articles for the event are different, and if the similarity of the article level with coarse granularity is adopted for matching, the user can never see the second sound, which causes unnecessary loss to the user.
Disclosure of Invention
The invention provides a method, a device, a server and a storage medium for displaying articles, which are used for improving the reading speed of a user and the user experience.
In a first aspect, an embodiment of the present invention provides a method for displaying an article, where the method includes:
acquiring an article to be read;
extracting a feature vector of the article to be read;
matching in a preset database according to the characteristic vector to obtain a matching result;
and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read.
Optionally, before the obtaining the article to be read, the method further includes:
acquiring a historical reading record of a user;
and generating the preset database according to the historical reading record.
Optionally, the extracting the feature vector of the article to be read includes:
segmenting the article to be read according to paragraphs;
and extracting the characteristic vector corresponding to each paragraph in the article to be read.
Optionally, after extracting the feature vector of each paragraph in the article to be read, the method further includes:
and matching in a preset database according to the feature vectors of the keywords.
Optionally, the extracting the feature vector of the paragraph of the article to be read includes: and extracting the feature vector of the article to be read by using a pre-trained model.
Optionally, the matching in a preset database according to the feature vector to obtain a matching result includes: and matching according to the similarity degree, the time length and the reading times of the feature vectors in a preset database to obtain a matching result.
Optionally, the hiding or displaying the paragraph content in the article to be read corresponding to the matching result according to the matching result includes:
judging whether the paragraph in the article to be read needs to be hidden according to the matching result;
and carrying out clickable display hiding processing on sections needing to be hidden in the reading article.
In a second aspect, an embodiment of the present invention further provides an apparatus for displaying an article, where the apparatus includes:
the acquisition module is used for acquiring the article to be read;
the extraction module is used for extracting the characteristic vector of the article to be read;
the matching module is used for matching in a preset database according to the characteristic vector to obtain a matching result;
and the display module is used for hiding the content corresponding to the matching result in the article to be read according to the matching result.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of article display as described in any one of the above.
In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, the computer program including program instructions, wherein the program instructions, when executed by a processor, implement the article display method as described in any one of the above.
The embodiment of the invention provides a method, a device, a server and a storage medium for displaying articles, wherein the method comprises the following steps: acquiring an article to be read; extracting a feature vector of the article to be read; matching in a preset database according to the characteristic vector to obtain a matching result; and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.
Drawings
Fig. 1 is a flowchart of an article display method according to an embodiment of the present invention;
FIG. 2 is a flowchart of an article displaying method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an article display apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. A process may be terminated when its operations are completed, but may have additional steps not included in the figure. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
Furthermore, the terms "first," "second," and the like may be used herein to describe various orientations, actions, steps, elements, or the like, but the orientations, actions, steps, or elements are not limited by these terms. These terms are only used to distinguish one direction, action, step or element from another direction, action, step or element. For example, a first paragraph can be termed a second paragraph, and similarly, a second paragraph can be termed a first paragraph, without departing from the scope of the present application. Both the first paragraph and the second paragraph are paragraphs, but they are not the same paragraph. The terms "first", "second", etc. are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Example one
Fig. 1 is a flowchart of an article displaying method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a user reads a content already read on an electronic device, and the method may be executed by a server, and specifically includes the following steps:
and step 100, acquiring an article to be read.
In this embodiment, the article to be read is an article to be read when a user clicks a news App or a community forum of a tool App or a social App on the electronic device, and in this embodiment, the electronic device may be an electronic book, a mobile phone, a tablet computer, or other hardware devices with a reading function. For example, a user opens an article which is not read through a recommended link point on a mobile phone, and at this time, the server sets the article as the article to be read immediately, matches the article in the database, and searches for a similar article.
And 110, extracting the characteristic vector of the article to be read.
In this embodiment, the feature vectors of the paragraphs in the article to be read are extracted for matching in the preset database. Illustratively, taking a paragraph one of an article x as an example, taking all texts of the paragraph as a whole, performing word segmentation, then calculating feature vectors for the segmented words by using a trained language model, wherein each word corresponds to a K-dimensional feature vector, and finally splicing into an N × K input feature matrix, wherein N is the number of words after the paragraph is segmented.
And performing convolution, wherein a plurality of convolution kernels with different or same sizes can exist, and one-dimensional convolution is performed on the whole input feature matrix in a sliding mode respectively, wherein the convolution kernel with 3 x K is similar to a 3-gram language model, and the convolution kernel with 2 x K is similar to a 2-gram language model.
And finally performing posing (pooling) operation on the vector generated by each convolution kernel to obtain the characteristics of each paragraph. The obtained features and the features in the database are stored in a tuple form, and particularly (unique id, article id, paragraph length and text features) are convenient for a server to match and pair. When the method is used, the similarity of text features of articles in the large article database is directly calculated according to indexes, and for articles outside the database, the text features are calculated and then the articles are stored in the database.
And step 120, matching in a preset database according to the characteristic vector to obtain a matching result.
In this embodiment, the preset database is a paragraph text feature database, which includes all the historical reading records of the user, where the historical reading records include the number and the category of articles and the content of each article that the user has historically read, and so on. The matching result comprises a target article with similar paragraphs with the article to be read, and the positions and the number of the similar paragraphs in the article to be read can be judged by analyzing the target article.
And step 130, hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read.
In this embodiment, after text feature vectors are calculated according to paragraphs, the text feature vectors are respectively compared with a paragraph text feature database of the user, if a paragraph with higher similarity in the database is hit, the number of times that the paragraph is read by the user is then queried, if the number of times is too high, the paragraph is folded when the article is finally displayed, and in the case of folding, the user can also click on the folded content for reading. If the number of reading times is not large, no operation is performed, and if all paragraphs of the whole article are hit and the number of reading times is large, the article is considered to be read by the user for many times, and the article is not pushed any more. The more reading times, the more the appeared paragraphs will show the articles with the proportion of 1/f (x) (f (x) >1), the design and learning rate of f (x) is related, the gentler the learning curve is, the gentler the f (x) increase is, and the steeper the increase is, the quicker the increase is.
The embodiment discloses an article display method, which comprises the following steps: acquiring an article to be read; extracting a feature vector of the article to be read; matching in a preset database according to the characteristic vector to obtain a matching result; and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.
Example two
Fig. 2 is a flowchart of an article displaying method according to an embodiment of the present invention, where this embodiment is applicable to a situation where a user reads a content already read on an electronic device, and the method may be executed by a server, and specifically includes the following steps:
and 200, acquiring a historical reading record of the user.
In the embodiment, the history reading record includes relevant information such as the number of articles that the user has read, the type of articles, the number of paragraphs included in each article, and keywords of paragraphs. The server stores the reading record of the user after each reading of the user.
And 210, generating the preset database according to the historical reading record.
In this embodiment, the historical reading record of each user obtained in step 200 is separately generated into a corresponding paragraph text feature database, and the historical reading record of the user is stored in the paragraph text feature database bound with the user. The paragraph text feature database is continuously updated and expanded along with reading of new articles by a user each time, so that real-time updating of the database is guaranteed, and the identification accuracy is improved.
Step 220, the article to be read is obtained.
And 230, extracting the feature vector of the article to be read by using a pre-trained model.
In this embodiment, the language training Model may use an N-Gram Model, which is a common language Model in large vocabulary continuous speech recognition and is called Chinese Language Model (CLM) for Chinese. The Chinese language model can calculate the sentence with the maximum probability by using the collocation information between adjacent words in the context when the continuous blank-free pinyin, strokes or numbers representing letters or strokes need to be converted into Chinese character strings (namely sentences), thereby realizing the automatic conversion of Chinese characters without manual selection of a user and avoiding the problem of repeated codes of a plurality of Chinese characters corresponding to the same pinyin (or stroke strings or number strings). The language identification model is used for extracting the characteristics of the article to be read, so that the identification speed is increased, and the identification process is reduced.
In this embodiment, step 230 may further include the following steps:
and 231, segmenting the article to be read according to sections.
In this embodiment, each article to be read is segmented in paragraph form, and if there is no obvious paragraph separator, the number of sentences with fixed length is used as the paragraph dividing basis. Illustratively, each paragraph in the article to be read is divided separately, and if no separate paragraph exists, every 5 sentences or 10 sentences are set as one paragraph.
And step 232, extracting the feature vector of each paragraph in the article to be read.
In this embodiment, features corresponding to each word in each paragraph are extracted, taking paragraph one of the article x as an example, all texts of the paragraph are taken as a whole, word segmentation is performed, then, a pre-training language model of the next fire is used, feature vectors are calculated for the passed words, each word corresponds to a K-dimensional feature vector, and finally, an N × K input feature matrix is formed by splicing, wherein N is the number of words after the paragraph is segmented.
And 233, acquiring a feature vector corresponding to each paragraph in the article to be read.
In this embodiment, a posing (pooling) operation is performed on the vector generated by each convolution kernel, which is to screen out the strongest feature extracted from the convolution kernels, and in this embodiment, the strongest feature mainly means that the extracted feature vector value includes the keyword semantics of the paragraph.
And filtering useless features, specifically adopting max-pooling, K-max pooling or chunk-maxporoling and the like, and aiming at compressing the extraction results of a plurality of convolution kernels into final features with stronger features and lower dimensionality.
And step 234, matching in a preset database according to the feature vector of the paragraph.
In this embodiment, the paragraph feature vectors generated in step 233 are matched in the preset database, and if the distance between the feature vector of a paragraph in the preset database and the paragraph feature vector is lower than a threshold T1, it means that the similarity between the two paragraphs is high, and it is necessary to determine whether to continue displaying the paragraphs to the user.
And step 240, matching according to the similarity degree, the time length and the reading times of the feature vectors in a preset database to obtain a matching result.
In this embodiment, the similarity degree specifically refers to a difference between a feature vector corresponding to a paragraph in an article to be read and a feature vector value in a database. Illustratively, the target feature closest to the feature vector of the paragraph in the article to be read is matched in the database, and the article corresponding to the target feature is taken as an analog article to hide and adjust the article to be read. The time length specifically refers to that whether the read content appears to the user or not is to continue hiding the repeated content by setting a preset time length threshold T2. For example, when the same content appears in the article to be read of the user, if the reading time of the user exceeds one month, the server defaults that the user has forgotten, and the content of the article to be read is not hidden. The reading times specifically refer to determining whether the content with the similarity hit by the user can be repeatedly displayed by presetting a reading time threshold T3. For example, when the same content appears in the article to be read of the user, if the user only reads 3 times, the user may not be deeply impressed and the part of the content may not be hidden.
And step 250, acquiring whether the paragraph content in the article to be read needs to be hidden according to the matching result.
In this embodiment, for an article to be pushed to a user, after text features are calculated according to paragraphs, the text features are compared with a paragraph text feature database of the user, if a paragraph with higher similarity in the database is hit, then the number of times that the paragraph is read by the user is inquired, if the number of times is too high, the paragraph is hidden when the article is displayed finally, the paragraph cannot be seen by the user during normal reading, if the number of times for reading is not large or the previous reading time is long, a hidden paragraph operation is not performed, if paragraphs of the whole article are hit and the number of times for reading is large, the article is considered to have been read by the user for many times, and the article is not pushed any more.
And step 260, carrying out clickable display hiding processing on sections needing to be hidden in the reading article.
In this embodiment, the hidden article may be shown to be hidden in the article, and if the user forgets to read the content before, the link or the switch may be clicked to open the hidden paragraph, thereby avoiding that the content forgotten by the user is hidden to cause poor reading experience of the user.
The embodiment discloses an article display method, which comprises the following steps: acquiring a historical reading record of a user; generating the preset database according to the historical reading record; acquiring an article to be read; extracting feature vectors of the article to be read by using a pre-trained model; matching according to the similarity degree, the time length and the reading times of the feature vectors in a preset database to obtain a matching result; acquiring whether the paragraph content in the article to be read needs to be hidden according to the matching result; and carrying out clickable display hiding processing on sections needing to be hidden in the reading article. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.
EXAMPLE III
The article display device provided by the embodiment of the invention can implement the article display method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig. 3 is a schematic structural diagram of an article display apparatus 300 according to an embodiment of the present invention. Referring to fig. 3, an article display apparatus 300 according to an embodiment of the present invention may specifically include:
an obtaining module 310, configured to obtain an article to be read;
an extracting module 320, configured to extract a feature vector of the article to be read;
the matching module 330 is configured to perform matching in a preset database according to the feature vector to obtain a matching result;
and the display module 340 is configured to hide the content, corresponding to the matching result, in the article to be read according to the matching result.
Further, before the obtaining the article to be read, the method further includes:
acquiring a historical reading record of a user;
and generating the preset database according to the historical reading record.
Further, the extracting the feature vector of the article to be read includes:
segmenting the article to be read according to paragraphs;
and extracting a feature vector corresponding to each word of each paragraph in the article to be read.
Further, after the extracting the feature vector of each paragraph in the article to be read, the method further includes:
and matching in a preset database according to the feature vector of the paragraph.
Further, the extracting the feature vector of the article to be read includes: and extracting the feature vector of the article to be read by using a pre-trained model.
Further, the matching in a preset database according to the feature vector to obtain a matching result includes: and matching according to the similarity degree, the time length and the reading times of the feature vectors in a preset database to obtain a matching result.
Further, the hiding the content of the article to be read corresponding to the matching result according to the matching result includes:
acquiring whether the paragraph content in the article to be read needs to be hidden according to the matching result;
and carrying out clickable display hiding processing on sections needing to be hidden in the reading article.
The embodiment discloses an article display device, which comprises: the acquisition module is used for acquiring the article to be read; the extraction module is used for extracting the characteristic vector of the article to be read; the matching module is used for matching in a preset database according to the characteristic vector to obtain a matching result; and the display module is used for hiding the content corresponding to the matching result in the article to be read according to the matching result. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.
Example four
Fig. 4 is a schematic structural diagram of a computer server according to an embodiment of the present invention, as shown in fig. 4, the computer server includes a memory 410 and a processor 420, the number of the processors 420 in the computer server may be one or more, and one processor 420 is taken as an example in fig. 4; the memory 410 and the processor 420 in the device may be connected by a bus or other means, and fig. 4 illustrates the connection by a bus as an example.
The memory 410 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the article display method in the embodiment of the present invention (for example, the obtaining module 310, the extracting module 320, the matching module 330, and the display module 340 in the article display apparatus 300), and the processor 420 executes various functional applications and data processing of the device/terminal/device by executing the software programs, instructions, and modules stored in the memory 410, so as to implement the above-mentioned article display method.
Wherein the processor 420 is configured to run the computer program stored in the memory 410, and implement the following steps:
acquiring an article to be read;
extracting a feature vector of the article to be read;
matching in a preset database according to the characteristic vector to obtain a matching result;
and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read.
In one embodiment, the computer program of the computer device provided by the embodiment of the present invention is not limited to the above method operations, and may also perform related operations in the method for displaying an article provided by any embodiment of the present invention.
The memory 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 410 may further include memory located remotely from the processor 420, which may be connected to devices/terminals/devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiment discloses a server for article display, which is used for executing the following method: acquiring an article to be read; extracting a feature vector of the article to be read; matching in a preset database according to the characteristic vector to obtain a matching result; and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.
EXAMPLE five
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for article display, the method comprising:
acquiring an article to be read;
extracting a feature vector of the article to be read;
matching in a preset database according to the characteristic vector to obtain a matching result;
and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in a method for displaying an article provided by any embodiment of the present invention.
The computer-readable storage media of embodiments of the invention may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The embodiment discloses a storage medium for article display, which is used for executing the following method: acquiring an article to be read; extracting a feature vector of the article to be read; matching in a preset database according to the characteristic vector to obtain a matching result; and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read. According to the article display method provided by the embodiment of the invention, the article to be read of the user is compared with the historical records in the database, the content which is already read by the user is reduced for the article to be read, the problem that the time and the energy of the user are wasted when the user reads the repeated content in the similar article in the prior art is solved, and the effects of improving the reading speed of the user and improving the user experience are realized.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method of article display, comprising:
acquiring an article to be read;
extracting a feature vector of the article to be read;
matching in a preset database according to the characteristic vector to obtain a matching result;
and hiding the content corresponding to the matching result according to the matching result and then displaying the article to be read.
2. The method of displaying an article as claimed in claim 1, wherein before the obtaining the article to be read, the method further comprises:
acquiring a historical reading record of a user;
and generating the preset database according to the historical reading record.
3. The method for displaying an article according to claim 1, wherein the extracting the feature vector of the article to be read comprises:
segmenting the article to be read according to paragraphs;
and extracting the feature vector of each paragraph in the article to be read.
4. The method for displaying an article according to claim 3, wherein after extracting the feature vector of each paragraph in the article to be read, the method further comprises:
and matching in a preset database according to the feature vector of the paragraph.
5. The method for displaying an article according to claim 1, wherein the extracting the feature vector of the article to be read comprises: and extracting the feature vector of the article to be read by using a pre-trained model.
6. The method for displaying an article according to claim 1, wherein the matching in the preset database according to the feature vector to obtain the matching result comprises: and matching according to the similarity degree, the time length and the reading times of the feature vectors in a preset database to obtain a matching result.
7. The method for displaying an article according to claim 1, wherein the hiding or displaying the contents of the paragraph of the article to be read corresponding to the matching result according to the matching result comprises:
acquiring whether the paragraph content in the article to be read needs to be hidden according to the matching result;
and carrying out clickable display hiding processing on sections needing to be hidden in the reading article.
8. An apparatus for article display, comprising:
the acquisition module is used for acquiring the article to be read;
the extraction module is used for extracting the characteristic vector of the article to be read;
the matching module is used for matching in a preset database according to the characteristic vector to obtain a matching result;
and the display module is used for hiding the content corresponding to the matching result in the article to be read according to the matching result.
9. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method for article display as recited in any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, the computer program comprising program instructions, characterized in that the program instructions, when executed by a processor, implement a method of article display according to any one of claims 1-7.
CN202010675624.9A 2020-07-14 2020-07-14 Article display method, article display device, server and storage medium Pending CN111813897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010675624.9A CN111813897A (en) 2020-07-14 2020-07-14 Article display method, article display device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010675624.9A CN111813897A (en) 2020-07-14 2020-07-14 Article display method, article display device, server and storage medium

Publications (1)

Publication Number Publication Date
CN111813897A true CN111813897A (en) 2020-10-23

Family

ID=72864713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010675624.9A Pending CN111813897A (en) 2020-07-14 2020-07-14 Article display method, article display device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111813897A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372204A (en) * 2016-08-31 2017-02-01 北京小米移动软件有限公司 Push message processing method and device
CN107846352A (en) * 2017-11-10 2018-03-27 维沃移动通信有限公司 A kind of method for information display, mobile terminal
CN109800375A (en) * 2018-12-15 2019-05-24 深圳壹账通智能科技有限公司 Information integrates dissemination method, device, computer equipment and storage medium
CN110489558A (en) * 2019-08-23 2019-11-22 网易传媒科技(北京)有限公司 Polymerizable clc method and apparatus, medium and calculating equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372204A (en) * 2016-08-31 2017-02-01 北京小米移动软件有限公司 Push message processing method and device
CN107846352A (en) * 2017-11-10 2018-03-27 维沃移动通信有限公司 A kind of method for information display, mobile terminal
CN109800375A (en) * 2018-12-15 2019-05-24 深圳壹账通智能科技有限公司 Information integrates dissemination method, device, computer equipment and storage medium
CN110489558A (en) * 2019-08-23 2019-11-22 网易传媒科技(北京)有限公司 Polymerizable clc method and apparatus, medium and calculating equipment

Similar Documents

Publication Publication Date Title
CN109635273B (en) Text keyword extraction method, device, equipment and storage medium
CN108829822B (en) Media content recommendation method and device, storage medium and electronic device
CN106649818B (en) Application search intention identification method and device, application search method and server
CN108121700B (en) Keyword extraction method and device and electronic equipment
RU2643467C1 (en) Comparison of layout similar documents
CN108304375B (en) Information identification method and equipment, storage medium and terminal thereof
CN109858010B (en) Method and device for recognizing new words in field, computer equipment and storage medium
CN108345686B (en) Data analysis method and system based on search engine technology
US20080294982A1 (en) Providing relevant text auto-completions
CN111291172B (en) Method and device for processing text
CN111414757B (en) Text recognition method and device
CN114580382A (en) Text error correction method and device
CN111459977B (en) Conversion of natural language queries
CN108875065B (en) Indonesia news webpage recommendation method based on content
CN110808032A (en) Voice recognition method and device, computer equipment and storage medium
CN114036930A (en) Text error correction method, device, equipment and computer readable medium
US20140348400A1 (en) Computer-readable recording medium storing program for character input
CN110309504B (en) Text processing method, device, equipment and storage medium based on word segmentation
CN110738059B (en) Text similarity calculation method and system
CN110866098A (en) Machine reading method and device based on transformer and lstm and readable storage medium
CN111783471A (en) Semantic recognition method, device, equipment and storage medium of natural language
CN110929498A (en) Short text similarity calculation method and device and readable storage medium
CN110795942B (en) Keyword determination method and device based on semantic recognition and storage medium
CN111984845A (en) Website wrongly-written character recognition method and system
CN111400340B (en) Natural language processing method, device, computer equipment and storage medium

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