package kr.co.swh.lecture.opensource.eunjeon;

import java.util.List;

import org.bitbucket.eunjeon.seunjeon.Analyzer;
import org.bitbucket.eunjeon.seunjeon.Eojeol;
import org.bitbucket.eunjeon.seunjeon.LNode;
import org.bitbucket.eunjeon.seunjeon.Morpheme;

public class EunjeonAnalysis {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		// 형태소 분석
		for (Eojeol eojeol : Analyzer.parseEojeolJava("아버지가방에들어가신다?하하하입니다.")) {
			List<LNode> m = eojeol.nodesJava();
			System.out.println("%%%%%%%%%%%%%%%%%%%%%");
			for (LNode node : m) {
				Morpheme y = node.morpheme();
				System.out.println(y.surface() + " / 품사:" + y.feature().head());
			}
		}

	}

}
