Mind map
腰果国考
Map content
腰果国考
major
- major_list = re.split()
- if contains ['本科','硕士','研究生']
- 是否以 '硕士'结尾
- '硕士'结尾 且 非re.search(r'本科|研究生')
- ba: [major1, major2]
- 否则
- ba: [major1, major2] ma: [major1, major2]
- 学历分前/后
- '硕士'结尾 且 非re.search(r'本科|研究生')
- if re.search(r'本科\w?(硕士|研究生)')
- all: [major1, major2]
- 是否以 '硕士'结尾
- if not contains ['本科','硕士','研究生']
- all: [major1, major2]
- if contains ['本科','硕士','研究生']
- major_list = re.split()
study experience
- re.split(r'仅限|及以上|或|[\(\)()]')
- 大专:0 本科:1 硕士/研究生:2 博士:3
- if contain '仅限'
- 取最高学历
- 否则, 提取学历List
- 同时把高于list的学历也同时提取
- if contain '仅限'
- 大专:0 本科:1 硕士/研究生:2 博士:3
- re.split(r'仅限|及以上|或|[\(\)()]')
degree
- self._degree.get(text, -1), 无要求或未匹配上则显示为-1
political status
- re.split(r'或', text), 返回一个list
groot_work
- 工作年份: 无限制
- return (-1, 'no', [])
- 工作年份: 1,2,3,4,>5
- 类别无限制
- return (n, 'no', [])
- 类别有限制
- return (n, 'yes', ['sanzhi', 'west']) etc
- 类别无限制
- 工作年份: 无限制
fresh_graduate
- contains '应届' and not contain '非应届'
- return xxx年应届生 or 应届生
- contains '应届' and not contain '非应届'
hometown
- contain '生源'
- return 1
- re.search(r'(?:仅?限|面向|要求|\b)(\w+?)户籍|现\w*?户籍\w*?为')
- return 1
- contain '生源'
english
- re.findall(r'(?<=英语)?(专?业?)(?:英语)?(四|六|八)级'
- 四级:4 六级:6 专四:14 专八:18
- re.findall(r'(?<=英语)?(专?业?)(?:英语)?(四|六|八)级'
certificate
- accouting practice qualification
- if re.search(r'会计从业\w*?证')
- return 1
- if re.search(r'会计从业\w*?证')
- CPA
- if contains '注册会计'
- return 1
- if contains '注册会计'
- NCRE
- if re.search(r'计算机\w+?级'
- return 1
- if re.search(r'计算机\w+?级'
- accouting practice qualification
minority
- if re.search(r'(限|定向|\b)\w+?族')
- return 1
- if re.search(r'(限|定向|\b)\w+?族')
Information
- Description
- Algorithm of the python text processing
- Created by
- FeiFei Liu
- Views
- 8
- Tags
- Rating