{'fraction_non_alphanumeric': 0.01925722145804677, 'fraction_numerical': 0.0020632737276478678, 'mean_word_length': 5.191489361702128, '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}}
News recommendation system with category awareness based on pre-trained Electra

A news recommendation system is crucial to help users locate interesting news and relieve information overload. How to accurately model news text is the key to a news recommendation system. Traditional news recommendation systems use news encoders that directly model the text of all historical reading news. However, pre-trained language model (PLM) trained on large-scale corpora often have more robust reading comprehension capabilities and can extract more profound implicit expressions of news texts. Users have their preferences when reading different categories of news. Using a large number of training samples to learn such preferences will consume many computing resources. Adding category awareness to the news recommendation system can efficiently and accurately model users and build a personalized News recommendation system. Therefore, this paper uses Electra as a news encoder to capture a more robust contextual implicit representation of news texts. At the same time, additional weights are used to model different news categories. On this basis, users' behavior logs are added to build a news recommendation model. The cosine similarity is used as a loss function to obtain the recommendation probability of candidate news. Experiments show that the AUC of this method is 2.37% higher than the current state-of-the-art methods on the Mind-small datasets.