Network word collection method and system

Extracting network word features through crawler technology and deep learning algorithms, combined with convolutional neural network models for screening and updating, solves the problems of flexibility in network word collection and annotation data requirements in the existing technology, and achieves fast and accurate network word recognition. and extraction.

CN118734835APending Publication Date: 2024-10-01天元大数据信用管理有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410742497.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing Internet word collection methods are difficult to adapt to the changes and diversity of Internet words, and methods based on machine learning require a large amount of annotated data and cannot quickly identify new Internet words.

Method used

Use crawler technology to obtain online text data, extract word features through natural language processing and deep learning algorithms, combine with convolutional neural network or recurrent neural network models for training and screening, and regularly update the word library without the need for a large amount of annotated data.

Benefits of technology

It realizes the rapid and timely identification and extraction of representative and unique Internet words, reduces the difficulty and cost of data preparation, improves the accuracy and flexibility of collection, and adapts to changes in Internet words.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734835A_ABST
    Figure CN118734835A_ABST
Patent Text Reader

Abstract

The invention discloses a network word collection method and system, belongs to the technical field of natural language processing, and aims to solve the technical problem of how to quickly and timely recognize and extract representative and unique network words from massive network texts on the premise of not needing a large amount of annotations. Comprising the following steps: acquiring web text data from a plurality of network platforms through a crawler technology; preprocessing the web text data set through a natural language processing tool; taking the preprocessed web text data as input, predicting and outputting word features through the current word learning model, and performing model training on the current word learning model; screening and verifying the output word features, and storing the screened and verified network words in a network word library; and regularly executing data acquisition, data preprocessing, feature extraction, model training and word screening operation to update the network word library.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a network word collection method and system. Background Art

[0002] With the popularization and development of the Internet, Internet language, as a unique way of expression, plays an increasingly important role in people's online communication. As an important part of Internet language, Internet words not only reflect social changes and cultural evolution, but also provide rich corpus resources for natural language processing, text mining and other fields. However, due to the diversity and dynamism of online texts, how to effectively collect Internet words has become a challenging problem.

[0003] At present, most of the existing network word collection methods are based on matching rules or templates, but this method is often difficult to adapt to the constant changes and diversity of network words. At the same time, although the collection method based on machine learning has certain flexibility, it often requires a large amount of labeled data for training, and has limited ability to recognize newly emerging network words.

[0004] How to quickly and timely identify and extract representative and unique Internet terms from massive amounts of Internet text without the need for extensive annotation is a technical problem that needs to be solved. Summary of the invention

[0005] The technical task of the present invention is to address the above shortcomings and provide a network word collection method and system to solve the technical problem of how to quickly and timely identify and extract representative and unique network words from massive network texts without the need for a large amount of annotation.

[0006] In a first aspect, the present invention provides a network word collection method, comprising the following steps:

[0007] Data collection: Obtain network text data from multiple network platforms through crawler technology, and store the network text data in the local database;

[0008] Data preprocessing: Preprocess the network text data set through natural language processing tools to obtain preprocessed network text data;

[0009] Feature extraction and model training: taking the preprocessed network text data as input, predicting the output word features through the current word learning model, and training the current word learning model in combination with the current preprocessed network text data and the predicted word features. The word learning model is used to take the preprocessed text data as input and predict the output word features of the network text data based on the deep learning algorithm;

[0010] Word screening: based on the output word features, the output word features are screened and verified, and the network words that pass the screening and verification are stored in the network word library;

[0011] Network word library update: regularly perform data collection, data preprocessing, feature extraction and model training, as well as word screening operations to update the network word library.

[0012] Preferably, the word features are statistical features, including word frequency and word co-relation;

[0013] Based on the output word features, when the output word features are screened, it is determined whether the corresponding network words exist in the network word library. If not, it is determined whether the word frequency corresponding to the network words meets the predetermined requirements, and whether the word co-relation corresponding to the network words meets the predetermined requirements. If the network words meet the predetermined requirements based on the statistical characteristics, the network words pass the screening.

