Skip to content

📖 Aho-corasick Algorithm based multiple keyword matcher with KMP

Notifications You must be signed in to change notification settings

yjham2002/StringMatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

No releases published

Packages

No packages published

Languages