Download mail/sets/learn_more.py from luokelabs/luoke-bench: direct link, hf CLI and curl.
- Browser
- Download file 36.9 kB
-
https://huggingface.co/datasets/luokelabs/luoke-bench/resolve/main/mail/sets/learn_more.py
- Command line
-
hf download hf://datasets/luokelabs/luoke-bench/mail/sets/learn_more.py
-
curl -L -o learn_more.py https://huggingface.co/datasets/luokelabs/luoke-bench/resolve/main/mail/sets/learn_more.py
36.9 kB
| """新增的「邮件内容分析」题:邮件内容分析·来信 (learn-orgs) 和 邮件内容分析·发出的信 (learn-sent) 各 10 批,补在发布评测 | |
| (luoke-mail 的 bench/task_sets.py)和已有改写版(tasks_rewrite.py 的 LEARN_ORGS、tasks_rewrite_thread.py 的 | |
| LEARN_SENT)之外,考点不和它们重复。 | |
| 照真实邮件改编:先在一个真实邮箱的旧信头(按发件人聚合的来信次数、首末日期、主题写法)里找同类发件方,照它们的样子写; | |
| 真实邮箱里没有发件箱,learn-sent 照对方回信、被抄送的往来里「我」这一方会怎么写来补,找不到真信对应的在批上方注明 | |
| 「没有真信对应」。示例邮件均为虚构:机构、品牌、人名、地址(一律 .example)、单号、金额、卡号和验证码全部换掉; | |
| 真实来源不进这个仓库,每批上方只写考点和照的是哪一类真信。 | |
| 格式和 task_sets.py 的 LEARN_ORGS、LEARN_SENT 完全一致,bench/run_tasks.py 的 run_learn 能直接跑。答案逐条人工核过, | |
| 标准同 luoke_mail/prompts/learn-orgs.*、learn-sent.*:expect 是该记住的(learn-orgs:(发件人编号, 可接受的话题, 词); | |
| learn-sent:(可接受的话题, 词)),never 里的词出现在任何一条事实里都是硬性错——只发广告或推送的机构当成在用的、 | |
| 别人说的话当成用户的事、密码验证码卡号证件号、某一笔金额、一次性的安排和相对时间、第三方的健康状况。 | |
| """ | |
| from __future__ import annotations | |
| import datetime as dt | |
| TODAY = dt.date(2026, 10, 12) # the same day as luoke_mail.samples.TODAY, which task_sets.py uses | |
| ME = "me@luoke.example" | |
| # ---- 邮件内容分析·来信 (learn-orgs) --------------------------------------------------------------------------------------- | |
| def _o(name, addr, count, first, last, *subjects): | |
| return {"key": addr, "name": name, "addr": addr, "count": count, "first": first, "last": last, "subjects": list(subjects)} | |
| LEARN_ORGS = [ | |
| # 考点:工作里在用的开发工具(项目管理、错误监控、崩溃报告、代码托管)要记;只发网络研讨会邀请、博客、作品推荐的不记; | |
| # 配额用到 80% 这种一次性提醒不记。照项目管理工具通知、错误监控配额告警、崩溃日报、代码托管安全提醒、 | |
| # 通信平台研讨会邀请、邮件 API 社区通讯、设计灵感站推荐的真信改 | |
| {"senders": [ | |
| _o("Tasklane", "notifications@tasklane.example", 463, "2024-03", "2026-10", | |
| "Reminder to post a project update for 钱包 v3 迁移", "4 unread notifications on 星帆", | |
| "林可 commented on [APP-418] 挂单列表缺少已撤销状态", "程野 changed status to Released for [APP-392] 资产页加载超时", | |
| "Your Tasklane export is ready"), | |
| _o("Faultline", "support@faultline.example", 22, "2024-04", "2024-10", | |
| "You've consumed 80% of your reserved replay volume", "Action Required - Replay Capacity Depleted", | |
| "Performance Units quota 80% depleted"), | |
| _o("", "crashboard-noreply@crashboard.example", 11, "2024-01", "2026-09", | |
| "2026-08-22的热门稳定性问题 - Android app.botfox", "2026-04-07的热门稳定性问题 - Android app.botfox"), | |
| _o("Codehaven", "noreply@codehaven.example", 59, "2021-08", "2026-04", | |
| "[Codehaven] Your personal access token (classic) is about to expire", | |
| "[Codehaven] Please download your two-factor recovery codes", "orbitlabs invited you to orbitlabs/relay-tests", | |
| "[Codehaven] An email address was added to your account."), | |
| _o("Team Relaywire", "teamrelaywire@team.relaywire.example", 75, "2023-11", "2025-11", | |
| "Join us: Customer engagement trends in Southeast Asia", | |
| "Report: What customers expect from support bots", "⏰ Don't Miss Tomorrow's Webinar"), | |
| _o("The Mailcrate Team", "community@learn.mailcrate.example", 17, "2023-12", "2024-09", | |
| "5 ways to fix your email deliverability", "Webinar: Email in the age of AI", "Mailcrate Community Digest"), | |
| _o("Pixelmart", "no-reply@n.pixelmart.example", 128, "2023-11", "2026-03", | |
| "Top shots this week: dashboards", "Designers you might like", "Pixelmart Pro: 30% off this weekend"), | |
| ], | |
| "expect": [(1, ("工作", "服务"), ("Tasklane",)), (2, ("服务", "工作"), ("Faultline",)), | |
| (3, ("服务", "工作"), ("crashboard", "Crashboard", "botfox")), (4, ("服务", "账户", "工作"), ("Codehaven",))], | |
| "never": ["Relaywire", "Mailcrate", "Pixelmart", "80%"]}, | |
| # 考点:用户是团队工具的管理员(密码管理器的团队成员确认、团队聊天的管理员月报、企业邮箱安全告警、笔记工具扣款失败); | |
| # 告警主题里别人的地址、工作区将被锁定这种一次性的事、只发表单工具促销的都不记。照密码管理器团队邮件、 | |
| # 团队聊天管理员月报、企业邮箱安全告警、笔记工具催缴、设计工具订阅收据、表单工具促销的真信改 | |
| {"senders": [ | |
| _o("Vaultkey", "accounts@vaultkey.example", 33, "2024-02", "2026-06", | |
| "Confirm 小罗 (星帆科技) - Vaultkey", "New Vaultkey sign-in alert", "您的 Vaultkey 发票(星帆科技)。", "为 罗森 完成帐户恢复"), | |
| _o("Chatterly", "no-reply@email.chatterly.example", 53, "2023-12", "2026-05", | |
| "May admin update", "April admin update", "Important Notice from Chatterly regarding your workspace"), | |
| _o("Corvane Alerts", "corvane-alerts-noreply@corvane.example", 12, "2024-07", "2026-03", | |
| "Alert: Phishing message detected post-delivery for do-not-reply@ses.coinmart.example", "Alert: Suspicious login", | |
| "Alert: User-reported phishing for info@ehome-net.example"), | |
| _o("Pagewise", "billing@mail.pagewise.example", 5, "2025-06", "2025-09", | |
| "Payment failure for Pagewise", "3rd attempt: Pagewise payment didn't work", "Tomorrow your Pagewise workspace will be locked"), | |
| _o("Gridboard", "support@gridboard.example", 26, "2023-11", "2025-07", | |
| "Action needed - your Gridboard account is past due", "Receipt for subscription payment Mar 11, 2025", | |
| "View request from 安禾 (anhe@starsail.example)"), | |
| _o("Formora Team", "marketing@formora.example", 16, "2024-03", "2024-05", | |
| "Build forms 10x faster", "Last chance: 50% off Formora Gold", "Formora vs. the rest"), | |
| ], | |
| "expect": [(1, ("服务", "工作"), ("Vaultkey",)), (2, ("服务", "工作"), ("Chatterly",)), (3, ("服务", "工作"), ("Corvane",)), | |
| (4, ("服务",), ("Pagewise",)), (5, ("服务",), ("Gridboard",))], | |
| "never": ["coinmart", "ehome-net", "锁定", "locked", "Formora", "Mar 11"]}, | |
| # 考点:几家发卡行都有电子账单(第 3 个发件人名为空,要从主题认出银行)、支付钱包的付款收据、交易所的充值到账要记; | |
| # 收据里的收款方和账单号、活动奖金金额、只发折扣的买币服务、银行的广告专用地址都不记。照信用卡中心电子账单(含无发件人名的)、 | |
| # 支付钱包收据、交易所充值提醒和回归活动、买币服务折扣推送、银行广告地址的真信改 | |
| {"senders": [ | |
| _o("青澜银行信用卡中心", "pccc@qinglancc.example", 52, "2022-04", "2025-10", | |
| "青澜银行白金信用卡2025年10月电子账单", "青澜银行白金信用卡2025年09月电子账单"), | |
| _o("南浦银行信用卡中心", "estmtservice@eb.nanpucc.example", 96, "2015-11", "2025-09", "南浦银行-信用卡电子账单"), | |
| _o("", "service@vip.hengjianbank.example", 10, "2025-01", "2025-10", "恒建银行信用卡电子账单"), | |
| _o("Payloop", "service@payloop.example", 17, "2024-01", "2024-05", | |
| "你付款給 Northwire Inc 的收據", "你已付款給 Halden HK Limited,帳單編號為 8830271945126", | |
| "You've added 2-step verification to your Payloop account", "歡迎使用 Payloop"), | |
| _o("Coinmart", "support@mail.coinmart.example", 45, "2022-02", "2024-12", | |
| "(Coinmart) XRT 充值到账提醒", "Coinmart邀您回归,限时赢取15,000 USDT好礼!", "VIP穿梭机新升级:新用户专享VIP+2 30天"), | |
| _o("Coinbuy Team", "noreply@hello.coinbuy.example", 80, "2023-10", "2026-10", | |
| "😏 30 days, zero fear. 50% OFF to open October.", "📉 BTC dipped $3,800 and came back. 60% OFF till Monday"), | |
| _o("海川银行", "ad@message.haichuanbank.example", 127, "2020-07", "2025-09", | |
| "乘公交地铁,赢88元乘车红包!", "【海川银行】您的随借金利率券已到账!"), | |
| ], | |
| "expect": [(1, ("账户",), ("青澜",)), (2, ("账户",), ("南浦",)), (3, ("账户",), ("恒建",)), (4, ("账户",), ("Payloop",)), | |
| (5, ("账户",), ("Coinmart",))], | |
| "never": ["8830271945126", "Northwire", "Halden", "15,000", "Coinbuy"]}, # 海川:广告地址,但「利率券已到账」像是已有客户,记不记都不判 | |
| # 考点:常用的订票网站、短租平台、酒店会员、打车 App 要记;某一趟航班的日期、某间房源、取消的那次预订不记; | |
| # 多年前只发团购广告的旅行网不记。照在线旅行社出行单、短租平台评价和取消通知、酒店会员积分邮件、打车 App、 | |
| # 度假租赁网站促销的真信改(打车 App 的真信多是会员促销,这里加了行程收据的主题) | |
| {"senders": [ | |
| _o("行舟网", "ticketservice@xingzhou.example", 17, "2015-01", "2024-06", | |
| "【行舟网】2024-05-17 (南京)禄口机场起飞 出行单", "南京-札幌出行预订单", "香港-南京出行预订单", | |
| "【行舟网】2018-11-21 (曼谷)素万那普机场起飞 电子行程单"), | |
| _o("寓见", "automated@yujian-stay.example", 26, "2018-12", "2020-06", | |
| "请在截止日期前尽快为房东云栖小筑撰写评价吧", "寓见付款方式更新", "您在2020-04-18的预订已被取消"), | |
| _o("万澜旅享家", "bonvoy@email-wanlan.example", 16, "2021-04", "2022-05", | |
| "您的万澜旅享家账户新动态:特别优惠、礼遇和更多福利", "会籍延期,灵活兑换以及暂停积分过期", "友情提示:揭晓您的神秘奖励, 林悦"), | |
| _o("Hopride", "no-reply@hopride.example", 91, "2018-09", "2023-12", | |
| "Your Hopride E-Receipt", "Hopride Unlimited 会员专享:转盘抽大奖", "Big 4 Savings from Mega Sale"), | |
| _o("途栖网", "edm@tuqi.example", 20, "2015-05", "2016-05", "途栖网周末特惠:海景公寓 5 折起", "暑期亲子游,民宿限时抢"), | |
| ], | |
| "expect": [(1, ("出行",), ("行舟",)), (2, ("出行", "会员", "服务"), ("寓见",)), (3, ("会员", "出行"), ("万澜",)), | |
| (4, ("出行", "服务", "会员"), ("Hopride",))], | |
| "never": ["05-17", "云栖小筑", "2020-04-18", "途栖"]}, | |
| # 考点:读过书的大学(教务处来信)、在网课平台拿过证书、英语播客学习会员要记;外教课和数据课只发促销的、 | |
| # 借网课平台发招生广告的别家大学、培训机构的认证考试促销都不记。照外教课促销、网课平台代发的大学招生广告、 | |
| # 网课平台、英语播客学习、开源培训机构新闻和考试促销、教务处回复的真信改(网课平台的真信多是促销,这里加了证书和进度的主题) | |
| {"senders": [ | |
| _o("Lingora", "no-reply@lingora.example", 210, "2023-12", "2026-09", | |
| "英语母语外教课,每月119元起,选适合你的方案。", "今晚截止:外教课学费半价,最后机会!", "面对下一场英文面试,你准备好了吗?"), | |
| _o("University of Westbrook", "no-reply@m.mail.coursemesh.example", 283, "2016-08", "2025-11", | |
| "Advance Your Career with Online Degrees", "Have you considered a postgraduate degree?", | |
| "Earn a master's degree online, part-time"), | |
| _o("Coursemesh", "no-reply@t.mail.coursemesh.example", 61, "2016-10", "2022-12", | |
| "你的课程证书已发放:机器学习", "本周学习进度:你已完成 3/11 周", "Coursemesh 结业证书"), | |
| _o("Podglish", "hello@podglish.example", 278, "2023-10", "2026-05", | |
| "Your Podglish membership has been renewed", "📆 Your April round-up", "Episode 214: The history of the teapot"), | |
| _o("开源学堂 OSSA", "info@osstrain.example", 115, "2022-02", "2025-10", | |
| "开源学堂 新闻速递|2025年9月期", "【最后2天】官方认证考试及课程低至8折!", "【活动推荐】AI CON 2025 议题征集"), | |
| _o("江北大学教务处", "jwc@jiangbei-u.example", 4, "2015-03", "2016-06", | |
| "回复:关于申请免修或免听的问题", "2015-2016 学年第二学期选课通知", "学籍信息核对"), | |
| _o("The DataForge Team", "team@dataforge.example", 239, "2024-05", "2026-08", | |
| "Free access ends Sunday. Still time to start.", "Still ignoring AI, 林悦?", "Sale extended: 50% on Premium"), | |
| ], | |
| "expect": [(3, ("学校", "服务", "会员"), ("Coursemesh",)), (4, ("会员", "服务", "学校"), ("Podglish",)), | |
| (6, ("学校",), ("江北大学",))], | |
| "never": ["Lingora", "Westbrook", "开源学堂", "OSSA", "DataForge"]}, | |
| # 考点:用户所在公司(财务群组转来的请款往来、客服群组)、拿过资助的基金会、在用的日本自由职业项目平台要记; | |
| # 请款主题里的金额、项目平台日报里的件数不记;陌生供应商的推销信、上门推合作的不能当成合作方。 | |
| # 照公司财务和客服群组的往来、生态基金会资助、日本自由职业项目平台的日报和事务局来信、供应商推销信的真信改 | |
| {"senders": [ | |
| _o("'孟瑶' via finance", "finance@starsail.example", 20, "2024-03", "2025-03", | |
| "Re: 申请支付 云代理账号2024年5月账单 586.40 美元", "Re: 申请南京办公室202504-202510 房租", "Re: 2月星帆薪资"), | |
| _o("'杜衡' via Support", "support@starsail.example", 11, "2024-03", "2026-05", | |
| "Re: 迁移表单链接怎么打不开", "Re: 星帆钱包 v2 迁移确认"), | |
| _o("Orbit Chain Foundation", "grants@orbitchain.example", 6, "2024-01", "2025-08", | |
| "Grant agreement for 星帆钱包", "Grant milestone 2 approved", "Orbit Grants: final report reminder"), | |
| _o("アサイン広場", "noreply@assign-hiroba.example", 67, "2026-07", "2026-10", | |
| "【アサイン広場】案件情報メール 新着31件/更新12件のご案内(10月03日)", | |
| "【アサイン広場】案件情報メール 新着9件/更新40件のご案内(10月02日)"), | |
| _o("アサイン広場 事務局", "an_support@assign-hiroba.example", 12, "2026-07", "2026-10", | |
| "【アサイン広場】面談日程のご連絡", "【アサイン広場】ご登録情報確認のお願い"), | |
| _o("Priya Nandan", "priya@kybnow.example", 4, "2026-03", "2026-03", "Merchant Onboarding - global KYB/C under 60 seconds"), | |
| _o("Owen Marsh", "owen@yieldsprout.example", 3, "2026-10", "2026-10", "Earn money on idle USDC in 星帆 wallets"), | |
| ], | |
| "expect": [(1, ("工作",), ("星帆",)), (3, ("工作", "其他", "账户"), ("Orbit",)), | |
| (5, ("工作", "服务"), ("アサイン広場", "assign-hiroba"))], | |
| "never": ["586.40", "KYBnow", "Yieldsprout", "新着31件"]}, | |
| # 没有真信对应:库里没有税务、公积金、水务来信;只有理财顾问发的「政策提醒」营销(第 4 个)照真信改。 | |
| # 考点:报个税、有公积金账户、住处的水费由某水务公司收要记;退税金额不记;理财顾问的营销不记 | |
| {"senders": [ | |
| _o("自然人电子税务局", "noreply@etax.example", 5, "2023-03", "2026-06", | |
| "个人所得税综合所得年度汇算办理提醒", "您的退税申请已受理", "退税 1,236.50 元已到账"), | |
| _o("市住房公积金管理中心", "gjj@housingfund.example", 4, "2023-07", "2026-07", "公积金年度结息通知", "公积金账户对账单"), | |
| _o("江宁水务", "bill@jnwater.example", 12, "2025-10", "2026-09", "水费账单 2026年9月", "停水通知"), | |
| _o("恒誉财富 何小姐Vivian", "vivian@hengyu-wealth.example", 9, "2025-11", "2026-10", | |
| "📢 重要政策提醒 | 个人境外投资纳入备案管理", "香港储蓄险 限时开放预约"), | |
| ], | |
| "expect": [(1, ("其他", "账户"), ("税务", "个税", "个人所得税")), (2, ("账户", "住房", "其他", "工作"), ("公积金",)), | |
| (3, ("住房", "其他", "账户"), ("水务", "水费"))], | |
| "never": ["1,236", "1236", "恒誉", "Vivian"]}, | |
| # 考点:注册域名、部署服务、后端数据库平台在用要记;云服务商销售的跟进信、翻译公司和流量分析的推销都不能当成在用的。 | |
| # 照域名续费、托管部署失败和账单、数据库平台闲置暂停、云服务商销售跟进(双语主题)、翻译公司推销、流量分析推销的真信改 | |
| {"senders": [ | |
| _o("Namewell", "renewals@namewell.example", 14, "2019-05", "2026-04", | |
| "Your domain starsail.example will expire in 30 days", "Auto-renew succeeded for 3 domains", "Namewell receipt"), | |
| _o("Deploka", "notifications@deploka.example", 40, "2023-08", "2026-09", | |
| "Your service botfox-api failed to deploy", "Deploka invoice for September 2026", "Deploy live for botfox-web"), | |
| _o("Basewell", "noreply@basewell.example", 18, "2024-01", "2026-05", | |
| "Your project starsail-prod is being paused due to inactivity", "Basewell billing: usage report"), | |
| _o("Dana Whitlow", "dwhitlow@edgeguard.example", 5, "2026-04", "2026-04", | |
| "Dedicated Web3 Support | Edgeguard Web3 专项支持", "WebSockets at the Edge | 边缘侧 WebSocket 优化方案", | |
| "Last Email for Now | 近期的最后跟进"), | |
| _o("LinguaBridge", "cs@linguabridge.example", 11, "2024-01", "2025-05", | |
| "Language Translation Services", "Urgent Translation Needs? Swift Quote Here!"), | |
| _o("Trafficlens", "hello@digital.trafficlens.example", 21, "2024-11", "2025-09", | |
| "See where your competitors' traffic comes from", "Your free Trafficlens trial is waiting"), | |
| ], | |
| "expect": [(1, ("服务",), ("Namewell",)), (2, ("服务", "工作"), ("Deploka",)), (3, ("服务", "工作"), ("Basewell",))], | |
| "never": ["Edgeguard", "LinguaBridge", "Trafficlens"]}, | |
| # 考点:有游戏商店账户(愿望单降价提醒)、常在某商城买东西(订单和月度账单)、视频会员续费要记;愿望单上的某个游戏、 | |
| # 订单号不记;只发团购、杂志促销的不记。照游戏商店愿望单特卖、电商订单和月账单、团购网促销、数字杂志促销、 | |
| # 音乐/视频会员续费的真信改 | |
| {"senders": [ | |
| _o("Vaporplay", "noreply@vaporplay.example", 530, "2016-04", "2025-10", | |
| "您 Vaporplay 愿望单上的 星际货运 2 正在特卖!", "您 Vaporplay 愿望单上的 边缘殖民地 及另外 4 个项目正在特卖!"), | |
| _o("京点JD", "customer_service@jingdian.example", 113, "2015-09", "2025-06", | |
| "京点已收到您的订单【513377******】,欢迎您随时关注订单状态!", "您在京点2023年1月的月度账单已产生,欢迎点击查看", | |
| "京点礼品卡消费通知"), | |
| _o("美食团", "info@meishituan.example", 486, "2015-01", "2017-05", "今日团购:火锅双人餐 99 元", "周末吃喝玩乐 5 折起"), | |
| _o("Magstand Digital Newsstand", "no-reply@magstand.example", 79, "2015-01", "2015-07", | |
| "Get 70% off top magazines", "Your weekend reading picks"), | |
| _o("枫叶视频", "vip@fengye-video.example", 13, "2020-04", "2024-01", | |
| "恭喜你,VIP 会员自动续费成功", "枫叶视频 VIP 业务通知"), | |
| ], | |
| "expect": [(1, ("服务", "会员", "其他"), ("Vaporplay",)), (2, ("服务", "其他", "账户"), ("京点",)), | |
| (5, ("会员",), ("枫叶",))], | |
| "never": ["星际货运", "边缘殖民地", "513377", "美食团", "Magstand"]}, | |
| # 考点:有某家的系统账户、云账号、在测试一款 App 的内测版、用某个邮箱服务要记;验证码不记;退信不是机构; | |
| # 私人邮箱的熟人不是机构、不能把他的地址记成事实;内容推荐站不记。照系统账户安全代码、云账号登录和储存空间提醒、 | |
| # 内测分发平台、邮箱团队通知、退信、熟人私人邮箱来信、图片推荐站的真信改 | |
| {"senders": [ | |
| _o("Mosaic 帐户团队", "account-security-noreply@accountprotection.mosaicsoft.example", 27, "2018-07", "2025-09", | |
| "Mosaic 帐户安全代码", "你的一次性代码:482913", "Mosaic 帐户密码更改", "已添加 Mosaic 帐户安全信息"), | |
| _o("Pomelo", "noreply@email.pomelo.example", 13, "2016-11", "2021-11", | |
| "您的 Pomelo ID 被用于在 Web 浏览器上登录 Pomelo 云", "您的 Pomelo 云储存空间将满。", "您的 Pomelo ID 密码已重设"), | |
| _o("TryBuild", "no_reply@trybuild.pomelo.example", 18, "2015-07", "2024-11", | |
| "Arcane Realms 2.3.1204 (2.3.1204) for iOS is now available to test.", | |
| "Arcane Realms 2.3.1187 (2.3.1187) for iOS is now available to test."), | |
| _o("企鹅邮箱团队", "10000@qimail.example", 48, "2015-02", "2024-01", "企鹅邮箱帐号异地登录提醒", "你的邮箱容量已升级"), | |
| _o("Mail Delivery Subsystem", "mailer-daemon@qimail.example", 71, "2021-05", "2025-12", | |
| "Delivery Status Notification (Failure)", "Undelivered Mail Returned to Sender"), | |
| _o("快乐小石", "happystone@qimail.example", 15, "2015-03", "2020-06", "照片", "回复:周末", "生日快乐"), | |
| _o("Pinly", "recommendations@discover.pinly.example", 266, "2024-12", "2026-09", | |
| "15 ideas for 小户型收纳", "New pins for you: 室内设计"), | |
| ], | |
| "expect": [(1, ("服务", "账户"), ("Mosaic",)), (2, ("服务", "账户"), ("Pomelo",)), | |
| (3, ("服务", "其他", "会员", "工作"), ("TryBuild", "Arcane Realms")), (4, ("服务",), ("企鹅邮箱",))], | |
| "never": ["482913", "退信", "发送失败", "快乐小石", "happystone"]}, # Pinly:按兴趣推荐的信说明有账户,记不记都不判 | |
| ] | |
| # ---- 邮件内容分析·发出的信 (learn-sent) ------------------------------------------------------------------------------------ | |
| # Same scoring as task_sets.py: `expect` -- (acceptable topics, any of these words); `never` (hard) -- words that must | |
| # not appear in any fact. Each batch is one person's mail; batches are scored on their own. | |
| def _m(i, to, subject, body, days=10, cc=()): | |
| return {"uid": str(i), "message_id": f"<sent{i}@task.example>", "subject": subject, "to": [to], "cc": list(cc), | |
| "date": f"2025-10-{max(1, 30 - days):02d} 18:00", "body": body, "from_addr": ME} | |
| LEARN_SENT = [ | |
| # 考点:从请款信里认出职位、单位、上级、管财务的同事;请款金额不记。 | |
| # 照「向公司财务群组请款(云代理账单、办公室房租、薪资)」的往来改:真信只有财务的回复,「我」这一方照语境补写 | |
| {"mails": [ | |
| _m(101, "finance@starsail.example", "申请支付 云代理账号2024年5月账单 586.40 美元", | |
| "孟瑶,\n\n云代理账号 5 月的账单出来了,共 586.40 美元,账单截图附上,麻烦本周内安排支付。\n\n林悦\n星帆科技 运营负责人", | |
| cc=["zhangchen@starsail.example"]), | |
| _m(102, "finance@starsail.example", "申请南京办公室 2025年4月-10月 房租", | |
| "孟瑶,\n\n南京办公室 4 月到 10 月的房租 48,000 元,合同和发票附上。付款后回单请抄送我一份。\n\n林悦\n星帆科技 运营负责人"), | |
| _m(103, "zhangchen@starsail.example", "Re: 2月薪资", | |
| "张总,2 月的薪资表我核过了,社保公积金按新基数算的,您确认后我转给财务。\n\n林悦"), | |
| ], | |
| "expect": [(("职位",), ("运营负责人",)), (("单位",), ("星帆科技",)), (("上级",), ("张总", "张辰")), (("同事",), ("孟瑶",))], | |
| "never": ["586.40", "48,000", "48000"]}, | |
| # 考点:英文商务回信里的职位、单位、署名、写信语言、合作方;用户转述的对方的话(对方出货量、零事故)、相对时间不记。 | |
| # 照「海外供应商来信推合作、授权申请往来」改:真信只有对方的跟进,「我」这一方照语境补写 | |
| {"mails": [ | |
| _m(104, "tobias@coldkey.example", "Re: Co-branded hardware wallets", | |
| "Hi Tobias,\n\nThanks for following up, and sorry for the slow reply. You mentioned Coldkey has issued over 2 million " | |
| "cards with no security incidents, which is impressive. We're focused on the software wallet this year, so we'll pass on " | |
| "co-branded hardware for now. Happy to revisit in Q3.\n\nBest,\nMo Chen\nHead of Partnerships, Starsail Wallet"), | |
| _m(105, "owen@yieldsprout.example", "Re: Earn on idle USDC", | |
| "Hi Owen,\n\nAppreciate the details. Our compliance team doesn't allow third-party yield on user balances, so this " | |
| "isn't a fit for us.\n\nBest,\nMo Chen\nHead of Partnerships, Starsail Wallet"), | |
| _m(106, "ines@chartwise.example", "Re: Advanced charting library license", | |
| "Hi Ines,\n\nThanks, we've filled in the license form for the advanced charting library. Our product is a " | |
| "self-custody wallet with a built-in swap page; the charts will only be shown to logged-in users.\n\n" | |
| "Best,\nMo Chen\nHead of Partnerships, Starsail Wallet"), | |
| ], | |
| "expect": [(("职位",), ("Head of Partnerships", "合作")), (("单位",), ("Starsail", "星帆")), (("署名", "姓名"), ("Mo Chen", "陈默")), | |
| (("语言",), ("英文", "English")), (("合作方", "客户"), ("Ines", "Chartwise"))], | |
| "never": ["2 million", "200 万", "200万", "no security incidents", "安全事故", "Q3"]}, | |
| # 考点:订民宿的信里带出的家人(丈夫、女儿、父母)、住在哪个城市、养狗;入住日期、到达时间、孩子过敏、老人腿脚不便不记。 | |
| # 照「向民宿房东咨询和预订」的往来改:真信只有房东的回复,「我」这一方照语境补写 | |
| {"mails": [ | |
| _m(107, "host@yujian-stay.example", "关于 4月18日-22日 海景一室一厅 的咨询", | |
| "您好,我们一家三口(我、我先生和五岁的女儿)想订 4 月 18 日到 22 日。孩子对尘螨过敏,想确认一下房间里有没有地毯?\n\n林悦"), | |
| _m(108, "host2@yujian-stay.example", "关于 11月2日-5日 玉林路两居 的预订申请", | |
| "您好,这次是我和爸妈三个人,老人腿脚不太方便,请问楼里有电梯吗?我们从南京坐高铁过来,下午三点左右到。\n\n林悦"), | |
| _m(109, "host@yujian-stay.example", "Re: 入住说明", | |
| "谢谢!门锁密码收到了。我们家出门都带着狗,小区里可以遛狗吧?\n\n林悦"), | |
| ], | |
| "expect": [(("家人",), ("先生", "丈夫", "老公")), (("家人",), ("女儿",)), (("城市", "其他"), ("南京",)), | |
| (("其他", "家人"), ("狗",))], | |
| "never": ["4 月 18", "4月18", "11月2", "11 月 2", "过敏", "尘螨", "腿脚", "下午三点"]}, | |
| # 考点:学生时代的信:学校、专业和身份、导师;学号、某次实验数据、某门课的免听申请、相对时间不记。 | |
| # 照「学生给教务处申请免修免听、给导师发实验数据、报名化工设计竞赛」的往来改:真信只有对方的回复,「我」这一方照语境补写 | |
| {"mails": [ | |
| _m(110, "jwc@jiangbei-u.example", "关于申请免修或免听的问题 14应化 林悦", | |
| "老师您好,我是材料科学与工程学院 2014 级应用化学专业的林悦,学号 2014106218。这学期的《大学英语(四)》和学院的实验课" | |
| "时间冲突,想申请免听,附件是四级成绩单。麻烦老师看一下是否符合条件。\n\n林悦"), | |
| _m(111, "li.prof@jiangbei-u.example", "实验数据", | |
| "李老师,这周的 XRD 数据整理好了,附在邮件里。样品 3 的峰有点异常,我下周一再测一次。\n\n林悦"), | |
| _m(112, "contest@chemdesign.example", "关于申请参加全国化工设计竞赛", | |
| "您好,我们是江北大学应用化学专业的三人团队,指导老师是李明老师,想报名今年的化工设计竞赛,请问报名表要盖学院章吗?\n\n林悦"), | |
| ], | |
| "expect": [(("其他", "单位", "工作"), ("江北大学",)), (("其他", "工作", "职位", "单位"), ("应用化学", "学生")), | |
| (("上级", "其他"), ("李老师", "李明"))], | |
| "never": ["2014106218", "XRD", "样品 3", "下周一", "大学英语"]}, | |
| # 考点:给软件客服的信里的单位、职能、团队里的同事;卡号尾号、恢复码、某次重复扣款不记。 | |
| # 照「给设计工具客服写账单问题」「密码管理器团队账户恢复」的往来改:真信只有客服和系统的来信,「我」这一方照语境补写 | |
| {"mails": [ | |
| _m(113, "billing@gridboard.example", "I have a billing question", | |
| "Hi,\n\nOur team workspace \"Starsail Design\" was charged twice this month. The card ending 4417 shows two payments. " | |
| "Could you refund the duplicate? Please also put \"Starsail Technology Ltd.\" as the company name on future invoices." | |
| "\n\nThanks,\nYue Lin\nOperations Lead, Starsail Technology"), | |
| _m(114, "support@vaultkey.example", "Re: 账户恢复", | |
| "你好,我们团队的管理员是我和张辰两个人。新同事罗森的账户恢复我已经批准了,但他还是登不进去,恢复码是 K7QX-22HP-9MZD," | |
| "麻烦看一下。\n\n林悦\n星帆科技 运营负责人"), | |
| ], | |
| "expect": [(("单位",), ("Starsail", "星帆")), (("职位", "工作"), ("Operations", "运营")), (("同事",), ("罗森",)), | |
| (("同事", "上级"), ("张辰",))], | |
| "never": ["4417", "K7QX", "charged twice", "重复扣款", "扣了两次"]}, | |
| # 考点:和老朋友的信里的朋友、长期爱好(每周日爬山、攀岩)、署名;朋友转述的第三人的事(调去外地、怀孕)不记。 | |
| # 照「和老朋友的私人往来(照片、周末约)」改:真信只有朋友的来信,「我」这一方照语境补写 | |
| {"mails": [ | |
| _m(115, "xiaoshi@mail.example", "Re: 周末", | |
| "小石,周日早上照旧去紫金山吧,我这两年每个周日都爬,雷打不动。老周说他下个月要调去深圳,还说他老婆怀孕了,先别往外说。\n\n悦"), | |
| _m(116, "xiaoshi@mail.example", "照片", | |
| "上次露营的照片发你,最后那张你闭眼了哈哈。我最近在学攀岩,一周去两次馆。\n\n悦"), | |
| ], | |
| "expect": [(("朋友",), ("小石",)), (("其他",), ("爬山", "紫金山")), (("其他",), ("攀岩",)), (("署名",), ("悦",))], | |
| "never": ["深圳", "怀孕"]}, | |
| # 没有真信对应:库里没有和家人往来的信。 | |
| # 考点:家人(姐姐、母亲、丈夫、女儿)、老家;母亲的体检结果、卡号、这周末的安排、开学时间不记 | |
| {"mails": [ | |
| _m(117, "jiejie@mail.example", "妈的体检", | |
| "姐,妈的体检报告出来了,血压还是偏高,医生让继续吃药。我这周末回扬州陪她去复查,你那边不用请假。\n\n小悦"), | |
| _m(118, "jiejie@mail.example", "Re: 孩子上学", | |
| "朵朵的幼儿园定了,就在我们家小区对面,九月开学。我和老陈商量了,早上我送,晚上他接。\n\n小悦"), | |
| _m(119, "mom@mail.example", "生活费", | |
| "妈,生活费转您卡上了,卡号 6222 0219 8833 1047 那张。别再给我们寄腊肉了,冰箱放不下了。\n\n小悦"), | |
| ], | |
| "expect": [(("家人",), ("姐",)), (("家人",), ("妈", "母亲")), (("家人",), ("朵朵", "女儿", "孩子")), (("家人",), ("老陈", "丈夫", "先生")), | |
| (("城市", "其他", "家人"), ("扬州",))], | |
| "never": ["血压", "吃药", "复查", "6222", "1047", "九月开学", "这周末"]}, | |
| # 没有真信对应:库里只有日历邀请类的面试往来,没有招聘反馈。 | |
| # 考点:带团队的人:职位、单位、同事(HR)、下属;候选人的名字、现单位、期望薪资不记 | |
| {"mails": [ | |
| _m(120, "hr@qingmu.example", "前端候选人反馈", | |
| "王琳,今天面的候选人张一帆技术不错,他现在在蓝鲸互娱,期望 35k,说年底前不想动。我们组还是想要能马上到岗的,先放进备选吧。" | |
| "\n\n赵川\n青木软件 前端组负责人"), | |
| _m(121, "team-fe@qingmu.example", "面试安排", | |
| "各位,从这周起我们组每周四下午集中面试,每人至少跟一场。小米和阿杰负责出笔试题。\n\n赵川\n青木软件 前端组负责人", | |
| cc=["hr@qingmu.example"]), | |
| ], | |
| "expect": [(("职位",), ("前端组负责人", "前端")), (("单位",), ("青木",)), (("同事",), ("王琳",)), (("下属", "同事"), ("小米", "阿杰"))], | |
| "never": ["张一帆", "蓝鲸", "35k", "年底"]}, | |
| # 考点:日文写信:常用语言、自由职业的身份、住在哪个城市、日本的客户;面谈时间、希望单价不记。 | |
| # 照「日本自由职业项目平台事务局和项目方来信」的语境写「我」会回的信:真信只有平台和项目方来信 | |
| {"mails": [ | |
| _m(122, "an_support@assign-hiroba.example", "Re: 【アサイン広場】面談日程のご連絡", | |
| "ご担当者様\n\nお世話になっております。宋です。\n10月8日(水)14時からの面談、承知いたしました。\n" | |
| "現在は中国・南京在住で、フルリモートのみ対応可能です。希望単価は月80万円です。\n\n宋 祁\nフリーランス Webエンジニア"), | |
| _m(123, "sato@kizuna-sys.example", "案件について", | |
| "佐藤様\n\nご連絡ありがとうございます。React と Go の案件であれば対応可能です。日本語は業務レベルですが、" | |
| "技術資料は英語でも問題ありません。\n\n宋 祁\nフリーランス Webエンジニア"), | |
| ], | |
| "expect": [(("语言",), ("日语", "日文", "日本語")), (("职位", "工作"), ("フリーランス", "自由职业", "Webエンジニア", "工程师")), | |
| (("城市",), ("南京",)), (("客户", "合作方", "其他"), ("佐藤", "kizuna"))], | |
| "never": ["80万", "80 万", "10月8日", "14時"]}, | |
| # 考点:被抄送和自己发的研发往来:职位、下属或同事、英文客户、两种写信语言;这一次的请假、这周的安排、任务编号不记 | |
| # (每周一的例会是长期安排,记不记都可以)。照「研发群组里的任务往来、被抄送的客户接入」改:真信只有群组转来的通知 | |
| {"mails": [ | |
| _m(124, "dev@yuanlan.example", "研发周会", | |
| "各位,研发周会还是每周一上午十点,线上开。这周一我请假,由许蔓主持。\n\n周航\n远岚科技 研发经理", | |
| cc=["boss@yuanlan.example"]), | |
| _m(125, "xuman@yuanlan.example", "Re: [APP-418] 挂单列表缺少已撤销状态", | |
| "许蔓,这个状态我跟程野确认过了,下个版本加上。以后这类接口改动都先在任务里 @ 我。\n\n周航"), | |
| _m(126, "mina@harborpay.example", "Re: 接入进度", | |
| "Hi Mina,\n\nThe sandbox keys are ready; our engineer Cheng Ye will walk you through the integration on Thursday." | |
| "\n\nBest,\nHang Zhou\nEngineering Manager, Yuanlan Tech"), | |
| ], | |
| "expect": [(("职位",), ("研发经理", "Engineering Manager")), (("同事", "下属"), ("许蔓",)), (("同事", "下属"), ("程野", "Cheng Ye")), | |
| (("客户", "合作方"), ("Mina", "harborpay")), (("语言",), ("中文", "英文", "English"))], | |
| "never": ["这周一", "请假", "Thursday", "周四", "APP-418", "sandbox keys"]}, | |
| ] | |