[0014] Preferably, after the network words are screened, those that pass the screening are verified by manual review.

[0015] Preferably, the word learning model is a network model constructed based on a convolutional neural network or a network model constructed based on a recurrent neural network.

[0016] Preferably, the network text dataset is preprocessed by a natural language processing tool, comprising the following steps:

[0017] Remove redundant information, including HTML tags and punctuation;

[0018] Perform word segmentation on network text data that has been stripped of redundant information to obtain multiple words;

[0019] For the obtained words, remove stop words.

[0020] In a second aspect, the present invention provides a network word collection system, which is used to collect network words by using a network word collection method as described in any one of the first aspects, and the system includes a data collection module, a data preprocessing module, a feature extraction and model training module, a word screening module and a network word library update module;

[0021] The data collection module is used to perform the following: obtain network text data from multiple network platforms through crawler technology, and store the network text data in a local database;

[0022] The data preprocessing module is used to perform the following: preprocessing the network text data set through natural language processing tools to obtain preprocessed network text data;

[0023] The feature extraction and model training module is used to perform the following: taking the preprocessed network text data as input, predicting and outputting word features through the current word learning model, and training the current word learning model in combination with the current preprocessed network text data and the predicted word features, wherein the word learning model is used to take the preprocessed text data as input, and predict the word features of the output network text data based on the deep learning algorithm;

[0024] The word screening module is used to perform the following: based on the output word features, screening and verifying the output word features, and storing the network words that pass the screening and verification into the network word library;

[0025] The network word library update module is used to perform the following: regularly perform data collection, data preprocessing, feature extraction and model training, and word screening operations to update the network word library.

[0026] Preferably, the word features are statistical features, including word frequency and word co-relation;

[0027] When the output word features are screened based on the output word features, the word screening module is used to perform the following: determine whether the corresponding network word exists in the network word library; if not, determine whether the word frequency corresponding to the network word meets the predetermined requirements, and whether the word co-relation corresponding to the network word meets the predetermined requirements; if the network word meets the predetermined requirements based on the statistical characteristics, the network word passes the screening.

[0028] Preferably, after the network words are screened, the word screening module is used to verify the network words that pass the screening by manual review.

[0029] Preferably, the word learning model is a network model constructed based on a convolutional neural network or a network model constructed based on a recurrent neural network.

[0030] Preferably, the data preprocessing module is used to perform the following operations on the network text dataset through a natural language processing tool:

[0031] Remove redundant information, including HTML tags and punctuation;

[0032] Perform word segmentation on network text data that has been stripped of redundant information to obtain multiple words;

[0033] For the obtained words, remove stop words.

[0034] The network word collection method and system of the present invention have the following advantages:

[0035] 1. No need to annotate a large amount of data, which reduces the difficulty and cost of data preparation;

[0036] 2. It can adapt to the continuous changes and diversity of network words, improving the accuracy and flexibility of collection;

[0037] 3. Combined with the deep learning model, the ability to recognize network words is improved;

[0038] 4. Through regular updates, it can capture newly emerging Internet terms in real time, ensuring the timeliness of collection. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] The present invention is further described below in conjunction with the accompanying drawings.

[0041] Figure 1 This is a flowchart of a method for collecting network words in Example 1. DETAILED DESCRIPTION

[0042] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it. However, the embodiments are not intended to limit the present invention. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments may be combined with each other.

[0043] The embodiments of the present invention provide a network word collection method and system for solving the technical problem of how to quickly and timely identify and extract representative and unique network words from massive network texts without requiring a large amount of annotation.

[0044] Embodiment 1:

[0045] The invention discloses a network word collection method, which comprises five steps: data collection, data preprocessing, feature extraction and model training, word screening and network word library updating.

[0046] Step S100 Data collection: Acquire network text data from multiple network platforms through crawler technology, and store the network text data in a local database.

[0047] In this embodiment, the word features are statistical features, including word frequency and word co-relation.

[0048] Step S200: Data preprocessing: preprocessing the network text data set through natural language processing tools to obtain preprocessed network text data.

