A text semantic analysis method

By splitting the text of articles browsed by users and building a browsing influence model to extract words of interest, it solves the problem of personalized recommendation in a fragmented reading environment, achieves accurate identification and personalized recommendations of topics of user interest, and improves the effectiveness of article recommendations. Accuracy and user experience.

CN117875333BActive Publication Date: 2024-09-27BEIJING YI YI LIANG ZHUO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410064231.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-16
Publication Date
2024-09-27
Estimated Expiration
2044-01-16

AI Technical Summary

Technical Problem

In the fragmented mobile Internet reading environment, how to effectively determine the content that users are interested in and recommend personalized articles for them? It is difficult for existing technology to accurately identify the topics of user interest.

Method used

By obtaining the article text browsed by the user, split it into a sub-collection of key browsed texts and a sub-collection of sub-key browsed texts, use the browsing time and number of views to set restrictions, build a browsing influence model, extract a set of words that the user is interested in, and realize the user Accurate identification of topics of interest.

Benefits of technology

This method can identify user-preferred topics in a targeted manner, improve the accuracy of article recommendations, reduce disliked article recommendations, and improve user reading experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117875333B
    Figure CN117875333B
Patent Text Reader

Abstract

The invention discloses a text semantic analysis method, which belongs to the field of semantic analysis technology, and comprises the following steps: S1, obtaining all article texts browsed by users, and generating an article text set; S2, splitting the article text set into a focused browsing text subset and a second focused browsing text subset; S3, generating a user's interested word set according to the focused browsing text subset and the second focused browsing text subset. The method can specifically determine the browsing topics that users are interested in, obtain browsing feedback from users, facilitate subsequent recommendation of more accurate articles for users, improve the readability of articles, and reduce a large number of articles that users do not like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of semantic analysis, and in particular relates to a text semantic analysis method. Background Art

[0002] Reading articles online is a habit of people in modern society. With the development of computer technology and the continuous expansion of Internet users, more and more people use the Internet to obtain various information they need. In recent years, the rapid development of mobile Internet has made users' reading time more and more fragmented. In this context, how to determine the content of interest to users and recommend the articles that they are most interested in to users has become extremely important. Summary of the invention

[0003] In order to solve the above problems, the present invention proposes a text semantic analysis method.

[0004] The technical solution of the present invention is: a text semantic analysis method comprises the following steps:

[0005] S1. Obtain all article texts browsed by the user and generate an article text collection;

[0006] S2, splitting the article text collection into a focused browsing text subset and a less focused browsing text subset;

[0007] S3. Generate a user's interested word set according to the focused browsing text subset and the less focused browsing text subset.

[0008] Furthermore, S2 includes the following sub-steps:

[0009] S21, setting a first restriction condition, taking all article texts in the article text set that meet the first restriction condition as the first restricted text set;

[0010] S22, setting a second restriction condition, and taking all article texts in the article text set that meet the second restriction condition as the second restricted text set;

[0011] S23, determining whether the first restricted text set and the second restricted text set have an intersection, if so, proceeding to S24, otherwise proceeding to S25;

[0012] S24, taking the intersection of the first restricted text set and the second restricted text set as the focused browsing text subset, and taking the remaining article texts in the article text set except the focused browsing text subset as the secondary focused browsing text subset;

[0013] S25: The first restricted text set is used as a focused browsing text subset, and the remaining article texts in the article text set except the focused browsing text subset are used as secondary focused browsing text subsets.

[0014] The beneficial effect of the above further scheme is: in the present invention, among the many article texts browsed by the user, the browsing time of some article texts is relatively long, which may indicate that the length of the article text is relatively long, resulting in an increase in the time the user spends browsing the article text or the user has a high interest in the article text; the number of browsing times of some article texts is relatively large, which may also indicate that the user has a high interest in the article text. Therefore, the present invention sets two restriction conditions, namely, the browsing time limit and the browsing number limit. If a certain article text meets both the browsing time limit (i.e., the first restriction condition) and the browsing number limit (i.e., the second restriction condition), the article text is used as an element of the focused browsing text subset. If such an article text does not exist, the article text that meets the browsing time limit is preferentially used as an element of the focused browsing text subset. In this way, the article text collection can be reasonably split, so that the subsequent steps can be convenient for extracting appropriate words for the two subsets respectively.

