@Test public void testNormalizeText() throws Exception { String input = "한국어를 처리하는 예시입니닼ㅋㅋㅋㅋㅋ"; String expectedResult = "한국어를 처리하는 예시입니다ㅋㅋ"; NormalizationText normalizationText = new NormalizationText(input); NormalizationManager normalizationManager = NormalizationManager.getInstance(); assertEquals(normalizationManager.normalizeText(normalizationText).getNormalizatedText(), expectedResult); }
public NormalizationText normalizeText(NormalizationText normalizationText){ CharSequence normalized = TwitterKoreanProcessorJava.normalize(normalizationText.getOriginalText()); normalizationText.setNormalizatedText(normalized.toString()); return normalizationText; }
NormalizationManager { public NormalizationText normalizeText(NormalizationText normalizationText){ CharSequence normalized = TwitterKoreanProcessorJava.normalize(normalizationText.getOriginalText()); normalizationText.setNormalizatedText(normalized.toString()); return normalizationText; } }
NormalizationManager { public NormalizationText normalizeText(NormalizationText normalizationText){ CharSequence normalized = TwitterKoreanProcessorJava.normalize(normalizationText.getOriginalText()); normalizationText.setNormalizatedText(normalized.toString()); return normalizationText; } private  NormalizationManager(); }
NormalizationManager { public NormalizationText normalizeText(NormalizationText normalizationText){ CharSequence normalized = TwitterKoreanProcessorJava.normalize(normalizationText.getOriginalText()); normalizationText.setNormalizatedText(normalized.toString()); return normalizationText; } private  NormalizationManager(); static NormalizationManager getInstance(); NormalizationText normalizeText(NormalizationText normalizationText); }
NormalizationManager { public NormalizationText normalizeText(NormalizationText normalizationText){ CharSequence normalized = TwitterKoreanProcessorJava.normalize(normalizationText.getOriginalText()); normalizationText.setNormalizatedText(normalized.toString()); return normalizationText; } private  NormalizationManager(); static NormalizationManager getInstance(); NormalizationText normalizeText(NormalizationText normalizationText);  }