Skip to content

🔍 A filter for generating list with finding homonym via specific word set

Notifications You must be signed in to change notification settings

yjham2002/DifferMeanFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DifferMeanFilter

🔍 Difference Mean Filter for homonym

  • Usage
    public static void main(String[] args){

        WordSet wordSet = new WordSet();
        wordSet.addWord(new Word("일본", "일본", 0));
        wordSet.addWord(new Word("도쿄", "도쿄", 0));

        Map<String,List<String>> map = new HashMap<>();
        map.put("일본",  Arrays.asList(new String[]{"도쿄","오사카", "홋카이도"}));
        map.put("홋카이도",  Arrays.asList(new String[]{"폭설", "산악"}));
        map.put("여행", Arrays.asList(new String[]{"크루즈","배낭여행"}));
        map.put("도쿄", Arrays.asList(new String[]{"신칸센","방사선"}));

        for(WordSet ws : DifferMeanFilter.execute(wordSet, map)){
            for(Word w : ws.getWords()){
                System.out.print(w.getNorWord() + "/");
            }
            System.out.println("");
        }

    }

About

🔍 A filter for generating list with finding homonym via specific word set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages