Message text information processing method, device, system and computer equipment

By merging, classifying and clustering the message text information, generating cluster values ​​and adjusting the sorting priority, the problem of low efficiency in the traditional method is solved, and efficient processing and rapid classification of message data are achieved.

CN112948579BInactive Publication Date: 2024-09-24GUANGDONG OCEAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110128033.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-29
Publication Date
2024-09-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional message information processing methods rely on manual division and hotspot sorting, resulting in low processing efficiency and inability to effectively manage and analyze a large amount of social situation and public opinion text data.

Method used

By obtaining the message details and message topics in the message text information, perform merge classification and clustering operations, generate clustering values ​​of the clusters, and adjust the sorting priority according to the clustering values ​​to improve data processing efficiency.

Benefits of technology

It reduces the amount of data processing, realizes rapid classification and importance ranking of message text information, improves processing efficiency, and reduces the need for manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112948579B
    Figure CN112948579B
Patent Text Reader

Abstract

The present application provides a message text information processing method, device, system and computer equipment. The above-mentioned message text information processing method includes obtaining first message data and second message data according to the message text information; merging and classifying the first message data and the second message data to obtain multiple categories of merged word segmentation data; performing clustering operations on each category of merged word segmentation data to obtain clustering values ​​of multiple cluster clusters; adjusting the sorting priority of each cluster cluster according to the clustering value. By merging and classifying the message subject and the message details, and then clustering the merged word segmentation data, the types of word segmentation data are reduced. After obtaining the corresponding clustering value, the messages are sorted according to different priorities according to the clustering value, which is convenient for sorting the importance of the message text information, thereby facilitating the rapid classification of the content of the message text and improving the efficiency of message data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of message text mining, and in particular to a message text information processing method, device, system, computer equipment and storage medium. Background Art

[0002] In recent years, with the continuous improvement of the technology of online political inquiry platforms such as WeChat, Weibo, and Mayor's Mailbox, the amount of text data related to various social conditions and public opinions has also continued to increase. Text mining technology is a means of natural language processing technology. Faced with the increasingly large amount of information, it is urgent to apply related technologies of artificial intelligence to conduct in-depth analysis of data and study the laws and relationships of various types of information to better improve the management level and processing efficiency of message text information. The relevant text mining research and technical application exploration of these message contents are of extraordinary significance to the development of data mining technology. Therefore, it is an urgent need for data processing to effectively apply data mining technology to the analysis of various message text information.

[0003] However, the traditional message information processing method still relies on manual work to divide messages and organize hot spots, which increases the workload of message data processing and reduces the efficiency of message text information processing. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a message text information processing method, device, system, computer equipment and storage medium that improve the message data processing efficiency.

[0005] The objective of the present invention is achieved through the following technical solutions:

[0006] A message text information processing method, the method comprising:

[0007] Acquire first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information;

[0008] Performing a merging and classification operation on the first message data and the second message data to obtain multiple categories of merged word segmentation data;

[0009] Perform clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple clusters;

[0010] The sorting priority of each cluster is adjusted according to the clustering value.

[0011] In one embodiment, the clustering operation is performed on each type of merged word segmentation data, including: performing a preliminary clustering operation on the merged word segmentation data to obtain a plurality of first clustering clusters; and obtaining a plurality of second clustering clusters according to the plurality of the first clustering clusters.

[0012] In one of the embodiments, the performing an initial clustering operation on the merged word segmentation data includes: performing hierarchical clustering on the merged word segmentation data.

[0013] In one embodiment, obtaining a plurality of second clusters according to a plurality of first clusters includes: performing secondary clustering on the plurality of first clusters to obtain a plurality of second clusters.

[0014] In one embodiment, performing secondary clustering on the plurality of first clusters to obtain the plurality of second clusters includes: obtaining an initial center point of each of the first clusters; and outputting the plurality of second clusters according to each of the initial center points.

[0015] In one of the embodiments, the first message data and the second message data are merged and classified to obtain multiple categories of merged word segmentation data, including: performing a word segmentation operation on the first message data to obtain message detail attribute data; performing a second word segmentation operation on the second message data according to the message detail attribute data to obtain merged word segmentation data.

[0016] A message text information processing device, the device comprising:

[0017] A collection module, used for acquiring first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information;

