腰果国考

Description

Algorithm of the python text processing
FeiFei Liu
Mind Map by FeiFei Liu, updated more than 1 year ago
FeiFei Liu
Created by FeiFei Liu over 7 years ago
5
0

Resource summary

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

                                          Similar

                                          Python Quiz
                                          karljmurphy
                                          Think Python
                                          tsilvo2001
                                          Basic Python - Print Formatting
                                          Rebecca Noel
                                          What is Python?
                                          Daniel Ingram
                                          Python
                                          54671
                                          Know your Python!
                                          educ8ict
                                          Basic Python - Strings
                                          Rebecca Noel
                                          Study on IoT systems design
                                          Tomasz Cieplak
                                          Python
                                          Kirstie Wu
                                          OpenSource Programming
                                          Faheem Ahmed
                                          Basic Python - Lists
                                          Rebecca Noel