GithubHelp home page GithubHelp logo

ustc_ra_followtime's Introduction


代码说明

本项目计算了响应上级号召的省级文件的响应时间的情况

运行环境

  • python 3.7,其余见requirements.txt

数据说明

本代码使用的数据保密,均已经过整理


文件说明

代码部分

main.py 主要运行程序

主要的参数为:Name Context All 一般选择All 主要执行两个部分: 第一部分,获取省级文件相应的上级文件的名字,上级文件颁布的时间 第二部分,各个省份和每年的政策计算响应时间

utils.getSeniorName.py

主要进行第一部分中,获取省级文件响应的上级文件名字的工作 逻辑:根据《*》(--号)去筛选获得上级文件名称

utils.matchSeniorDate.py

主要整合了上述工作,并完成匹配上级文件颁布时间的工作 逻辑:

  • 根据省级政策颁布时间为终点,以三年前的时间点为起点,获取这期间颁布的国家级政策
  • 检查刚刚获得的响应文件的名称是否在筛选出的国家级文件中,在即输出颁布时间
  • 遍历刚刚获得的响应文件的名称的字符、遍历筛选出的国家级文件的名称,若字符在与某一个名称的重复率超过90%,输出颁布时间
  • 若经过伤两步骤仍未找到,则删除该省级文件

utils.provinceDelta.py

主要计算整理了筛选出的数据的响应时间,输出为每年各个省份的平均响应时间

文件部分(data文件夹下)

由于数据保密,故取消上传相关数据

国家级文件

储存国家级文件的文件

地方规范性文件_follow

储存筛选出的follow上级省级的规范性文件的文件夹

省级文件

储存筛选过的找到上级文件和颁布时间的省级政策文件和整理好的响应时间文件的文件夹 All、Context和Name分别对应选择方式(具体看main.py中的说明)

ustc_ra_followtime's People

Stargazers

Youth_YH avatar

Watchers

Youth_YH avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.