[0018] A first processing module, configured to merge and classify the first message data and the second message data to obtain multiple types of merged word segmentation data;

[0019] The second processing module is used to perform clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple cluster clusters;

[0020] The sorting module is used to adjust the sorting priority of each cluster according to the cluster value.

[0021] A message text information processing system comprises: a text information storage device, a reply text information processing device and the message text information processing device described in the above embodiment; the first input end of the text information storage device is used to receive message text information, the output end of the text information storage device is connected to the input end of the message text information processing device, the output end of the message text information processing device is connected to the input end of the reply text information processing device, the output end of the reply text information processing device is connected to the second input end of the text information storage device, and the reply text information processing device is used to send reply text information corresponding to the message text information to the text information storage device.

[0022] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0023] Acquire first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information;

[0024] Performing a merging and classification operation on the first message data and the second message data to obtain multiple categories of merged word segmentation data;

[0025] Perform clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple clusters;

[0026] The sorting priority of each cluster is adjusted according to the clustering value.

[0027] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0028] Acquire first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information;

[0029] Performing a merging and classification operation on the first message data and the second message data to obtain multiple categories of merged word segmentation data;

[0030] Perform clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple clusters;

[0031] The sorting priority of each cluster is adjusted according to the clustering value.

[0032] Compared with the prior art, the present invention has at least the following advantages:

[0033] By merging and classifying the message subject and message details, and then performing clustering operations on the merged word segmentation data, the types of word segmentation data are reduced, that is, the amount of data processing is reduced. After obtaining the corresponding clustering value, the messages are sorted according to different priorities based on the clustering value, which makes it easier to sort the importance of the message text information, thereby facilitating rapid classification of the message text content and improving the efficiency of message data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0035] Figure 1 A flowchart of a message text information processing method in one embodiment;

[0036] Figure 2 1 is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0037] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thoroughly understood.

[0038] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only and do not represent the only implementation method.

[0039] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items.

[0040] The present invention relates to a message text information processing method. In one embodiment, the message text information processing method includes obtaining first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information; merging and classifying the first message data and the second message data to obtain multiple types of merged word segmentation data; clustering each type of merged word segmentation data to obtain clustering values ​​of multiple cluster clusters; adjusting the sorting priority of each cluster cluster according to the clustering value. By merging and classifying the message subject and the message details, and then clustering the merged word segmentation data, the types of word segmentation data are reduced, that is, the amount of data processing is reduced. After obtaining the corresponding clustering value, the messages are sorted according to different priorities according to the clustering value, so as to facilitate sorting the importance of the message text information, thereby facilitating the rapid classification of the content of the message text and improving the efficiency of message data processing.

[0041] See also Figure 1 , which is a flow chart of a message text information processing method according to an embodiment of the present invention. The message text information processing method includes part or all of the following steps.

[0042] S100: Acquire first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information.

[0043] In this embodiment, the message text information is text data information corresponding to the message content, and the message text information includes the message details and the message subject, and the message subject corresponds to the message details. In the message text under each message subject, the message details describe the content of the message subject in detail, that is, the message details of each message text correspond to the message subject one by one, which is convenient for binding the message subject and the message details, so as to facilitate obtaining the corresponding message details according to different message subjects, so that the message subject and the message details in the message text information are relatively independent and interrelated. Moreover, in another embodiment, in order to facilitate further binding of the message details and the message subject, the message text information also includes the message time, message number and message user identity code, the message user identity code is the identity proof of the message user, which is used to distinguish other message text information, and the message time corresponds to the message details and the message subject, which is convenient for determining the generation time of the message text information, and the message time can also be used as a distinguishing condition for different message text information; the message number and the message subject form a one-to-one correspondence, so that each message subject has a unique message number, which is convenient for quickly distinguishing message subjects with the same message content, thereby distinguishing the message details with the same message subject.

[0044] S200: performing a merging and classification operation on the first message data and the second message data to obtain multiple categories of merged word segmentation data.

