Text classification method, text classification device and computer readable storage medium
A text classification and computer program technology, applied in the fields of text database clustering/classification, computer components, computing, etc., can solve problems such as efficiency to be improved, low efficiency of manual feature selection, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0069] The embodiment of this application provides a text classification method, please refer to Figure 1-a , the text classification method in the embodiment of the present application includes:
[0070] Step 101, perform text representation on the text to be classified, so as to obtain the sentence set of the above-mentioned text to be classified and the word set of each sentence;
[0071] Wherein, the sentence set is composed of a word set of each sentence in the text to be classified, and the word set is composed of word vectors of words included in the corresponding sentence.
[0072] In the embodiment of the present application, the text representation of the text to be classified may include two processes of preprocessing and vector representation. The above preprocessing refers to processing the text to be classified to obtain a structured representation, so as to obtain the sentence set of the above text to be classified and the word set of each sentence, and the abo...
Embodiment 2
[0152] An embodiment of the present application provides a text classification device. Such as Figure 2-a As shown, the text classification device in the embodiment of the present application includes:
[0153] The text representation unit 201 is configured to perform text representation on the text to be classified, so as to obtain a sentence set of the text to be classified, wherein the sentence set is composed of a word set of each sentence in the text to be classified, and the word set consists of The word vector composition of the words contained in the corresponding sentence;
[0154] The feature extraction unit 202 is used to obtain the feature vector of the sentence set based on the neural network, the attention mechanism and the word set;
[0155] The classification unit 203 is configured to input the feature vector of the sentence set into a text classification model to obtain a classification result of the text to be classified, wherein the text classification mo...
Embodiment 3
[0176] The embodiment of this application provides a text classification device, please refer to image 3 , the text classification device in the embodiment of the present application also includes: memory 301, one or more processors 302 ( image 3 Only one of them is shown) and a computer program stored on the memory 301 and executable on the processor. Wherein: the memory 301 is used to store software programs and modules, and the processor 302 executes various functional applications and data processing by running the software programs and units stored in the memory 301 . Specifically, the processor 302 implements the following steps by running the above-mentioned computer program stored in the memory 301:
[0177] Textual representation of the text to be classified to obtain a set of sentences of the text to be classified, wherein the set of sentences is composed of a set of words in each sentence in the text to be classified, and the set of words is composed of the words...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com