Giter VIP home page Giter VIP logo

find_confused_words's Introduction

find_confused_words

混淆词对挖掘

一种简单的混淆词对挖掘的方法,可用于文本纠错的召回模块:

  1. 如果有语料可跳过这一步,在这里我们简单爬取一些app的名字,然后随机替换掉正确app名字中的一个字,替换为同音字,例如【王者荣耀】变换成【王者荣药】,再通过一些自己写的模板生成句子
  2. 利用smooth nlp提供的新词发现接口,无监督发现新词,原理是左右熵与点间互信息
  3. 利用trie树,将拼音序列输入trie树,以便搜索同音序列
python3 sent_generated.py
python3 main.py

结果:

('婚贝请柬', '婚贝请间')
('黑马矿友', '黑码矿友')
('真像生活', '真享生活')
('山东移动', '山动移动')
('识歌识曲', '师歌识曲')

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.