Closed suda0221 closed 4 years ago
사용하신 python과 koalanlp version을 기술해주실 수 있을까요?
혹시 해결하셨나요? 저도 같은 문제가 발생합니다.. Python: 3.8.3 KoalaNLP: 2.1.4
Java:
openjdk 14.0.1 2020-04-14
OpenJDK Runtime Environment AdoptOpenJDK (build 14.0.1+7)
Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.20.0, JRE 14 Windows 10 amd64-64-Bit Compressed References 20200422_50 (JIT enabled, AOT enabled)
@Astro36 혹시 사용하시는 OS는 Windows 10인가요?
@Astro36 혹시 사용하시는 OS는 Windows 10인가요?
네, Windows 10 Home 2004 사용 중입니다.
Windows 10 가상머신에서 Python 3.8.3과 KoalaNLP 2.1.4로 테스트했을 때 정상적으로 동작합니다... Java version이 좀 의심스럽네요.. (Java 8로 테스트하였고 14.0.1 설치중입니다) ---------- update 14.0.1로 실행했음에도 아래와 같이 정상적으로 동작합니다....
@Astro36
from koalanlp.Util import initialize, finalize
from koalanlp.proc import SentenceSplitter
from koalanlp import API
initialize(KKMA='LATEST', HNN='LATEST')
split = SentenceSplitter(API.HNN)
split.sentences('문장 하나입니다. 문장 둘입니다. 결과는 아마 세 문장일겁니다.')
finalize()
PowerShell에서 실행한 제 결과는 다음과 같았습니다.
--------- update2 참고로, Python 3.8.3과 Java 14.0.1의 설치는 chocolatey를 사용하였고, KoalaNLP의 설치는 PyPI를 활용했습니다.
재현에 성공했습니다. OKT가 문제네요.
정규표현식이 틀려있었네요... 패키지에서 아래 부분을 다음과 같이 고치면 됩니다.
return re.sub(r'\$\{(.*?)\}', subfunc, text)
수정한 버전 곧 올리도록 하겠습니다.
@Astro36 v2.1.5로 수정한 버전 올렸습니다. 정상 작동하는지 확인부탁드립니다.
@Astro36 v2.1.5로 수정한 버전 올렸습니다. 정상 작동하는지 확인부탁드립니다.
잘 되네요. 감사합니다!
기초정보
재연을 위한 정보
본문
<오류 메시지> [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/sonatype/oss/oss-parent/7/oss-parent-7.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/sonatype/oss/oss-parent/7/oss-parent-7.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/sonatype/oss/oss-parent/7/oss-parent-7.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/sonatype/oss/oss-parent/7/oss-parent-7.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/sonatype/oss/oss-parent/7/oss-parent-7.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/jetbrains/annotations/13.0/annotations-13.0.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/jetbrains/annotations/13.0/annotations-13.0.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/jetbrains/annotations/13.0/annotations-13.0.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/jetbrains/annotations/13.0/annotations-13.0.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/jetbrains/annotations/13.0/annotations-13.0.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] Pom file not found at https://oss.sonatype.org/content/repositories/public/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file https://jcenter.bintray.com/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] Pom file not found at https://jcenter.bintray.com/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file https://jitpack.io/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] Pom file not found at https://jitpack.io/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file https://repo1.maven.org/maven2/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] Pom file not found at https://repo1.maven.org/maven2/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file https://insecure.repo1.maven.org/maven2/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] Pom file not found at https://insecure.repo1.maven.org/maven2/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/snapshots/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Skipped] Pom file not found at https://oss.sonatype.org/content/repositories/snapshots/org/scala-lang/scala-library/${scala.version}/scala-library-${scala.version}.pom [koalanlp.jip] [Warning] Artifact is not found: org.scala-lang:scala-library:${scala.version} [koalanlp.jip] [Checking] pom file C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.m2\repository\org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.pom [koalanlp.jip] [Checking] pom file C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.pom [koalanlp.jip] [Skipped] pom file not found at C:\Users\win10.ivy2\cache\org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.pom [koalanlp.jip] [Checking] pom file https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.pom [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4-assembly.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/org/jetbrains/annotations/13.0/annotations-13.0.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.jar [koalanlp.jip] [Downloading] jar from https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.jar [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.jar 20369 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-okt/2.1.4/koalanlp-okt-2.1.4.jar completed in 2.030107 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.jar 1740278 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/org/openkoreantext/open-korean-text/2.3.1/open-korean-text-2.3.1.jar completed in 3.136679 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.jar 247555 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-core/2.1.4/koalanlp-core-2.1.4.jar completed in 2.852445 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.jar 1326269 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib/1.3.50/kotlin-stdlib-1.3.50.jar completed in 3.998941 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/org/jetbrains/annotations/13.0/annotations-13.0.jar 17536 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/org/jetbrains/annotations/13.0/annotations-13.0.jar completed in 2.050517 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.jar 122939 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/net/sf/py4j/py4j/0.10.8.1/py4j-0.10.8.1.jar completed in 2.389604 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.jar 15476 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.3.50/kotlin-stdlib-jdk8-1.3.50.jar completed in 1.944012 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.jar 170934 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-common/1.3.50/kotlin-stdlib-common-1.3.50.jar completed in 2.573874 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.jar 50458 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/com/twitter/twitter-text/1.14.3/twitter-text-1.14.3.jar completed in 2.278401 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.jar 3129 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.3.50/kotlin-stdlib-jdk7-1.3.50.jar completed in 2.027206 secs [koalanlp.jip] [Downloading] https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4-assembly.jar 81401911 bytes to download [koalanlp.jip] [Downloading] Download https://oss.sonatype.org/content/repositories/public/kr/bydelta/koalanlp-hnn/2.1.4/koalanlp-hnn-2.1.4-assembly.jar completed in 82.371813 secs [koalanlp.jip] JVM initialization procedure is completed. split: 0%| | 0/1892982 [00:00<?, ?it/s][root] Java와 통신 중에 필요한 클래스가 없다는 것을 확인했습니다. 자바 Jar 파일을 강제로 다시 다운로드하는 것을 추천합니다. 처음 initialize() 함수를 호출하실 때, force_download=True를 추가해주세요. (예) initialize(KKMA="LATEST", force_download=True). 이렇게 해도 문제가 계속된다면, Issue를 등록해주세요. Traceback (most recent call last): File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\koalanlp\proc.py", line 39, in sentences result += py_list(self.__api.invoke(string(paragraph)), lambda x: x) File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\py4j\java_gateway.py", line 1257, in call answer, self.gateway_client, self.target_id, self.name) File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\py4j\protocol.py", line 328, in get_return_value format(target_id, ".", name), value) py4j.protocol.Py4JJavaError: An error occurred while calling o212.invoke. : java.lang.NoClassDefFoundError: scala/collection/immutable/StringOps at org.openkoreantext.processor.tokenizer.KoreanSentenceSplitter$.(KoreanSentenceSplitter.scala:30)
at org.openkoreantext.processor.tokenizer.KoreanSentenceSplitter$.(KoreanSentenceSplitter.scala)
at org.openkoreantext.processor.OpenKoreanTextProcessor$.splitSentences(OpenKoreanTextProcessor.scala:144)
at org.openkoreantext.processor.OpenKoreanTextProcessor.splitSentences(OpenKoreanTextProcessor.scala)
at kr.bydelta.koala.okt.SentenceSplitter.sentences(proc.kt:162)
at kr.bydelta.koala.proc.CanSplitSentence$DefaultImpls.invoke(processors.kt:63)
at kr.bydelta.koala.okt.SentenceSplitter.invoke(proc.kt:153)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ClassNotFoundException: scala.collection.immutable.StringOps
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 18 more
Traceback (most recent call last): File "C:/Users/win10/PycharmProjects/PT/data_prepro/compare_sent_spliter.py", line 82, in
main()
File "C:/Users/win10/PycharmProjects/PT/data_prepro/compare_sent_spliter.py", line 64, in main
okt_lines = okt_split(line)
File "C:/Users/win10/PycharmProjects/PT/data_prepro/compare_sent_spliter.py", line 33, in okt_split
paragraph = splitter.sentences(line)
File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\koalanlp\proc.py", line 41, in sentences
error_handler(e)
File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\koalanlp\jvm.py", line 207, in error_handler
raise e
File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\koalanlp\proc.py", line 39, in sentences
result += py_list(self.__api.invoke(string(paragraph)), lambda x: x)
File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\py4j\java_gateway.py", line 1257, in call
answer, self.gateway_client, self.target_id, self.name)
File "C:\Users\win10\Anaconda3\envs\pt\lib\site-packages\py4j\protocol.py", line 328, in get_return_value
format(target_id, ".", name), value)
py4j.protocol.Py4JJavaError: An error occurred while calling o212.invoke.
: java.lang.NoClassDefFoundError: scala/collection/immutable/StringOps
at org.openkoreantext.processor.tokenizer.KoreanSentenceSplitter$.(KoreanSentenceSplitter.scala:30)
at org.openkoreantext.processor.tokenizer.KoreanSentenceSplitter$.(KoreanSentenceSplitter.scala)
at org.openkoreantext.processor.OpenKoreanTextProcessor$.splitSentences(OpenKoreanTextProcessor.scala:144)
at org.openkoreantext.processor.OpenKoreanTextProcessor.splitSentences(OpenKoreanTextProcessor.scala)
at kr.bydelta.koala.okt.SentenceSplitter.sentences(proc.kt:162)
at kr.bydelta.koala.proc.CanSplitSentence$DefaultImpls.invoke(processors.kt:63)
at kr.bydelta.koala.okt.SentenceSplitter.invoke(proc.kt:153)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
at py4j.Gateway.invoke(Gateway.java:282)
at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
at py4j.commands.CallCommand.execute(CallCommand.java:79)
at py4j.GatewayConnection.run(GatewayConnection.java:238)
at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ClassNotFoundException: scala.collection.immutable.StringOps
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 18 more