From 6308e0cfa4edc5c5643ab6f7e839ae1db9ed98d5 Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Tue, 7 Dec 2021 22:33:50 -0800 Subject: [PATCH] list out the tags i think --- send_emails.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/send_emails.py b/send_emails.py index 0361292..933cd2b 100644 --- a/send_emails.py +++ b/send_emails.py @@ -150,7 +150,8 @@ def render_recommendations(user, tags, pids, scores): # render the stats num_papers_tagged = len(set().union(*tags.values())) - stats = f"We took the {num_papers_tagged} papers across your {len(tags)} tags and \ + tags_str = ', '.join(['"%s" (%d)' % (t, len(pids)) for t, pids in tags.items()]) + stats = f"We took the {num_papers_tagged} papers across your {len(tags)} tags ({tags_str}) and \ ranked {len(pids)} papers that showed up on arxiv over the last \ {args.time_delta} days using tfidf SVMs over paper abstracts. Below are the \ top {args.num_recommendations} papers. Remember that the more you tag, \