pyloque / fastscan Goto Github PK
View Code? Open in Web Editor NEWquickly text search by ahocorasick algorithm
Home Page: https://pyloque.github.com/fastscan
quickly text search by ahocorasick algorithm
Home Page: https://pyloque.github.com/fastscan
我的node版本是6.11 好像不能使用 ,最低需要node版本是多少呢
This seems like a great tool. Unfortunately I can't understand Chinese.
Could you provide an English translation for the documentation and your demo?
L68:为了兼容低版本chrome44以及其他浏览器建议修改:
var curExpands = Object.keys(root.next).map(function(key) {
return root.next[key];
});
替换原来的
var curExpands = Object.values(root.next);
敏感词词量过大,很容崩溃。
现在敏感词词量一般都很多的,数量在80K以上,在Chrome上,处于崩溃状态。
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@0. I'll try to do my best with it!
......
var words = ["今日头条","微信", "支付宝", /^http(s):\/\/.+/]
var scanner = new FastScanner(words)
var content = "今日头条小程序终于来了,这是继微信、支付宝、百度后,第四个推出小程序功能的App。猫眼电影率先试水,出现在今日头条。(http://www.taobao.com)"
var offWords = scanner.search(content)
如题
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.