Giter Site home page Giter Site logo

chinese_correct_wsd's Introduction

用于用户输入语句的同音自动纠错.

依赖于pynlpir https://github.com/tsroten/pynlpir

数据是抓取的某东客服语料训练的,可以后续把自己抓取的语料共享 给大家训练用

./proc.py 训练产生数据

使用方法: ./server.py 或者 /usr/bin/python3 server.py 启动服务端

然后./client_run.py 或者 /usr/bin/python3 client_run.py XXX来进行纠错测试

➜ utf-8 ./client_run.py "我想买哥苹果手机" "对京东新人度大打折扣" 原语句:我想买哥苹果手机 纠正句:我想买个苹果手机 原语句:对京东新人度大打折扣 纠正句:对京东信任度大打折扣 ➜ utf-8

中文词义消歧也是这个思路,但是效果比较差,有时间后续研究。使用到了 同义词词林(没有加入库,utils目录中的只做参考)。

chinese_correct_wsd's People

Contributors

taozhijiang avatar

Watchers

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