Giter Site home page Giter Site logo

marisa-'s Introduction

MARISA-trie 中的字符串数据可能比标准 Python dict 占用内存少 50 到 100 倍;

原始查找速度相当;

trie 还提供了快速匹配的高级方法,例如前缀搜索。

我是王蓉,我不是黄蓉
请播放邓紫棋画
请播放美丽的神话

全匹配

[{'music-album': ['我不是黄蓉']}, {'music-singer': ['王蓉']}, {'music-song': ['我不是黄蓉']}] [{'music-singer': ['邓紫', '邓紫棋']}] [{'music-album': ['美丽的神话', '神话']}, {'music-song': ['美丽的神话', '神话']}]

最大匹配

[{'music-album': '我不是黄蓉'}, {'music-singer': '王蓉'}, {'music-song': '我不是黄蓉'}] [{'music-singer': '邓紫棋'}] [{'music-album': '美丽的神话'}, {'music-song': '美丽的神话'}]

marisa-'s People

Contributors

liuxinyu12378 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.