Skip to content

Commit 3ab7123

Browse files
9bowgamamoe
authored andcommitted
기본 모델명 변경 related #34 (#35)
1 parent dfab187 commit 3ab7123

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

python/PyKomoran/core.py

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def __init__(self, model_path, max_heap=1024):
4343
if max_heap <= 0:
4444
raise KomoranError("Heap size for JVM is too small!")
4545

46+
if model_path == 'STABLE':
47+
model_path = DEFAULT_MODEL['LIGHT']
48+
elif model_path == 'EXP':
49+
model_path = DEFAULT_MODEL['FULL']
50+
4651
if not os.path.exists(model_path):
4752
raise KomoranError("model does NOT exist!")
4853

0 commit comments

Comments
 (0)