The invention discloses a method for intelligently extracting labels from text. This method uses the Chinese word segmentation algorithm for text strings in memory to split keywords, and then calculates the weight of words based on word frequency, word length, part of speech, etc., sorts them in reverse order according to the weight of words, and takes a specified number of words as the result. output. The characteristic of this method is that all algorithms are processed in memory, the algorithm design is concise and efficient, and the analysis speed is effectively guaranteed. For a piece of text, after a series of processes such as word segmentation, weighting, word formation, filtering, and sorting, it has achieved a certain effect on the accuracy of the label. The invention can carry out independent packaging of algorithms and package of components, has certain universality, can be applied to all products that require text label extraction, and has certain universality in use.