Code Monkey home page Code Monkey logo

spellingassociate's Introduction

spellingAssociate项目文档

简介

spellingAssociate是在Linux系统下用C++基于对象的方法编写的一个单词输入联想纠错程序,项目实现的效果是:客户端输入一个单词,服务器收到客户端发送过来的单词后在本地词典中找到一个和它最相近的一个单词并返回给客户端。

本地词典包括中文单词和英文单词,事先对原始语料进行预处理,分离单词并统计词频保存到文件。

客户端请求的单词以及服务器返回的结果会保存在cache文件,加快下次查找速度

项目流程图

项目流程图

项目框架

  1. 线程池 Threadpool

  1. 服务器框架 TcpServer

  1. 定时器线程

TimerThread


  1. 任务类 MyTask

  1. 项目总体框架 spellingAssociate

  1. 离线部分类

offline

项目运行效果

run_result

其他技术细节

  1. cppjieba开源库对中文语料分词
  2. log4cpp开源库记录项目运行日志
  3. 最小编辑距离算法计算单词转换所需的最少编辑操作
  4. utf-8编码解析

LICENSE

spellingassociate's People

Contributors

meihao1203 avatar

Stargazers

Breeze Chen avatar  avatar  avatar  avatar

Watchers

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