Skip to content

Commit

Permalink
0.1.6 Release, KOMORAN v3.3.9 및 Py4J v0.10.9.2 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
9bow committed May 4, 2021
1 parent 3b1a5e7 commit 2778641
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ sphinx-rtd-theme==0.4.2
sphinx-sitemap==1.0.2
sphinxcontrib-napoleon
javasphinx==0.9.15
py4j==0.10.8.1
py4j==0.10.9.2
PyKomoran
6 changes: 3 additions & 3 deletions java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ repositories {

dependencies {
// add released
// compile 'com.github.shin285:KOMORAN:3.3.4'
// compile 'com.github.shin285:KOMORAN:3.3.9'
// add local file
compile name: 'KOMORAN-4e7b5ef'
compile 'net.sf.py4j:py4j:0.10.8.1'
compile name: 'KOMORAN-3.3.9'
compile 'net.sf.py4j:py4j:0.10.9.2'
}
4 changes: 2 additions & 2 deletions python/PyKomoran/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
__title__ = 'PyKomoran'
__description__ = 'PyKomoran is Python wrapper for KOMORAN, KOrean MORphical ANalyzer.'
__url__ = 'https://pydocs.komoran.kr'
__version__ = '0.1.5'
__version__ = '0.1.6'
__author__ = 'Junghwan Park, Junsoo Shin, Geunho Lee'
__author_email__ = '[email protected]'
__license__ = 'Apache 2.0'
__copyright__ = 'Copyright 2019 SHINEWARE'
__copyright__ = 'Copyright 2021 SHINEWARE'
__download_url__ = 'https://github.com/shineware/PyKOMORAN/releases/download/{0}/PyKomoran-{0}.tar.gz'.format(__version__)
__keywords__ = 'KOMORAN, PyKomoran, KOrean MORphical ANalyzer, Morph Analyzer',
4 changes: 2 additions & 2 deletions python/PyKomoran/jvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def init_jvm(max_heap=1024, jar_path="./libs"):
return

libraries = [
'{0}{1}KOMORAN-4e7b5ef.jar',
'{0}{1}KOMORAN-3.3.9.jar',
'{0}{1}KOMORANEntryPoint-0.1.6.jar',
# '{0}{1}*'
]

classpath = os.pathsep.join([lib.format(jar_path, os.sep) for lib in libraries])
py4j_path = "{0}{1}py4j0.10.8.1.jar".format(jar_path, os.sep)
py4j_path = "{0}{1}py4j-0.10.9.2.jar".format(jar_path, os.sep)

port = launch_gateway(jarpath=py4j_path,
classpath=classpath,
Expand Down
Binary file added python/PyKomoran/libs/KOMORAN-3.3.9.jar
Binary file not shown.
Binary file removed python/PyKomoran/libs/KOMORAN-4e7b5ef.jar
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions python/PyKomoran/tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def test_to_analyze_get_plain_text():

assert isinstance(plain_text, str)
assert len(plain_text) == 156
assert plain_text == '①/SW 대한민국/NNP 은/JX 민주공화국/NNP 이/VCP 다/EF ./SF ②/SW 대한민국/NNP 의/JKG 주권/NNP 은/JX ' \
assert plain_text == '①/SW 대한민국/NNP 은/JX 민주공화국/NNP 이/VCP 다/EF ./SF ②/SW 대한민국/NNP 의/JKG 주권/NNG 은/JX ' \
'국민/NNG 에게/JKB 있/VV 고/EC ,/SP 모든/MM 권력/NNG 은/JX 국민/NNG 으로부터/JKB 나오/VV ㄴ다/EF ./SF'


Expand Down Expand Up @@ -359,7 +359,7 @@ def test_to_set_user_dic():
assert isinstance(tokens[0], Token)
assert tokens[0] == Token({
'morph': '테스트',
'pos': 'NNP',
'pos': 'NNG',
'beginIndex': 0,
'endIndex': 3
})
Expand Down
2 changes: 1 addition & 1 deletion python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
py4j==0.10.8.1
py4j==0.10.9.2
2 changes: 1 addition & 1 deletion python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]

install_requires = [
'py4j==0.10.8.1',
'py4j==0.10.9.2',
]

tests_require = [
Expand Down
2 changes: 1 addition & 1 deletion python/test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
coverage==4.5.3
nose==1.3.7
py4j==0.10.8.1
py4j==0.10.9.2

0 comments on commit 2778641

Please sign in to comment.