{'fraction_non_alphanumeric': 0.014005602240896359, 'fraction_numerical': 0.0, 'mean_word_length': 5.34319526627219, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Text Classification in Architecture Field Based on Naive Bayes Algorithm

With the rapid development of the Internet, it has become a problem to quickly and accurately find the information we need in the massive text information. And the method to solve the problem is text classification. This paper proposes a text classifier for the architectural field. The feature selection adopts the TF-IDF text classification method, which effectively reduces the computing time and creates conditions for improving the computing power of the text classifier. In the classification stage, Naive Bayes classifier, K nearest neighbour classifier and decision tree classifier are introduced for comparative analysis. Experiment shows that the prediction results of Naive Bayes are significantly improved compared with KNN and decision tree. Among the three groups of classifiers, the Naive Bayes classifier has the best performance. The classifier can effectively improve the recall rate and accuracy rate of the text classification in architectural field, and has a good use effect.