[0045] In this embodiment, the first message data and the second message data both have multiple message words, that is, the first message data corresponds to multiple message words in the message details, and the second message data corresponds to multiple message words in the message subject. Since the message subject is a specific description of the content of the message details, the message words in the message subject will appear in the message details, so that the message words corresponding to the first message data and the message words corresponding to the second message data partially overlap, so that the second message data and the first message data have some of the same data. In order to avoid the omission of important information in the message text information, the first message data and the second message data are merged and processed, that is, the first message data and the second message data are segmented at the same time, and the message words in the first message data and the second message data are segmented and the stay words are removed by using the jieba segmenter, so that the number of message words in the message text information is reduced, and the main information is retained, so that the data analysis amount of the message subject and the message details of the message text information is reduced, thereby improving the processing efficiency of the message text information. Moreover, the merge classification operation also classifies the message data processed by the jieba word segmenter, that is, the first message data and the second message data are classified after being processed by the jieba word segmenter. For example, the first message data and the second message data are classified based on TF-IDF SVM after being processed by the jieba word segmenter. The classification model adopted is the TF-IDF (Term Frequency-Inverse Document Frequency) SVM (Support Vector Machine) model. The message text is classified using a support vector machine based on TF-IDF. In the text classification process, the SVM model regards the input training text as a point in the geometric space, and constructs a hyperplane that can separate different samples by learning the training samples, and determines the category of the test sample according to its position on both sides of the hyperplane. The SVM model has excellent classification effect on smaller data, and is also applicable in some high-dimensional scenarios due to its kernel function characteristics.

[0046] S300: performing clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple clusters.

[0047] In this embodiment, the first message data and the second message data are divided into multiple categories of the merged word segmentation data, each classification category contains multiple word segmentation data, each word segmentation data is formed by the message words in the message text information through a merge classification operation, so that the message words with the same category are divided into the same category, and the classification of the word segmentation attributes of the first message data and the second message data is realized, that is, the first message data and the second message data are classified based on the TF-IDF SVM classification model, wherein the classification of the message words is divided according to their own attributes, for example, the classification category of the TF-IDF SVM classification model is a first-level category, and there are 15 first-level category labels, "Urban and Rural Construction": 1, "Environmental Protection": 2, "Transportation": 3, "Education, Culture and Sports": 4, "Labor and Social Security": 5, "Commerce and Tourism": 6, "Health and Family Planning": 7, "Party Affairs and Government Affairs": 8, "Land and Resources": 9, "Discipline Inspection and Supervision": 10, "Economic Management": 11, "Science and Technology and Information Industry": 12, "Civil Affairs": 13, "Rural Agriculture": 14, "Politics and Law": 15. According to the above-mentioned first-level categories, the merged word segmentation data are divided into the same category. In this way, when the clustering operation is performed on each category of the merged word segmentation data, multiple data in each category of the merged word segmentation data are divided twice. However, the clustering operation is to perform data analysis on the data with similar attributes in each category of the merged word segmentation data, so that the data in each category of the merged word segmentation data is clustered by data attributes, that is, the word segmentation data that has undergone the merged classification operation is clustered by attribute data, which is convenient for reducing the data volume of the message text information again, so as to facilitate the subsequent sorting of multiple cluster clusters in each category, reduce the number of subsequent arranged data, and improve the efficiency of processing the message data.

[0048] S400: Adjusting the sorting priority of each cluster according to the cluster value.

[0049] In this embodiment, the cluster value is the number of clusters of each cluster cluster, and the cluster value is used to reflect the number of clusters in each cluster cluster, which is convenient for displaying the number of data attributes that are the same or similar in each cluster cluster. Since the cluster cluster is formed after the merged word segmentation data is subjected to the clustering operation, the number of cluster clusters is the number of clusters corresponding to the merged word segmentation data, so that the cluster cluster contains at least one word segmentation data, and the data attributes of the word segmentation data in each cluster cluster are the same or similar. In this way, the cluster value in the cluster cluster reflects the number of word segmentation data, indicating the number of word segmentations with the same or similar data attributes in the current cluster cluster, which is convenient for displaying the number of times word segmentations with the same or similar data attributes appear in the message text information, thereby facilitating the display of the frequency of word segmentations with the same or similar data attributes in the message text, and then facilitating the sorting of the priorities of each cluster cluster in each type of merged word segmentation data, for example, sorting the heat of each cluster cluster in each type of merged word segmentation data. In another embodiment, the clustering value is the sum of the number of likes and the sum of the number of dislikes of the messages corresponding to each word segmentation data in the clustering cluster. For example, the sum of the number of likes and the sum of the number of dislikes of each clustering cluster in each type of merged word segmentation data is sorted by size, and the first five clustering clusters with larger values ​​are selected as hot issues.

