Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java에서 처리하던 중에 문제가 발생했습니다. 문제가 계속된다면, Issue를 등록해주세요. #31

Open
1 of 7 tasks
SeungJun9164 opened this issue Jan 26, 2022 · 0 comments

Comments

@SeungJun9164
Copy link

SeungJun9164 commented Jan 26, 2022

기초정보

  • Python은 koalanlp/python-support, NodeJS는 koalanlp/nodejs-support repository에 등록해주세요.
  • KoalaNLP 버전은 얼마였나요?
  • 어떤 프로그래밍 언어에서 문제가 생겼습니까? ([]안에 x표하여 표기해주세요)
    • Kotlin
    • Java
    • Scala
    • [x ] 기타 JVM 계열 언어
  • 문제의 유형은 어떤 것인가요?
    • 버그리포트
    • 개선점제안
    • 사용법질문
    • 기타

재연을 위한 정보

  • 어떤 문장을 시도하셨습니까?
https://koalanlp.github.io/koalanlp/usage/NER.html 이 사이트에서 python 3로 실행해볼 수 있는 예제를 사용하였습니다.
  • KoalaNLP를 사용한 코드 부분을 보여주세요.
from koalanlp import API
from koalanlp.proc import EntityRecognizer
from koalanlp.Util import initialize, finalize

initialize(ETRI='LATEST')
recognizer = EntityRecognizer(API.ETRI, etri_key='키번호')

parsed = recognizer.analyze("이 문단을 분석합니다. 문단 구분은 자동으로 합니다.")
# 또는 recognizer.analyze(...), recognizer.invoke(...)

# 첫번째 문장의 개체명들을 출력합니다.
for entity in parsed[0].getEntities():
    print(entity)

finalize()

본문

현재 인증키를 받아 예제코드를 진행해보려 구글 코랩에서 진행중입니다. 하지만 py4j.protocol.Py4JJavaError: An error occurred while calling o209.analyze.
: connect timed out 이와 같은 오류가 지속적으로 발생하고 있습니다.
[root] Java에서 처리하던 중에 문제가 발생했습니다. 문제가 계속된다면, Issue를 등록해주세요. 이와 같은 오류 처리 표시가 함께 표출되고 있습니다. 이를 해결하기 위해 어떻게 해야하나요??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant