Skip to content

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