[0015] Furthermore, in S21, the expression of the first restriction condition is:

[0016] Where, T i represents the browsing time of the i-th article in the article text set, I represents the number of articles in the article text set, min(·) represents the minimum operation, δ t represents the standard deviation of the browsing time of all article texts, T′ represents the maximum browsing time of the article text set, and T″ represents the minimum browsing time of the article text set.

[0017] Further, in S22, the expression of the second restriction condition is: Where D i represents the number of views of the i-th article text in the article text set, and I represents the number of article texts in the article text set.

[0018] Furthermore, S3 includes the following sub-steps:

[0019] S31. Setting browsing influence model;

[0020] S32, inputting the focused browsing text subset into the browsing influence model to obtain a focused browsing influence threshold;

[0021] S33, taking the words in each article text in the focused browsing text subset whose word frequency is greater than the focused browsing influence threshold as the first part of the interesting word set;

[0022] S34, determining a secondary browsing influence threshold according to the first set of interesting words;

[0023] S35, taking the words in each article text in the secondary key browsing text subset whose word frequency is greater than the secondary key browsing influence threshold as the second part of the interesting word set;

[0024] S36: Determine a user's set of words of interest based on the first set of words of interest and the second set of words of interest.

[0025] The beneficial effect of the above further scheme is: in the present invention, a browsing influence model is constructed to determine the key browsing influence threshold, and the key browsing influence threshold is used to select words with a larger frequency in the key browsing text subset as the first part of the interesting word set. The elements of the first part of the interesting word set are selected from the key browsing text subset, so the elements of the first part of the interesting word set are used to limit the important words of the secondary key browsing text subset, that is, to determine the secondary key browsing influence threshold. The above screening process of interesting words can select the key browsing words preferred by the user in a targeted manner, and the key browsing text subset is used to further limit the interesting words of the secondary key browsing text subset, and the selection result is accurate.

[0026] Furthermore, in S31, the expression of the browsing influence model G is:

[0027]

[0028] Where N is the number of articles in the focused browsing text subset, M is the number of words in the articles in the focused browsing text subset, K is the number of non-stop words in the articles in the focused browsing text subset, and F is n_m Indicates the frequency of the mth word in the nth article text of the focused browsing text subset, F n_k represents the frequency of the kth non-stop word in the nth article text of the focused browsing text subset, and ln(·) represents the logarithmic function.

[0029] Furthermore, in S34, the calculation formula of the secondary key browsing influence threshold θ is:

[0030] In the formula, R represents the number of words in the first part of the set of words of interest, X r Represents the word vector of the rth word in the first set of words of interest.

[0031] Furthermore, in S36, a specific method for determining the user's interested word set is: taking the union of the first part of the interested word set and the second part of the interested word set as the user's interested word set.

[0032] The beneficial effects of the present invention are as follows: the text semantic analysis method is triggered by browsing time and browsing times, and classifies all article texts browsed by users to obtain a focused browsing text subset and a less focused browsing text subset; some of the user's words of interest are obtained from the focused browsing text subset, and based on some of the words of interest in the focused browsing text subset, some of the words of interest are selected from the less focused browsing text subset, thereby forming a final word set of interest to the user; the method can determine the browsing topics that the user is interested in in a targeted manner, obtain the user's browsing feedback, and facilitate the subsequent recommendation of more accurate articles to the user, thereby improving the readability of the articles and reducing a large number of articles that the users do not like. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 Flowchart of the text semantic analysis method. DETAILED DESCRIPTION

[0034] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.

[0035] like Figure 1 As shown, the present invention provides a text semantic analysis method, comprising the following steps:

[0036] S1. Obtain all article texts browsed by the user and generate an article text collection;

[0037] S2, splitting the article text collection into a focused browsing text subset and a less focused browsing text subset;