[0049] In this embodiment, the network text data set is preprocessed by a natural language processing tool, including the following steps:

[0050] (1) Remove redundant information, including HTML tags and punctuation marks;

[0051] (2) performing word segmentation on the network text data after removing redundant information to obtain multiple words;

[0052] (3) For the obtained words, remove stop words.

[0053] Step S300 feature extraction and model training: taking the preprocessed network text data as input, predicting the output word features through the current word learning model, and training the current word learning model in combination with the current preprocessed network text data and the predicted word features. The word learning model is used to take the preprocessed text data as input and predict the output word features of the network text data based on a deep learning algorithm.

[0054] In this embodiment, the word learning model is a network model built based on a convolutional neural network or a network model built based on a recurrent neural network.

[0055] In step S300, while extracting word features based on the word learning model, the current word learning model is trained based on the output word features. When extracting word features for the first time, feature extraction can be performed using the initialized word learning model.

[0056] Step S400: Word screening: based on the output word features, the output word features are screened and verified, and the network words that pass the screening and verification are stored in the network word library.

[0057] In this embodiment, when the output word features are screened based on the output word features, it is determined whether the corresponding network words exist in the network word library. If not, it is determined whether the word frequency corresponding to the network words meets the predetermined requirements, and whether the word co-relation corresponding to the network words meets the predetermined requirements. If the network words meet the predetermined requirements based on the statistical characteristics, the network words pass the screening.

[0058] After the Internet words are screened, those that pass the screening are verified through manual review.

[0059] Step S500: Network word library update: regularly perform data collection, data preprocessing, feature extraction and model training, and word screening operations to update the network word library.

[0060] The method of this embodiment can be applied to fields such as natural language processing, text mining, and social media analysis, providing rich corpus resources for related research.

[0061] Embodiment 2:

[0062] The present invention provides a network word collection system, comprising a data collection module, a data preprocessing module, a feature extraction and model training module, a word screening module and a network word library update module. The system can execute the method disclosed in Example 1 to collect network words.

[0063] The data collection module is used to perform the following: obtain network text data from multiple network platforms through crawler technology, and store the network text data in a local database.

[0064] In this embodiment, the word features are statistical features, including word frequency and word co-relation.

[0065] The data preprocessing module is used to perform the following: preprocess the network text data set through natural language processing tools to obtain preprocessed network text data.

[0066] In this embodiment, the data preprocessing module calls the natural language processing tool to perform the following operations to preprocess the network text dataset:

[0067] (1) Remove redundant information, including HTML tags and punctuation marks;

[0068] (2) performing word segmentation on the network text data after removing redundant information to obtain multiple words;

[0069] (3) For the obtained words, remove stop words.

[0070] The feature extraction and model training module is used to perform the following: taking the preprocessed network text data as input, predicting and outputting word features through the current word learning model, and training the current word learning model in combination with the current preprocessed network text data and the predicted word features. The word learning model is used to take the preprocessed text data as input, and predict the word features of the output network text data based on a deep learning algorithm.

[0071] In this embodiment, the word learning model is a network model built based on a convolutional neural network or a network model built based on a recurrent neural network.

[0072] While extracting word features based on the word learning model, the feature extraction and model training module is used to train the current word learning model based on the output word features. When extracting word features for the first time, feature extraction can be performed through the initialized word learning model.

[0073] The word screening module is used to perform the following: based on the output word features, screen and verify the output word features, and store the network words that pass the screening and verification into the network word library.

[0074] In this embodiment, when the output word features are screened based on the output word features, the word screening module is used to perform the following: determine whether the corresponding network word exists in the network word library; if not, determine whether the word frequency corresponding to the network word meets the predetermined requirements, and whether the word co-relation corresponding to the network word meets the predetermined requirements; if the network word meets the predetermined requirements based on the statistical characteristics, the network word passes the screening.

[0075] After the network words are screened, the word screening module is used to verify the network words that pass the screening through manual review.

[0076] The network word library update module is used to perform the following: regularly perform data collection, data preprocessing, feature extraction and model training, and word screening operations to update the network word library.