[0050] In the above-mentioned message text information processing method, the message subject and message details are merged and classified, and then the merged word segmentation data is clustered, so that the types of word segmentation data are reduced, that is, the amount of data processing is reduced. After obtaining the corresponding clustering value, the messages are sorted according to different priorities according to the clustering value, which is convenient for sorting the importance of the message text information, thereby facilitating the rapid classification of the content of the message text and improving the efficiency of message data processing.

[0051] In one embodiment, the clustering operation is performed on each type of merged word segmentation data, including: performing a preliminary clustering operation on the merged word segmentation data to obtain multiple first clustering clusters; and obtaining multiple second clustering clusters based on the multiple first clustering clusters. In this embodiment, the merged word segmentation data is subjected to the preliminary clustering operation to obtain multiple first clustering clusters, which is to cluster the merged word segmentation data once so that the merged word segmentation data generates corresponding clusters, namely, the first clustering clusters, and clustering is performed according to the center of the first clustering cluster, so that the clustering operation of the second clustering cluster is based on the first clustering cluster, and on the premise that the first clustering cluster has a cluster center point, the clustering effect of the second clustering cluster is effectively improved.

[0052] Furthermore, the initial clustering operation on the merged word segmentation data includes: performing hierarchical clustering on the merged word segmentation data. In this embodiment, before obtaining the second cluster cluster, the merged word segmentation data is hierarchically clustered, and the hierarchical clustering creates a hierarchical nested clustering tree by calculating the similarity between data points of different categories. In the clustering tree, the original data points of different categories are the lowest layer of the tree, and the top layer of the tree is the root node of a cluster, that is, a "bottom-up" clustering strategy is adopted. The specific idea is to first regard each sample in the data set as an initial cluster cluster, and then find the two closest clusters to merge, and repeat this step until the preset number of clusters or a certain condition is reached. The average distance is used to calculate the distance between the two clusters. In this way, after the hierarchical clustering, the merged word segmentation data forms a plurality of the first clustering clusters, and the plurality of the first clustering clusters provide a plurality of center points, which provide the centroid for obtaining the second clustering cluster, that is, the hierarchical clustering provides the center point of the cluster for the second clustering cluster, which facilitates the use of the center point of the first clustering cluster as the clustering input point for forming the second clustering cluster, and improves the global convergence effect while ensuring the convergence of the second clustering cluster.

[0053] Furthermore, the obtaining of multiple second clustering clusters based on multiple first clustering clusters includes: performing secondary clustering on multiple first clustering clusters to obtain multiple second clustering clusters. In this embodiment, the secondary clustering is clustering of the first clustering clusters, that is, the secondary clustering is a re-clustering of the merged word segmentation data, that is, the secondary clustering is a re-clustering based on the hierarchical clustering, so that the convergence effect of the merged word segmentation data is improved. Moreover, after two different clusterings, the number of clustering clusters formed by the merged word segmentation data is reduced, the number of sorting priorities for each clustering cluster is reduced, and the clustering effect of the second clustering cluster is further improved.

[0054] Furthermore, the secondary clustering of the plurality of the first clusters to obtain the plurality of the second clusters includes: obtaining the initial center point of each of the first clusters; and outputting the plurality of the second clusters according to each of the initial center points. In the present embodiment, the secondary clustering is K-Means clustering, and the K-Means clustering method is as follows: (1) randomly determining k initial points as centroids; (2) finding the nearest centroid for each point in the data set and assigning it to the cluster corresponding to the centroid; (3) updating the centroid of each cluster to the average value of all the points in the cluster; (4) repeating steps (2) and (3) until the cluster assignment result no longer changes. After the merged word segmentation data undergoes the hierarchical clustering, the initial center point of the first cluster is used as the input of the center point of the K-Means clustering, and the number of the first clusters formed after the merged word segmentation data undergoes the hierarchical clustering is the same as the K value of the K-Means clustering, that is, the center points are randomly selected multiple times to train K-Means to determine a suitable K value, so as to facilitate the selection of the best clustering result.

