poprox_recommender.topics#

Functions

classify_news_topic(model, tokenizer, ...)

extract_general_topics(article)

extract_locality(article)

extract_locality_codes(article)

extract_locality_topics(article)

find_locality(past_articles, article_id)

find_topic(past_articles, article_id)

match_news_topics_to_general(articles)

normalized_category_count(counts)

user_locality_preference(past_articles, ...)

user_topic_preference(past_articles, ...)

Topic preference only based on click history

poprox_recommender.topics.user_topic_preference(past_articles, click_history)#

Topic preference only based on click history

Parameters:
Return type:

dict[str, int]