# -*- coding : utf-8 -*- import re rule_process = [ '刷单', '虚假承诺', '辱骂客户', ] rule_start = [ '开场核身', '自报家门', ] rule_end = [ '防诈骗话术', ] self_pattern = re.compile(r'.*((京东|金融).{0,10}(客户经理|我号|光号|工号|工作编号|工好)).*') check_pattern = re.compile(r'.*((这边|这边的话|边的话|您是).{0,10}(先生|先证|女士|女是)|请问(您|你)?是|是.{0,5}(先生|女士)吗).*') end_pattern = re.compile(r'.*(再见|生活愉快|感谢.{0,5}接听).*') defeat_pattern = re.compile(r'.*((房|防).{0,5}诈骗|诈骗.{0,10}(较多|提发|频发)|(直接|第一时间|马上|立刻).{0,10}报警|(电信|电视|网络).{0,20}诈骗|违法分子|不法分子).*') mianze_pattern = re.compile(r'(具体.{0,10}(页面|系统|显示|审核|审批))') mianxi_pattern = re.compile(r'([一二两三四五六七八九十千百零]+天.{0,5}免息)') if __name__ == '__main__': pass