Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
To maintain the following description of the embodiments of the present invention clear and concise, a detailed description of known functions and known components of the invention have been omitted.
The first embodiment of the present invention provides a method for presenting comment content, the flow of which is shown in fig. 1, and the method includes steps S101 to S104:
s101, determining the comment subjects of the comment contents related to the preset link in all the preset comment contents according to a preset keyword extraction strategy.
After a user clicks a certain link, if the interface corresponding to the link is a link with a comment area, the user can post comment content in the comment area corresponding to the link. For example, when a user watches a certain video link, many users dispute the comment content in the comment area below the video, and then the user can see the comment content posted by other users. Generally, the comment content of the user is directed to the video content, and therefore, the comment content generally surrounds a theme.
In the embodiment, a comment subject is determined for all the predetermined comment contents by taking all the predetermined comment contents as a whole. Any one of the predetermined keyword extraction strategies in the prior art may be used to determine the comment subjects of all the predetermined comment contents involved in a certain predetermined link, for example, the term importance principle is used to determine the comment subjects. The predetermined comment content may be comment content that is not subjected to any filtering, or may be comment content that is subjected to filtering.
S102, displaying the comment theme at a preset position.
According to the embodiment of the invention, the comment subject is not set for a certain preset link independently, but all links have the comment subject corresponding to the comment content of the link, so that after the comment subject is determined by the current link, the comment subject can be used as a search word to search the comment contents of other related links. In order to enable the user to have better user experience, the comment subject can be directly associated with the search box and presented in a certain preset position of the interface corresponding to the preset link, and therefore when the user wants to view more comment contents of the relevant link, the user can directly operate the presented comment subject.
In a specific implementation, a predetermined comment subject library can be used for storing all the linked comment subjects, and the comment subjects can be stored in the predetermined comment subject library before being presented in the predetermined position of the interface corresponding to the predetermined link. Of course, this method is only a specific example, and all the linked comment themes may not be uniformly stored.
S103, searching for related comment contents with the matching degree of the comment subjects reaching a preset value in all the preset comment contents.
Generally, the comment theme is designed to be clickable, and when clicking the comment theme, a user triggers to search for comment content related to the comment theme.
In the process, the comment subjects serve as keywords for searching related comment contents, and if the matching degree of other comments and the comment subjects reaches a preset value, it is indicated that contents which are interested by the user viewing the current preset link exist in the other comments.
And S104, displaying the related comment contents according to a preset sequence.
The display order of the existing comment content is various, for example, according to the comment time, the comment number of comments, the reply number of the comment content, and the like; in setting, the present embodiment may perform presentation in any display order.
According to the embodiment of the invention, a comment subject is determined for all the preset comment contents in the preset link, and the comment contents corresponding to the same or similar other links can be found through the comment subject by searching the related comment contents based on the comment subject.
According to the embodiment of the invention, the comment contents are summarized through the comment subjects, so that the user can quickly view the relevant comment contents of all links according to the comment subjects displayed on the current link, and the user experience is good.
The second embodiment of the present invention provides a method for presenting comment content, the flow of the method is shown in fig. 2, and the method includes steps S201 to S207:
s201, detecting whether the comment content of each link in a preset time range meets a first preset condition or not in all the links, and determining the links meeting the first preset condition as preset links.
The first predetermined condition may include a variety of cases, for example, whether the total number of the comment contents reaches a predetermined comment number, the number of the praise of the comment contents reaches a predetermined praise number, and the like. If the comment content meets the first predetermined condition within a predetermined time range of some links, the links are determined as predetermined links.
S202, determining that the comment content meeting the second preset condition in the preset time range of the preset link is the comment content associated with the preset link in all the preset comment contents.
The second predetermined condition may include a plurality of cases, for example, the number of replies to the comment content reaches the predetermined number of replies, the number of praise to the comment content reaches the predetermined number of praise, and the like. Since the process is a screening process for the comment content, if the second predetermined condition is set that the predetermined number of praise for the comment content reaches the predetermined number of praise, the predetermined number of praise in the process is necessarily higher than the predetermined number of praise in the first predetermined condition in the process of determining the predetermined link, and it can be guaranteed that the related comment content displayed last is of good quality.
When the second predetermined condition is set that the reply quantity of the comment content reaches the predetermined reply quantity, and when all the predetermined comment content in the predetermined link is acquired, whether each comment meets the second predetermined condition is judged, for example, the reply quantity of each comment in the predetermined link is counted, if the reply quantity of a certain comment content reaches 100, it is said that the comment content is a web friend of the comment content, and the comment content meets the second predetermined condition, which may be called a hot comment.
Of course, the number of praise of the comment content and the number of replies of the comment content may be used together as a condition for filtering all the predetermined comment contents.
S203, determining the comment subjects of the comment contents associated with the preset links in all the preset comment contents according to the preset keyword extraction strategy.
After a user clicks a certain link, if the interface corresponding to the link is a link with a comment area, the user can post comment content in the comment area corresponding to the link. For example, when a user watches a certain video link, many users dispute the comment content in the comment area below the video, and then the user can see the comment content posted by other users. Generally, the comment content of the user is directed to the video content, and therefore, the comment content generally surrounds a theme.
In the embodiment, a comment subject is determined for all the predetermined comment contents by taking all the predetermined comment contents as a whole. Any one of the predetermined keyword extraction strategies in the prior art may be used to determine the comment subjects of all the predetermined comment contents involved in a certain predetermined link, for example, the term importance principle is used to determine the comment subjects.
In a specific implementation, the term importance principle may be adopted in the predetermined keyword extraction policy, and the process of determining the comment subjects of all the predetermined comment contents associated with the predetermined link according to the predetermined keyword extraction policy may be as follows: performing word segmentation on the comment content associated with the preset link, and scoring each participle obtained after the word segmentation according to a preset keyword extraction strategy to obtain a score of each participle; sequentially acquiring the first N participles according to the sequence of scores from high to low, and forming M subject terms by the N participles according to a permutation and combination mode; matching each subject term in the M subject terms with historical search terms stored in a preset search database respectively to determine the search matching degree of each subject term; and determining the subject term corresponding to the highest search matching degree as the comment subject of the comment content associated with the predetermined link, wherein M and N are integers greater than 2, and M is greater than N.
For example, all the comment contents meeting the second predetermined condition are extracted from a certain article, word segmentation processing is performed on all the predetermined comment contents, the segmented words are scored according to term importance, after the processing, scores of the same words are added to obtain the top 5 words with the highest score, and then the 5 words are combined to obtain more subject words. And querying a preset search database by using the subject terms, and showing the term to the user if the subject term is the query which is actually searched by the user in history. If a plurality of queries are found to be history-displayed queries after query, one of the queries can be randomly selected for recommendation.
As shown in fig. 3, the article is a basketball report article, the article is followed by the comment area of the user, and the number of comments of the user of the article exceeds 4000 preset, so that in order for the user to have a better use experience, the comment subject needs to be determined for the comment content of the article.
As can be seen in fig. 3, the praise counts are relatively high in the several comments that have been displayed, and therefore, the comment content of the article may be displayed in the order of the praise counts. When the comment subjects of the article are determined, all the preset comment contents with the number of praise higher than 100 are acquired, and the comment subjects are determined for the comment contents.
In fig. 3, only the top 3 comments have a praise number higher than 100, and the following takes the content of the 3 comments as an example to illustrate the process of determining the subject of the comment by the term importance principle.
(1) And acquiring all the preset comment contents meeting the preset hot comment conditions.
Review 1: a is still losing but has strong score ability today
Review 2: a failing to take effect
Comment 3: b score ability of today is general, not
(2) And performing word segmentation on all the preset comment contents.
Review 1: a | today | score | ability | good | o, but | still | output ball
Review 2: a | loses the ball, | hey
Comment 3: b | today | score | ability | general | o, | without force
(3) The 4 words with higher scores are determined, and all combinations of the 4 words are determined.
Words with high scores: A. score, today, lose the ball.
The following are combined: score a, ball lost a, score today a, and so on. Of course, the combination can be performed in combination with the normal word order during the specific implementation, and obvious and unreasonable combinations can be deleted.
(4) Then go to the predetermined search database to search query.
Through searching, only the ball input of the A is found to be the real query, and the ball input of the A can be set as the comment subject.
S204, displaying the comment theme at a preset position.
According to the embodiment of the invention, the comment subject is not set for a certain preset link independently, but all links have the comment subject corresponding to the comment content of the link, so that after the comment subject is determined by the current link, the comment subject can be used as a search word to search the comment contents of other related links. In order to enable the user to have better user experience, the comment subject can be directly associated with the search box and presented in a certain preset position of the interface corresponding to the preset link, and therefore when the user wants to view more comment contents of the relevant link, the user can directly operate the presented comment subject.
For example, as shown in fig. 4, "a lost ball" is shown between the article area and the comment area in fig. 4, and the specific display form thereof only needs to include a lost ball, and in order to give the user a better sensory experience, a special symbol may be added before and after the comment subject, as shown in fig. 5, a "# a lost ball #" is displayed. Of course, "a loses a ball" can be displayed at other positions of the article, and those skilled in the art can make different settings according to the actual needs of the user and different layouts of the corresponding link interfaces.
In a specific implementation, a predetermined comment subject library can be used for storing all the linked comment subjects, and the comment subjects can be stored in the predetermined comment subject library before being presented in the predetermined position of the interface corresponding to the predetermined link. Of course, this method is only a specific example, and all the linked comment themes may not be uniformly stored.
S205, searching for the related comment content with the matching degree of the comment theme reaching the preset value in all the preset comment contents.
Generally, the comment theme is designed to be clickable, and when clicking the comment theme, a user triggers to search for comment content related to the comment theme.
In the process, the comment subjects serve as keywords for searching related comment contents, and if the matching degree of other comments and the comment subjects reaches a preset value, it is indicated that contents which are interested by the user viewing the current preset link exist in the other comments.
For example, when the user clicks "# a ball lost #" in fig. 5, the present embodiment obtains "# a ball lost #" as a keyword for searching, and obtains related comment contents with the same text, where the original links corresponding to the related comment contents may be video links, article links, and the like.
And S206, sequencing the related comment contents according to a preset sequencing rule. Since the ranking modes of the comment contents presented under each link are different, the predetermined ranking rule in the process also does not need to follow the ranking mode of the comment contents of each link, and the predetermined ranking rule may be, for example, by comment time, by comment like number, by reply number of the comment contents, and the like.
And S207, presenting a preset number of comment contents according to the sequence from high to low of the sequencing result.
Due to the limited size of the interface layout, the embodiment of the present invention sets that 10 comment contents possibly from different links are finally presented, as shown in fig. 6, the praise numbers are sequentially arranged from high to low, and the pull-down can view all 10 comment contents. Of course, the content may also be sorted according to the number of replies of each comment content, which is not described herein again.
According to the embodiment of the invention, a comment subject is determined for the comment content associated with the preset link, and related comment content is searched based on the comment subject, so that the comment content corresponding to the same or similar other links can be found through the comment subject.
According to the embodiment of the invention, the comment contents are summarized through the comment subjects, so that the user can quickly view the relevant comment contents of all links according to the comment subjects displayed on the current link, and the user experience is good.
A third embodiment of the present invention provides a presentation apparatus of comment content, the apparatus having a structure schematically shown in fig. 7, and including:
the first determining module 10 is configured to determine, according to a predetermined keyword extraction policy, a comment subject of comment content associated with a predetermined link from among all predetermined comment content; a first presenting module 20, coupled to the first determining module 10, for displaying the comment subject at a predetermined location; the matching module 30 is coupled with the first presenting module 20 and is used for searching all the preset comment contents for the related comment contents of which the matching degree with the comment subjects reaches a preset value; and a second presenting module 40, coupled to the matching module 30, for displaying the related comment contents in a predetermined order.
After a user clicks a certain link, if the interface corresponding to the link is a link with a comment area, the user can post comment content in the comment area corresponding to the link. For example, when a user watches a certain video link, many users dispute the comment content in the comment area below the video, and then the user can see the comment content posted by other users. Generally, the comment content of the user is directed to the video content, and therefore, the comment content generally surrounds a theme.
In the embodiment, a comment subject is determined for all the predetermined comment contents by taking all the predetermined comment contents as a whole. The first determination module 10 may use any one of the predefined keyword extraction strategies in the prior art to determine the comment subjects of all predefined comment contents involved in a certain predefined link, for example, using term importance principle to determine the comment subjects. The predetermined comment content may be comment content that is not subjected to any filtering, or may be comment content that is subjected to filtering.
According to the embodiment of the invention, the comment subject is not set for a certain preset link independently, but all links have the comment subject corresponding to the comment content of the link, so that after the comment subject is determined by the current link, the comment subject can be used as a search word to search the comment contents of other related links. In order to enable the user to have better user experience, the first presentation module 20 in this embodiment may directly associate the comment subject with the search box, and present the comment subject in a certain predetermined position of the interface corresponding to the predetermined link, so that when the user wants to view more comment contents of related links, the user may directly operate the presented comment subject.
In a specific implementation, a predetermined comment subject library can be used for storing all the linked comment subjects, and the comment subjects can be stored in the predetermined comment subject library before being presented in the predetermined position of the interface corresponding to the predetermined link. Of course, this method is only a specific example, and all the linked comment themes may not be uniformly stored.
In general, the matching module 30 may design the comment subject to be clickable, and when the user clicks the comment subject, the user may trigger to search for the comment content related to the comment subject.
In the process, the comment subjects serve as keywords for searching related comment contents, and if the matching degree of other comments and the comment subjects reaches a preset value, it is indicated that contents which are interested by the user viewing the current preset link exist in the other comments.
The display order of the existing comment content is various, for example, according to the comment time, the comment number of comments, the reply number of the comment content, and the like; in this embodiment, when setting up, the second presenting module 40 may present according to any one of the display orders.
According to the embodiment of the invention, a comment subject is determined for the comment content associated with the preset link, and related comment content is searched based on the comment subject, so that the comment content corresponding to the same or similar other links can be found through the comment subject.
According to the embodiment of the invention, the comment contents are summarized through the comment subjects, so that the user can quickly view the relevant comment contents of all links according to the comment subjects displayed on the current link, and the user experience is good.
A fourth embodiment of the present invention provides a comment content presentation apparatus, a structural schematic of which is shown in fig. 8, including:
the second determining module 50 is used for detecting whether the comment content of each link meets a first predetermined condition within a predetermined time range in all the links, and determining the links meeting the first predetermined condition as predetermined links; a third determining module 60, coupled to the second determining module 50, for determining that the predetermined links meet the second predetermined condition within a predetermined time range as all the predetermined comment contents; the first determining module 10 is coupled with the third determining module 60 and is used for determining the comment subjects of all the preset comment contents in the preset link according to a preset keyword extraction strategy; the first presentation module 20 is coupled with the first determination module 10, and is used for setting the comment theme as a search word associated with the search box and presenting the comment theme at a predetermined position of the interface corresponding to the predetermined link; the matching module 30 is coupled with the first presenting module 20, and is configured to search, in the case that the comment subject receives the trigger operation, the same type of comment subject whose matching degree with the comment subject reaches the predetermined matching degree in the predetermined comment subject library, and obtain all linked comment contents corresponding to the same type of comment subject; and a second presentation module 40, coupled to the matching module 30, for presenting all the linked comment contents in a predetermined display order.
In a specific implementation, the first predetermined condition in the second determining module 50 may include various conditions, such as whether the total number of the comment contents reaches a predetermined comment number, the number of the comment contents reaches a predetermined number of the comment, and the like. If the comment content meets the first predetermined condition within a predetermined time range of some links, the links are determined as predetermined links.
The second predetermined condition in the third determination module 60 may include various cases, for example, that the number of replies to the comment content reaches a predetermined number of replies, that the number of votes for the comment content reaches a predetermined number of votes, and the like. Since the process is a screening process for the comment content, if the second predetermined condition is set that the predetermined number of praise for the comment content reaches the predetermined number of praise, the predetermined number of praise in the process is necessarily higher than the predetermined number of praise in the first predetermined condition in the process of determining the predetermined link, and it can be guaranteed that the related comment content displayed last is of good quality.
When the second predetermined condition is set that the number of replies of the comment content reaches the predetermined number of replies, and when the comment content associated with the predetermined link is obtained, it is determined whether each comment meets the second predetermined condition, for example, the number of replies of each comment in the predetermined link is counted, and if the number of replies of a certain comment content reaches 100, it is said that the comment content meets the second predetermined condition, which may be called a hot comment.
Of course, the number of praise of the comment content and the number of replies of the comment content may be used together as a condition for filtering all the predetermined comment contents.
After a user clicks a certain link, if the interface corresponding to the link is a link with a comment area, the user can post comment content in the comment area corresponding to the link. For example, when a user watches a certain video link, many users dispute the comment content in the comment area below the video, and then the user can see the comment content posted by other users. Generally, the comment content of the user is directed to the video content, and therefore, the comment content generally surrounds a theme.
In the embodiment, a comment subject is determined for all the predetermined comment contents by taking all the predetermined comment contents as a whole. The first determination module 10 may use any one of the predefined keyword extraction strategies in the prior art to determine the comment subjects of all predefined comment contents involved in a certain predefined link, for example, using term importance principle to determine the comment subjects. The predetermined comment content may be comment content that is not subjected to any filtering, or may be comment content that is subjected to filtering.
The determining module 10 may include: the scoring unit is used for performing word segmentation processing on all the preset comment contents and scoring each participle obtained after the word segmentation processing according to a preset keyword extraction strategy so as to obtain a score of each participle; the combination unit is used for sequentially acquiring the first N participles according to the sequence of scores from high to low and forming M subject terms by the N participles according to a permutation and combination mode; the matching unit is used for respectively matching each subject term in the M subject terms with historical search terms stored in a preset search database so as to determine the search matching degree of each subject term; and the determining unit is used for determining the subject term corresponding to the highest search matching degree as the comment subject of all the preset comment contents in the preset link, wherein M and N are integers which are larger than 2, and M is larger than N.
For example, all the comment contents meeting the second predetermined condition are extracted from a certain article, word segmentation processing is performed on all the predetermined comment contents, the segmented words are scored according to term importance, after the processing, scores of the same words are added to obtain the top 5 words with the highest score, and then the 5 words are combined to obtain more subject words. And querying a preset search database by using the subject terms, and showing the term to the user if the subject term is the query which is actually searched by the user in history. If a plurality of queries are found to be history-displayed queries after query, one of the queries can be randomly selected for recommendation.
According to the embodiment of the invention, the comment subject is not set for a certain preset link independently, but all links have the comment subject corresponding to the comment content of the link, so that after the comment subject is determined by the current link, the comment subject can be used as a search word to search the comment contents of other related links. In order to enable the user to have better user experience, the first presentation module 20 in this embodiment may directly associate the comment subject with the search box, and present the comment subject in a certain predetermined position of the interface corresponding to the predetermined link, so that when the user wants to view more comment contents of related links, the user may directly operate the presented comment subject.
In a specific implementation, a predetermined comment subject library can be used for storing all the linked comment subjects, and the comment subjects can be stored in the predetermined comment subject library before being presented in the predetermined position of the interface corresponding to the predetermined link. Of course, this method is only a specific example, and all the linked comment themes may not be uniformly stored.
In general, the matching module 30 may design the comment subject to be clickable, and when the user clicks the comment subject, the user may trigger to search for the comment content related to the comment subject.
In the process, the comment subjects serve as keywords for searching related comment contents, and if the matching degree of other comments and the comment subjects reaches a preset value, it is indicated that contents which are interested by the user viewing the current preset link exist in the other comments.
The display order of the existing comment content is various, for example, according to the comment time, the comment number of comments, the reply number of the comment content, and the like; in this embodiment, when setting up, the second presenting module 40 may present according to any one of the display orders.
The second rendering module 40 may include: the sequencing unit is used for sequencing the related comment contents according to a preset sequencing rule; and the presentation unit is coupled with the sorting unit and used for presenting the predetermined number of comment contents according to the sorting result from high to low. In implementation, since the ranking modes of the comment contents presented under each link are different, the predetermined ranking rule in the process also does not need to follow the ranking mode of the comment contents of each link, and the predetermined ranking rule may be, for example, by comment time, by comment praise, by reply number of the comment contents, and the like.
According to the embodiment of the invention, a comment subject is determined for all the preset comment contents in the preset link, and the comment contents corresponding to the same or similar other links can be found through the comment subject by searching the related comment contents based on the comment subject.
According to the embodiment of the invention, the comment contents are summarized through the comment subjects, so that the user can quickly view the relevant comment contents of all links according to the comment subjects displayed on the current link, and the user experience is good.
A fifth embodiment of the present invention provides a storage medium storing a computer program that, when executed by a processor, implements the method provided in any of the embodiments of the present invention, as follows steps S1 to S4:
s1, determining the comment subjects of all the preset comment contents associated with the preset link according to the preset keyword extraction strategy;
s2, displaying the comment theme at the preset position;
s3, searching for relevant comment contents with the matching degree of the comment subjects reaching a preset value in all the preset comment contents;
and S4, displaying the related comment contents according to a preset sequence.
Before the step of determining the comment subject of all the predetermined comment contents associated with the predetermined link according to the predetermined keyword extraction policy is executed by the processor, the computer program may further execute the following steps by the processor: detecting whether the comment content of each link in a preset time range meets a first preset condition or not in all links; and determining the link meeting the first predetermined condition as a predetermined link.
After the step of determining that the link meeting the first predetermined condition is the predetermined link is executed by the processor, the computer program may further execute the following steps by the processor: and determining that the predetermined links meet the second predetermined condition in a predetermined time range as all the predetermined comment contents.
When the computer program is executed by the processor to determine the comment subjects of all the predetermined comment contents associated with the predetermined link according to the predetermined keyword extraction policy, the following steps are specifically executed by the processor: performing word segmentation on all the preset comment contents, and scoring each participle obtained after word segmentation according to a preset keyword extraction strategy to obtain a score of each participle; sequentially acquiring the first N participles according to the sequence of scores from high to low, and forming M subject terms by the N participles according to a permutation and combination mode; matching each subject term in the M subject terms with historical search terms stored in a preset search database respectively to determine the search matching degree of each subject term; and determining the subject term corresponding to the highest search matching degree as the comment subject of all the preset comment contents in the preset link, wherein M and N are integers larger than 2, and M is larger than N.
When the computer program is executed by the processor to display the related comment contents according to the preset sequence, the computer program is specifically executed by the processor to perform the following steps: sequencing the related comment contents according to a preset sequencing rule; and presenting a preset number of comment contents according to the sequence from high to low of the sequencing result.
According to the embodiment of the invention, a comment subject is determined for all the preset comment contents in the preset link, and the comment contents corresponding to the same or similar other links can be found through the comment subject by searching the related comment contents based on the comment subject.
According to the embodiment of the invention, the comment contents are summarized through the comment subjects, so that the user can quickly view the relevant comment contents of all links according to the comment subjects displayed on the current link, and the user experience is good.
The storage medium may be configured in a terminal that at least includes a memory and a processor, and may exist in the form of a memory, and specific implementation manners are not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
A sixth embodiment of the present invention provides a terminal, as shown in fig. 9, the terminal at least includes a memory 901 and a processor 902, the memory 901 stores a computer program, the processor 902 realizes the method provided by any embodiment of the present invention when executing the computer program on the memory 901, the steps of the computer program are as follows S11 to S14:
s11, determining the comment subjects of all the preset comment contents associated with the preset link according to the preset keyword extraction strategy;
s12, displaying the comment theme at the preset position;
s13, searching for relevant comment contents with the matching degree of the comment subjects reaching a preset value in all the preset comment contents;
and S14, displaying the related comment contents according to a preset sequence.
The processor 902 may further execute the following computer program before executing the computer program stored on the memory 901 for determining the comment subjects of all the predetermined comment contents associated with the predetermined link according to the predetermined keyword extraction policy: detecting whether the comment content of each link in a preset time range meets a first preset condition or not in all links; and determining the link meeting the first predetermined condition as a predetermined link.
The processor 902, after executing the computing computer program stored on the memory 901 for determining that a link meeting the first predetermined condition is a predetermined link, may further execute the following computer program: and determining that the predetermined links meet the second predetermined condition in a predetermined time range as all the predetermined comment contents.
The processor 902, when executing a computing computer program stored on the memory 901 that determines the comment subjects of all the predetermined comment contents associated with the predetermined link according to the predetermined keyword extraction policy, specifically executes the following computer program: performing word segmentation on all the preset comment contents, and scoring each participle obtained after word segmentation according to a preset keyword extraction strategy to obtain a score of each participle; sequentially acquiring the first N participles according to the sequence of scores from high to low, and forming M subject terms by the N participles according to a permutation and combination mode; matching each subject term in the M subject terms with historical search terms stored in a preset search database respectively to determine the search matching degree of each subject term; and determining the subject term corresponding to the highest search matching degree as the comment subject of all the preset comment contents in the preset link, wherein M and N are integers larger than 2, and M is larger than N.
When executing the calculation program for displaying the relevant comment contents in a predetermined order stored in the memory 901, the processor 902 specifically executes the following computer program: sequencing the related comment contents according to a preset sequencing rule; and presenting a preset number of comment contents according to the sequence from high to low of the sequencing result.
According to the embodiment of the invention, the comment contents are summarized through the comment subjects, so that the user can quickly view the relevant comment contents of all links according to the comment subjects displayed on the current link, and the user experience is good.
Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the present invention with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.
The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the above-described embodiments, various features may be grouped together to streamline the disclosure. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, inventive subject matter may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the invention should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.
While the embodiments of the present invention have been described in detail, the present invention is not limited to these specific embodiments, and those skilled in the art can make various modifications and modifications of the embodiments based on the concept of the present invention, which fall within the scope of the present invention as claimed.