[0055] In one embodiment, the first message data and the second message data are merged and classified to obtain multiple types of merged word segmentation data, including: performing a word segmentation operation on the first message data to obtain message detail attribute data; performing a second word segmentation operation on the second message data according to the message detail attribute data to obtain merged word segmentation data. In this embodiment, the first message data corresponds to the message details, and the second message data corresponds to the message subject. After the second message data is classified, that is, the second message data is segmented, the classified message subject data formed will be lost. This is because when the first message data and the second message data are segmented, the repeated word segmentation data will be deleted, that is, one of the word segments will be retained, resulting in the missing of the word segmentation data in the message subject. In order to avoid the above situation, the message detail attribute data of the first message data is obtained, and on the basis of the message detail attribute data, the second message data is segmented twice, so that the repeated word segmentation formed after the second message data is segmented is retained, ensuring the word segmentation used to display the message subject in the merged word segmentation data, improving the integrity of the word segmentation data of the message subject, and reducing the loss rate of the word segmentation data of the message subject.

[0056] It can be understood that the message text information is a summary of the message information, and the message text information includes a message number, a message user identity code, a message time, a message subject, and a message detail. The message subject corresponds to the message detail one by one, and each of the message subjects also corresponds to a message number, a message user identity code, and a message time. The message number is used to store the message text information, the message user identity code is used to display the identity information of the uploader of the message text information, and the message time is used to display the upload submission time of the message text information. Among them, when sorting the priority of each cluster cluster, it is based on the cluster value corresponding to each cluster cluster, that is, based on the judgment of the number of cluster clusters for each type of merged word segmentation data. However, when the message user maliciously brushes the message, there will be multiple identical message subjects and message details, which will cause the popularity of such messages to rise rapidly, and such messages are actually invalid messages, which will cause the message popularity to be incorrectly prompted, and then the display accuracy of the message problem will be reduced.

[0057] In order to improve the display accuracy of the message questions, the first message data and the second message data are merged and classified to obtain multiple categories of merged word segmentation data, which also includes the following steps:

[0058] Performing a preliminary word segmentation operation on each of the first message data to obtain corresponding first word segmentation data;

[0059] Detect whether any two of the first word segmentation data are the same;

[0060] When two of the first word segmentation data are identical, obtaining the message user identity codes corresponding to the two identical first word segmentation data;

[0061] Detecting whether the identity codes of the two message users are the same;

[0062] When two message-messaging user identity codes are the same, the message information corresponding to one of the message-messaging user identity codes is deleted.

[0063] In this embodiment, the first message data is the specific content of the message information uploaded by each message user, that is, the message details. After the first message data is subjected to the preliminary word segmentation operation, the important message information therein is screened out, which is convenient for judging the similarity of the specific content of each first message data. The existence of two identical first word segmentation data indicates that there are identical message contents in multiple message details. In order to avoid the situation where some message users leave repeated messages and cause the processing efficiency to decrease, the message information with the same message details needs to be streamlined. In this way, when there are two identical first word segmentation data, the message user identity codes corresponding to the same two first word segmentation data are obtained, which is convenient for determining the message users with the same message details. Moreover, if the two message user identity codes with the same message details are the same, it indicates that the uploader with the same message details is the same message user, that is, it indicates that there is a situation where the same message user leaves repeated messages. By removing the message information corresponding to one of the message user identity codes, the number of identical message information is reduced, the processing amount of message text information is reduced, and the processing efficiency of message text information is improved. Among them, the deleted message information also includes the message subject and the message user identity code corresponding to the same message details.

[0064] Furthermore, in order to avoid the situation where the message processing volume increases due to repeated messages being left by the same uploader using multiple message user identity codes, the detection of whether the two message user identity codes are the same further includes the following steps:

[0065] When the two message user identity codes are different, performing a preliminary word segmentation operation on the second message data corresponding to the two message user identity codes to obtain two second word segmentation data;

[0066] Detecting whether the matching degree of the two second word segmentation data is greater than or equal to a preset matching value;

[0067] When the matching degree of two second word segmentation data is greater than or equal to the preset matching value, the message information with a larger message time is eliminated.

