GithubHelp home page GithubHelp logo

pinyin4iai's Introduction

pinyin 4 IAI

拼音输入法编程作业


算法

  • 使用基于字的二元模型的Viterbi算法。
  • 对低频组合采用了线性插值。
  • 对多音字进行了额外的修正。

使用

  • 本程序仅支持python3。

  • 对windows平台进行了代码打包,直接使用bin/pinyin.exe即可,无须安装python3环境。

  • 对于其他平台,直接使用src/pinyin.py。

  • 具体用法:

      Usage : pinyin
          or: pinyin input_file output_file
    

    前者为从stdin逐行读入拼音串,向stdout输出汉字串;后者从input_file逐行读入拼音串,向output_file输出。

  • 注意!本程序并没有对拼音串的合法性进行检查,因此当输入的拼音串不合法时会直接抛出异常使程序结束。

协议

  • 本程序使用了MIT License。

pinyin4iai's People

Contributors

naginikaido avatar

Watchers

James Cloos avatar Foengz 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.