Giter Site home page Giter Site logo

cscd-ime's Introduction

构造数据

构造拼写替换数据的项目https://github.com/nghuyong/cscd-ime, 请阅读readme_en下载相关文件(如果本地没有的话),配好相关环境

服务器路径[email protected]

服务器项目地址/home/jsyan/code/cscd-ime

准备数据

在构造数据之前,需要准备好没有错别字的句子级别的数据。数据保存为一个txt文件,每一行一句话。

执行项目

nohup bash build.sh >nohup.log 2>&1 &

程序执行一段时间会遇到segment fault问题,该问题会导致程序挂掉。为了解决这个问题,该脚本写了个循环脚本,当程序挂掉时,会计算当前处理的行数,并从处理的行数开始,重新执行脚本,处理剩余的数据。

参数说明

  • COMMAND:执行build的命令,根据具体文件路径和环境更改

  • DATA_PATH:待处理文件的路径

  • TARGET_FILE:生成数据后,写入的路径,每一行的格式为

    含错别字的句子\t不含错别字的句子

  • EXPECTED_LINES:待处理文件的行数

cscd-ime's People

Contributors

nghuyong avatar jingsong-yan 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.