[0077] The system can automatically identify and extract representative and unique Internet terms from massive amounts of Internet texts without the need for large amounts of labeled data, and can adapt to the constant changes and diversity of Internet terms.

[0078] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A network word collection method, characterized in that: The steps include: Data collection: Obtain network text data from multiple network platforms through crawler technology, and store the network text data in the local database; Data preprocessing: Preprocess the network text data set through natural language processing tools to obtain preprocessed network text data; Feature extraction and model training: taking the preprocessed network text data as input, predicting the output word features through the current word learning model, and training the current word learning model in combination with the current preprocessed network text data and the predicted word features. The word learning model is used to take the preprocessed text data as input and predict the output word features of the network text data based on the deep learning algorithm; Word screening: based on the output word features, the output word features are screened and verified, and the network words that pass the screening and verification are stored in the network word library; Network word library update: regularly perform data collection, data preprocessing, feature extraction and model training, as well as word screening operations to update the network word library.

2. The network word collection method according to claim 1, characterized in that: Word features are statistical features, including word frequency and word co-relation; Based on the output word features, when the output word features are screened, it is determined whether the corresponding network words exist in the network word library. If not, it is determined whether the word frequency corresponding to the network words meets the predetermined requirements, and whether the word co-relation corresponding to the network words meets the predetermined requirements. If the network words meet the predetermined requirements based on the statistical characteristics, the network words pass the screening.

3. The network word collection method according to claim 1, characterized in that: After the Internet words are screened, those that pass the screening are verified through manual review.

4. The network word collection method according to claim 1, characterized in that: The word learning model is a network model constructed based on a convolutional neural network or a network model constructed based on a recurrent neural network.

5. The network word collection method according to claim 1, characterized in that: The network text dataset is preprocessed using natural language processing tools, including the following steps: Remove redundant information, including HTML tags and punctuation; Perform word segmentation on network text data that has been stripped of redundant information to obtain multiple words; For the obtained words, remove stop words.

6. A network word collection system, characterized in that: Used to collect network words by a network word collection method according to any one of claims 1 to 5, the system includes a data collection module, a data preprocessing module, a feature extraction and model training module, a word screening module and a network word library update module; The data collection module is used to perform the following: obtain network text data from multiple network platforms through crawler technology, and store the network text data in a local database; The data preprocessing module is used to perform the following: preprocessing the network text data set through natural language processing tools to obtain preprocessed network text data; The feature extraction and model training module is used to perform the following: taking the preprocessed network text data as input, predicting and outputting word features through the current word learning model, and training the current word learning model in combination with the current preprocessed network text data and the predicted word features, wherein the word learning model is used to take the preprocessed text data as input, and predict the word features of the output network text data based on the deep learning algorithm; The word screening module is used to perform the following: based on the output word features, screening and verifying the output word features, and storing the network words that pass the screening and verification into the network word library; The network word library update module is used to perform the following: regularly perform data collection, data preprocessing, feature extraction and model training, and word screening operations to update the network word library.

7. The network word collection system according to claim 6, characterized in that: Word features are statistical features, including word frequency and word co-relation; When the output word features are screened based on the output word features, the word screening module is used to perform the following: determine whether the corresponding network word exists in the network word library; if not, determine whether the word frequency corresponding to the network word meets the predetermined requirements, and whether the word co-relation corresponding to the network word meets the predetermined requirements; if the network word meets the predetermined requirements based on the statistical characteristics, the network word passes the screening.

8. The network word collection system according to claim 6, characterized in that: After the network words are screened, the word screening module is used to verify the network words that pass the screening by manual review.

9. The network word collection system according to claim 6, characterized in that: The word learning model is a network model constructed based on a convolutional neural network or a network model constructed based on a recurrent neural network.

10. The network word collection system according to claim 6, characterized in that: The data preprocessing module is used to perform the following operations on the network text dataset through natural language processing tools: Remove redundant information, including HTML tags and punctuation; Perform word segmentation on network text data that has been stripped of redundant information to obtain multiple words; For the obtained words, remove stop words.