[0038] S3. Generate a user's interested word set according to the focused browsing text subset and the less focused browsing text subset.

[0039] In this embodiment of the present invention, S2 includes the following sub-steps:

[0040] S21, setting a first restriction condition, taking all article texts in the article text set that meet the first restriction condition as the first restricted text set;

[0041] S22, setting a second restriction condition, and taking all article texts in the article text set that meet the second restriction condition as the second restricted text set;

[0042] S23, determining whether the first restricted text set and the second restricted text set have an intersection, if so, proceeding to S24, otherwise proceeding to S25;

[0043] S24, taking the intersection of the first restricted text set and the second restricted text set as the focused browsing text subset, and taking the remaining article texts in the article text set except the focused browsing text subset as the secondary focused browsing text subset;

[0044] S25: The first restricted text set is used as a focused browsing text subset, and the remaining article texts in the article text set except the focused browsing text subset are used as secondary focused browsing text subsets.

[0045] In the present invention, among the numerous article texts browsed by the user, the browsing time of some article texts is relatively long, which may indicate that the length of the article text is relatively long, resulting in an increase in the time the user spends browsing the article text or the user has a high interest in the article text; the number of browsing times of some article texts is relatively large, which may also indicate that the user has a high interest in the article text. Therefore, the present invention sets two restriction conditions, namely, the browsing time limit and the browsing number limit. If an article text meets both the browsing time limit (i.e., the first restriction condition) and the browsing number limit (i.e., the second restriction condition), the article text is used as an element of the focused browsing text subset. If such an article text does not exist, the article text that meets the browsing time limit is preferentially used as an element of the focused browsing text subset. In this way, the article text collection can be reasonably split, so that the subsequent steps can be convenient for extracting appropriate words for the two subsets respectively.

[0046] In the embodiment of the present invention, in S21, the expression of the first restriction condition is:

[0047] Where, T i represents the browsing time of the i-th article in the article text set, I represents the number of articles in the article text set, min(·) represents the minimum operation, δ t represents the standard deviation of the browsing time of all article texts, T′ represents the maximum browsing time of the article text set, and T″ represents the minimum browsing time of the article text set.

[0048] In the embodiment of the present invention, in S22, the expression of the second restriction condition is: Where D i represents the number of views of the i-th article text in the article text set, and I represents the number of article texts in the article text set.

[0049] In this embodiment of the present invention, S3 includes the following sub-steps:

[0050] S31. Setting browsing influence model;

[0051] S32, inputting the focused browsing text subset into the browsing influence model to obtain a focused browsing influence threshold;

[0052] S33, taking the words in each article text in the focused browsing text subset whose word frequency is greater than the focused browsing influence threshold as the first part of the interesting word set;

[0053] S34, determining a secondary browsing influence threshold according to the first set of interesting words;

[0054] S35, taking the words in each article text in the secondary key browsing text subset whose word frequency is greater than the secondary key browsing influence threshold as the second part of the interesting word set;

[0055] S36: Determine a user's set of words of interest based on the first set of words of interest and the second set of words of interest.

[0056] In the present invention, a browsing influence model is constructed to determine the key browsing influence threshold, which is used to select words with a large frequency in the key browsing text subset as the first part of the interesting word set. The elements of the first part of the interesting word set are selected from the key browsing text subset. Therefore, the elements of the first part of the interesting word set are used to limit the important words of the secondary key browsing text subset, that is, to determine the secondary key browsing influence threshold. The above screening process of interesting words can select the key browsing words preferred by the user in a targeted manner, and the key browsing text subset is used to further limit the interesting words of the secondary key browsing text subset, and the selection result is accurate.

[0057] Stop words are words that appear frequently in a text but usually do not have much meaning. These words refer to some common functional words, empty words, and even some punctuation marks, such as prepositions, pronouns, conjunctions, auxiliary verbs, etc. The role of stop words is to filter out these common words during text analysis, thereby reducing the complexity of processing, improving algorithm efficiency, and improving the quality of results in some tasks to avoid interference from these words in the analysis results. Non-stop words refer to the remaining words in the text except stop words.

