An open API service indexing awesome lists of open source software.

https://github.com/yjham2002/differmeanfilter

:mag: A filter for generating list with finding homonym via specific word set
https://github.com/yjham2002/differmeanfilter

Last synced: 3 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# DifferMeanFilter

:mag: Difference Mean Filter for homonym

- Usage

```java
public static void main(String[] args){

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

Map> 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("");
}

}
```