Coder Social home page Coder Social logo

pinyin's Introduction

简易拼音输入法

依赖

预处理

  • jieba 结巴分词
  • pypinyin 拼音注音
  • tqdm 显示进度条,可选

实际运行

解释

  • pin_yin_2.py是字二元语法模型,pin_yin_4.py是字四元语法模型,它们依赖于pre_processor_1.0.py生成的数据;
  • pin_yin_pro.py是最终选定测试的算法版本(字二元+词二元),它依赖于pre_processor_1.0.pypre_processor_2.0.py共同生成的数据。

用法

  1. 获取语料,放入raw目录下;
  2. 运行预处理程序(可能需要较长时间);
  3. 运行输入法程序。

声明

代码在上交作业之后还做过一些小改动,因此当前版本的代码效果可能与实验报告中描述的稍有不同。

附录

清华大学学生纪律处分管理规定实施细则

第六章 学术不端、违反学习纪律的行为与处分

第二十一条 有下列违反课程学习纪律情形之一的,给予警告以上、留校察看以下处分:

(一)课程作业抄袭严重的;

(二)实验报告抄袭严重或者篡改实验数据的;

(三)期中、期末课程论文抄袭严重的;

(四)在课程学习过程中严重弄虚作假的其他情形。

(虽然我这个菜菜的代码应该也没人看。)

pinyin's People

Stargazers

 avatar

Watchers

 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.