[0058] In the embodiment of the present invention, in S31, the expression of the browsing influence model G is:

[0059]

[0060] Where N is the number of articles in the focused browsing text subset, M is the number of words in the articles in the focused browsing text subset, K is the number of non-stop words in the articles in the focused browsing text subset, and F is n_m Indicates the frequency of the mth word in the nth article text of the focused browsing text subset, F n_k represents the frequency of the kth non-stop word in the nth article text of the focused browsing text subset, and ln(·) represents the logarithmic function.

[0061] In the embodiment of the present invention, in S34, the calculation formula of the secondary key browsing influence threshold θ is: In the formula, R represents the number of words in the first part of the set of words of interest, X r Represents the word vector of the rth word in the first set of words of interest.

[0062] In the embodiment of the present invention, in S36, the specific method for determining the user's interested word set is: taking the union of the first part of the interested word set and the second part of the interested word set as the user's interested word set.

[0063] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.

Claims

1. A text semantic analysis method, characterized in that: The following steps are involved: S1. Obtain all article texts browsed by the user and generate an article text collection; S2, splitting the article text collection into a focused browsing text subset and a less focused browsing text subset; S3, generating a user's interested word set according to the focused browsing text subset and the less focused browsing text subset; The S3 comprises the following sub-steps: S31. Setting browsing influence model; S32, inputting the focused browsing text subset into the browsing influence model to obtain a focused browsing influence threshold; S33, taking the words in each article text in the focused browsing text subset whose word frequency is greater than the focused browsing influence threshold as the first part of the interesting word set; S34, determining a secondary browsing influence threshold according to the first set of interesting words; S35, taking the words in each article text in the secondary key browsing text subset whose word frequency is greater than the secondary key browsing influence threshold as the second part of the interesting word set; S36, determining a user's set of words of interest based on the first set of words of interest and the second set of words of interest; In S31, the expression of the browsing influence model G is: Where N is the number of articles in the focused browsing text subset, M is the number of words in the articles in the focused browsing text subset, K is the number of non-stop words in the articles in the focused browsing text subset, and F is n_m Indicates the frequency of the mth word in the nth article text of the focused browsing text subset, F n_k represents the frequency of the kth non-stop word in the nth article text of the focused browsing text subset, and ln(·) represents the logarithmic function; In S34, the calculation formula of the secondary key browsing influence threshold θ is: In the formula, R represents the number of words in the first part of the set of words of interest, X r Represents the word vector of the rth word in the first set of words of interest; In the above S36, the specific method of determining the user's interested word set is: taking the union of the first part of the interested word set and the second part of the interested word set as the user's interested word set.

2. The text semantic analysis method according to claim 1, characterized in that: The S2 comprises the following sub-steps: S21, setting a first restriction condition, taking all article texts in the article text set that meet the first restriction condition as the first restricted text set; S22, setting a second restriction condition, and taking all article texts in the article text set that meet the second restriction condition as the second restricted text set; S23, determining whether the first restricted text set and the second restricted text set have an intersection, if so, proceeding to S24, otherwise proceeding to S25; S24, taking the intersection of the first restricted text set and the second restricted text set as the focused browsing text subset, and taking the remaining article texts in the article text set except the focused browsing text subset as the secondary focused browsing text subset; S25: The first restricted text set is used as a focused browsing text subset, and the remaining article texts in the article text set except the focused browsing text subset are used as secondary focused browsing text subsets.

3. The text semantic analysis method according to claim 2, characterized in that: In S21, the expression of the first restriction condition is: Where, T i represents the browsing time of the i-th article in the article text set, I represents the number of articles in the article text set, min(·) represents the minimum operation, δ t represents the standard deviation of the browsing time of all article texts, T′ represents the maximum browsing time of the article text set, and T″ represents the minimum browsing time of the article text set.

4. The text semantic analysis method according to claim 2, characterized in that: In S22, the expression of the second restriction condition is: Where D i represents the number of views of the i-th article text in the article text set, and I represents the number of article texts in the article text set.