KomoranEntryPoint¶
-
public class
KomoranEntryPoint¶ KOMORAN을 Wrapping하는 Class로, Py4J에 의해 불리는 Java-side의 EntryPoint입니다. 직접 실행 시
main메소드에서 Py4J의 GatewayServer를 생성합니다.사용법은 아래와 같습니다.
KomoranEntryPoint kep = new KomoranEntryPoint(); kep.init(MODEL_PATH);
Author: 9bow See also:
kr.co.shineware.nlp.komoran.core.Komoran,py4j.GatewayServer
Methods¶
analyze¶
getList¶
getMorphesByTags¶
getNouns¶
getPlainText¶
getTokenList¶
init¶
-
public void
init(String modelPath)¶ 내부
Komoran객체를modelPath로 초기화합니다.Parameters: - modelPath – 모델이 위치한 절대 경로
Throws: - FileNotFoundException – modelPath에 모델이 존재하지 않을 시 Exception 발생
See also:
kr.co.shineware.nlp.komoran.core.Komoran
initByModel¶
-
public void
initByModel(DEFAULT_MODEL modelType)¶ 내부
Komoran객체를 기본modelType초기화합니다.modelType은 KOMORAN의 DEFAULT_MODEL 타입입니다.Parameters: - modelType – DEFAULT_MODEL 종류
See also:
kr.co.shineware.nlp.komoran.core.Komoran
initByModelName¶
-
public void
initByModelName(String modelTypeName)¶ 내부
Komoran객체를 기본modelTypeName초기화합니다.modelTypeName은 KOMORAN의 DEFAULT_MODEL의 이름입니다.Parameters: - modelTypeName – DEFAULT_MODEL의 이름
See also:
kr.co.shineware.nlp.komoran.core.Komoran
isInitialized¶
-
public boolean
isInitialized()¶ 내부
Komoran객체가 초기화되었는지 확인합니다.Returns: 초기화 여부 (boolean) See also:
kr.co.shineware.nlp.komoran.core.Komoran
main¶
-
public static void
main(String[] args)¶ 직접 실행 시 Py4J의 GatewayServer를 실행합니다.
Parameters: - args –
See also:
py4j.GatewayServer