Git Product home page Git Product logo

datacheck_mnbvc's Introduction

DataCheck_MNBVC

项目描述

针对MNBVC 项目下的数据进行格式检查,要求数据格式满足现有语料格式:

环境安装

pip install -r requirements.txt

运行

检查每个文件所有行并输出到日志文件logs/check_log.txt,检查结果请到logs目录下查看

python check_data.py --dataset data

检查每个文件 top 100 行

python check_data.py  --dataset data/ --k 100

运行说明

参数说明

  • --dataset 待检查的数据文件名或者目录,必选参数
  • --k 抽样检查每个文件top k行, 可选参数,默认检查每个文件所有行

输出

  • 正确的语料格式:the type of dataset {your data} is ...数据
  • 错误的语料格式: can not match data type, the most similar type of dataset {your data} is ...格式, similar score is ...

错误的语料格式会提示错误类型和错误行号(从0 开始):

  • 字段缺失: line: ...: missing error, missing keys: ...
  • 字段数据类型错误: line ...: type error, error keys: ..., expected type ...

检查完成后,会提示检查完成: check dataset {your data} finished, right line ... / total check line ...

⚠️

问答和多轮问答语料格式只有 id 字段的数据类型存在差异,在扩展字段存在差异,其它部分一致

  • 问答的 id 字段为 int 类型
  • 多轮问答的 id 为 string 类型
  • 多轮问答的扩展字段为 json 字符串,且必须包含会话和多轮序号字段,字段类型为 int 类型

问答和多轮问答会检查 create_time时间格式,要求时间格式为%Y%m%d %H:%M:%S

datacheck_mnbvc's People

Contributors

x94521 avatar voidf 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.