[0068] In this embodiment, when the two first message data are the same, that is, the two message details are the same, although the message user identity codes corresponding to the two first message data are different, that is, the message users corresponding to the two same message details are different, that is, the message details uploaded by two different message users are the same, but the message user identity code here is only a virtual account, and the same uploader may use different virtual accounts to leave messages, which may lead to duplicate messages, thereby increasing the processing amount of the message text information. In this way, detecting whether the matching degree of the two second word segmentation data is greater than or equal to the preset matching value is helpful to distinguish whether there is a duplicate message uploaded by different message users. Moreover, since the second message data is the message subject, the word segmentation data formed after the word segmentation processing is more prominent, and the number of second word segmentation data is reduced, the second message data is analyzed to facilitate the rapid determination of the matching degree between the two second word segmentation data. The matching degree of the two second word segmentation data is greater than or equal to the preset matching value, indicating that the similarity between the message topics corresponding to the two same message details is high, that is, it indicates that the message topics corresponding to the two same message details have more similar word segments, so that in the case of the same message details, it is easy to determine that the message topics of different message users are the same, and then the two different message users have repeated messages. By eliminating message information with a longer message time, the message information of the user who uploaded the message later among the different message users who left the repeated message is deleted, thereby reducing the amount of data for the subsequent merge classification operation and clustering operation of the message text information, and further improving the processing efficiency of the message text information.

[0069] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0070] The present application also provides a message text information processing device, which is implemented by the message text information processing method described in any of the above embodiments. In one embodiment, the message text information processing device has a functional module corresponding to each step of the message text information processing method. The message text information processing device includes a collection module, a first processing module, a second processing module and a sorting module, wherein:

[0071] A collection module, used for acquiring first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information;

[0072] A first processing module, configured to merge and classify the first message data and the second message data to obtain multiple types of merged word segmentation data;

[0073] The second processing module is used to perform clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple cluster clusters;

[0074] The sorting module is used to adjust the sorting priority of each cluster according to the cluster value.

[0075] In the above-mentioned message text information processing device, the first processing module merges and classifies the message subject and the message details, and then the second processing module performs clustering operations on the merged word segmentation data, so that the types of word segmentation data are reduced, that is, the amount of data processing is reduced. After the second processing module obtains the corresponding clustering value, the sorting module sorts the messages according to the clustering value, which is convenient for sorting the importance of the message text information, thereby facilitating the rapid classification of the content of the message text and improving the efficiency of message data processing.

[0076] In one embodiment, the second processing module is also used to perform a preliminary clustering operation on the merged word segmentation data to obtain multiple first clustering clusters; and obtain multiple second clustering clusters based on the multiple first clustering clusters. In this embodiment, the second processing module performs a preliminary clustering operation on the merged word segmentation data to obtain multiple first clustering clusters, which is to cluster the merged word segmentation data once so that the merged word segmentation data generates a corresponding clustering cluster, namely, the first clustering cluster. The second processing module performs clustering according to the center of the first clustering cluster, so that the clustering operation of the second clustering cluster is based on the first clustering cluster, and on the premise that the first clustering cluster has a cluster center point, the clustering effect of the second clustering cluster is effectively improved.

[0077] Furthermore, the second processing module is also used to perform hierarchical clustering on the merged word segmentation data. In this embodiment, before the second processing module obtains the second cluster cluster, the second processing module performs hierarchical clustering on the merged word segmentation data, and the hierarchical clustering creates a hierarchical nested clustering tree by calculating the similarity between data points of different categories. In the clustering tree, the original data points of different categories are the lowest layer of the tree, and the top layer of the tree is the root node of a cluster, that is, a "bottom-up" clustering strategy is adopted. The specific idea is to first regard each sample in the data set as an initial cluster cluster, and then find the two closest clusters to merge, and repeat this step until the preset number of clusters or a certain condition is reached. The average distance is used to calculate the distance between the two clusters. In this way, after the hierarchical clustering, the second processing module forms multiple first clustering clusters according to the merged word segmentation data, and the multiple first clustering clusters provide multiple center points, which provide the centroid for obtaining the second clustering cluster, that is, the hierarchical clustering provides the center point of the cluster for the second clustering cluster, which is convenient for using the center point of the first clustering cluster as the clustering input point for forming the second clustering cluster. The second processing module improves the global convergence effect while ensuring the convergence of the second clustering cluster.

