Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

yjham2002/StringMatcher

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aho-corasick Based multiple keyword matcher

  • 📖 Aho-corasick Algorithm based multiple keyword matcher with KMP

Usage

public static void main(String[] args){

        HashMap<String, Integer> map = new HashMap<>();

        map.put("벚꽃", 1);
        map.put("봄", 1);
        map.put("봄바람", 1);
        map.put("황사", 1);
        map.put("커플", 1);
        map.put("미세먼지", 1);
        map.put("우울증", 1);
        map.put("사과", 1);
        map.put("배", 1);

        StringMatcher sMatcher = new StringMatcher("벚 꽃 이 피면 봄 바 람이 불어와서 눈이 아 프다 황사도  심해 서 스트레스를 받아 우 울 증 이 생긴다.", map);



    }

About

📖 Aho-corasick Algorithm based multiple keyword matcher with KMP

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.