Giter Club home page Giter Club logo

Comments (9)

bgnkim avatar bgnkim commented on June 8, 2024 1

@Astro36 v2.1.5로 수정한 버전 올렸습니다. 정상 작동하는지 확인부탁드립니다.

from python-support.

bgnkim avatar bgnkim commented on June 8, 2024

사용하신 python과 koalanlp version을 기술해주실 수 있을까요?

from python-support.

Astro36 avatar Astro36 commented on June 8, 2024

혹시 해결하셨나요? 저도 같은 문제가 발생합니다..
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)

from python-support.

bgnkim avatar bgnkim commented on June 8, 2024

@Astro36 혹시 사용하시는 OS는 Windows 10인가요?

from python-support.

Astro36 avatar Astro36 commented on June 8, 2024

@Astro36 혹시 사용하시는 OS는 Windows 10인가요?

네, Windows 10 Home 2004 사용 중입니다.

from python-support.

bgnkim avatar bgnkim commented on June 8, 2024

Windows 10 가상머신에서 Python 3.8.3과 KoalaNLP 2.1.4로 테스트했을 때 정상적으로 동작합니다...
Java version이 좀 의심스럽네요.. (Java 8로 테스트하였고 14.0.1 설치중입니다)
---------- update
14.0.1로 실행했음에도 아래와 같이 정상적으로 동작합니다....
image

@Astro36

  • 실행하신 환경이 Powershell이나 Python IDLE이 아닌 다른 환경이라면 그 환경도 알려주시겠어요?
  • 혹시 OKT를 제외하고 KKMA를 집어넣으면 다음 코드가 정상적으로 작동하나요?
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에서 실행한 제 결과는 다음과 같았습니다.
image

  • initialize 실행시점부터 split 실행 전까지의 결과는 기기에 따라 다릅니다.

--------- update2
참고로, Python 3.8.3과 Java 14.0.1의 설치는 chocolatey를 사용하였고, KoalaNLP의 설치는 PyPI를 활용했습니다.

from python-support.

bgnkim avatar bgnkim commented on June 8, 2024

재현에 성공했습니다. OKT가 문제네요.

from python-support.

bgnkim avatar bgnkim commented on June 8, 2024

정규표현식이 틀려있었네요... 패키지에서 아래 부분을 다음과 같이 고치면 됩니다.

return re.sub(r'\$\\{(.*?)\\}', subfunc, text)

        return re.sub(r'\$\{(.*?)\}', subfunc, text)

수정한 버전 곧 올리도록 하겠습니다.

from python-support.

Astro36 avatar Astro36 commented on June 8, 2024

@Astro36 v2.1.5로 수정한 버전 올렸습니다. 정상 작동하는지 확인부탁드립니다.

잘 되네요. 감사합니다!

from python-support.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.