[0078] Furthermore, the second processing module is also used to perform secondary clustering on the plurality of the first clustering clusters to obtain a plurality of the second clustering clusters. In the present embodiment, the secondary clustering is clustering of the first clustering clusters, that is, the secondary clustering is a re-clustering of the merged word segmentation data, that is, the secondary clustering is a re-clustering based on the hierarchical clustering, so that the convergence effect of the merged word segmentation data is improved. Moreover, after the second processing module performs two different clusterings on the merged word segmentation data, the number of clustering clusters formed by the merged word segmentation data is reduced, the number of sorting priorities for each clustering cluster is reduced, and the clustering effect of the second clustering cluster is further improved.

[0079] Furthermore, the second processing module is also used to obtain the initial center point of each of the first clustering clusters; and output multiple second clustering clusters according to each of the initial center points. In this embodiment, the secondary clustering is K-Means clustering, and the K-Means clustering method is as follows: (1) randomly determine k initial points as the centroid; (2) find the nearest centroid for each point in the data set and assign it to the cluster corresponding to the centroid; (3) update the centroid of each cluster to the average value of all points in the cluster; (4) repeat steps (2) and (3) until the cluster allocation result no longer changes. After the merged word segmentation data undergoes the hierarchical clustering, the initial center point of the first clustering cluster is used as the input of the center point of the K-Means clustering, and the second processing module sets the number of the first clustering clusters formed after the merged word segmentation data undergoes the hierarchical clustering to be the same as the K value of the K-Means clustering, that is, randomly selects center points multiple times to train K-Means to determine a suitable K value, so that the second processing module can select the best clustering result.

[0080] In one embodiment, the first processing module is further used to perform a word segmentation operation on the first message data to obtain message detail attribute data; and perform a second word segmentation operation on the second message data according to the message detail attribute data to obtain merged word segmentation data. In this embodiment, the first message data corresponds to the message details, and the second message data corresponds to the message subject. After the first processing module performs a classification operation on the second message data, that is, the first processing module performs a word segmentation operation on the second message data, the classified message subject data formed will be lost. This is because when the first message data and the second message data are segmented, the repeated word segmentation data will be deleted, that is, one of the word segments will be retained, resulting in the missing of the word segmentation in the message subject. In order to avoid the above situation, the first processing module obtains the message detail attribute data of the first message data, and on the basis of the message detail attribute data, performs a second word segmentation operation on the second message data, so that the repeated word segmentation formed after the second message data is segmented is retained, ensuring the word segmentation used to display the message subject in the merged word segmentation data, improving the integrity of the word segmentation data of the message subject, and reducing the loss rate of the word segmentation data of the message subject.

[0081] The present application also provides a message text information processing system, comprising: a text information storage device, a reply text information processing device and the message text information processing device described in any of the above embodiments; the first input end of the text information storage device is used to receive message text information, the output end of the text information storage device is connected to the input end of the message text information processing device, the output end of the message text information processing device is connected to the input end of the reply text information processing device, the output end of the reply text information processing device is connected to the second input end of the text information storage device, and the reply text information processing device is used to send reply text information corresponding to the message text information to the text information storage device.

[0082] In this embodiment, the first processing module in the message text information processing device merges and classifies the message subject and the message details, and then the second processing module in the message text information processing device performs clustering operations on the merged word segmentation data, so that the types of word segmentation data are reduced, that is, the amount of data processing is reduced. After the second processing module in the message text information processing device obtains the corresponding clustering value, the sorting module sorts the messages according to the clustering value, which is convenient for sorting the importance of the message text information, thereby facilitating the rapid classification of the content of the message text and improving the efficiency of message data processing.

[0083] In one embodiment, data transmission is realized between a text information storage device, a reply text information processing device and a message text information processing device respectively through a communication device. For example, the message text information processing system includes a text information storage device, a reply text information processing device, a message text information processing device, a first communication device, a second communication device and a third communication device. The text information storage device contains multiple user message information such as message number, message user, message subject, message details, message time, reply message, reply time, etc. and corresponding multiple reply information; in the text information storage device, users post messages by filling in message subjects and message details to seek help; the text information storage device transmits messages through the first communication device, and the second communication device transmits messages through the third communication device. The communication device provides information to the message text information processing device, including the message subject, message details, message time, etc. of each user; the message text information processing device includes a data processing module, a model recognition module, and a heat sorting module; the message text information processing device interacts with the reply text information processing device through a second communication device; the reply text information processing device includes multiple reply modules; the reply text information processing device collects message information that has been classified and sorted in descending order of heat at the second communication device of the natural language processing technology system and delivers it to the corresponding reply module; the reply text information processing device transmits the reply opinion and reply time to the corresponding position of the text information storage device through the third communication device. The message text information processing system obtains data from the user's message information, obtains data with labels and sorted in descending order of heat after certain processing, and delivers the message to each reply module for processing according to the label, and the reply module replies after obtaining the information. Among them, the first communication device is a database, and the first communication device exchanges information with the message text information processing device by querying the content in the message table; the second communication device is a database, and the second communication device exchanges information with the reply text information processing device through query models and heat; the third communication device is a database, and the reply text information processing device submits the reply opinion and reply time to the database table.

[0084] The specific definition of the message text information processing device can be found in the definition of the message text information processing method above, which will not be repeated here. Each module in the above message text information processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0085] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 2As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the message subject, message details, message number, message user identity code, message time, reply opinion and reply time in the message text information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a message text information processing method is implemented.

[0086] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0087] In one of the embodiments, the present application further provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0088] In one of the embodiments, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0089] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0090] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the attached claims.

Claims

1. A message text information processing method, characterized in that: include: Acquire first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information; Performing a merging and classification operation on the first message data and the second message data to obtain multiple categories of merged word segmentation data; Performing clustering operations on each type of merged word segmentation data respectively to obtain clustering values ​​of multiple clusters, wherein the clustering value is the number of clusters of each cluster, and the clustering value is used to reflect the number of clusters in each cluster; Adjusting the sorting priority of each cluster according to the clustering value; The merging and classifying operation is performed on the first message data and the second message data to obtain multiple types of merged word segmentation data, including: Perform a word segmentation operation on the first message data to obtain message detail attribute data; A secondary word segmentation operation is performed on the second message data according to the message detail attribute data to obtain merged word segmentation data.

2. The message text information processing method according to claim 1, characterized in that: The clustering operation is performed on each type of merged word segmentation data, including: Performing a preliminary clustering operation on the merged word segmentation data to obtain a plurality of first clustering clusters; A plurality of second clustering clusters are obtained according to the plurality of the first clustering clusters.

3. The message text information processing method according to claim 2, characterized in that: The performing a preliminary clustering operation on the merged word segmentation data includes: Hierarchical clustering is performed on the merged word segmentation data.

4. The message text information processing method according to claim 2, characterized in that: The acquiring a plurality of second clustering clusters according to the plurality of first clustering clusters comprises: Perform secondary clustering on the plurality of the first clustering clusters to obtain a plurality of the second clustering clusters.

5. The message text information processing method according to claim 4, characterized in that: The performing secondary clustering on the plurality of the first clusters to obtain the plurality of the second clusters comprises: Obtaining an initial center point of each of the first clusters; Output a plurality of the second clusters according to the initial center points.

6. A message text information processing device using the message text information processing method according to any one of claims 1 to 5, characterized in that: The device comprises: A collection module, used for acquiring first message data and second message data according to the message text information, wherein the first message data corresponds to the message details in the message text information, and the second message data corresponds to the message subject in the message text information; A first processing module, configured to merge and classify the first message data and the second message data to obtain multiple types of merged word segmentation data; The second processing module is used to perform clustering operations on each type of merged word segmentation data to obtain clustering values ​​of multiple cluster clusters; The sorting module is used to adjust the sorting priority of each cluster according to the cluster value.

7. A message text information processing system, characterized in that: include: A text information storage device, a reply text information processing device and a message text information processing device as claimed in claim 6; The first input end of the text information storage device is used to receive message text information, the output end of the text information storage device is connected to the input end of the message text information processing device, the output end of the message text information processing device is connected to the input end of the reply text information processing device, the output end of the reply text information processing device is connected to the second input end of the text information storage device, and the reply text information processing device is used to send reply text information corresponding to the message text information to the text information storage device.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.