Comments (9)
@Astro36 v2.1.5로 수정한 버전 올렸습니다. 정상 작동하는지 확인부탁드립니다.
from python-support.
사용하신 python과 koalanlp version을 기술해주실 수 있을까요?
from python-support.
혹시 해결하셨나요? 저도 같은 문제가 발생합니다..
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.
@Astro36 혹시 사용하시는 OS는 Windows 10인가요?
from python-support.
@Astro36 혹시 사용하시는 OS는 Windows 10인가요?
네, Windows 10 Home 2004 사용 중입니다.
from python-support.
Windows 10 가상머신에서 Python 3.8.3과 KoalaNLP 2.1.4로 테스트했을 때 정상적으로 동작합니다...
Java version이 좀 의심스럽네요.. (Java 8로 테스트하였고 14.0.1 설치중입니다)
---------- update
14.0.1로 실행했음에도 아래와 같이 정상적으로 동작합니다....
- 실행하신 환경이 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에서 실행한 제 결과는 다음과 같았습니다.
- initialize 실행시점부터 split 실행 전까지의 결과는 기기에 따라 다릅니다.
--------- update2
참고로, Python 3.8.3과 Java 14.0.1의 설치는 chocolatey를 사용하였고, KoalaNLP의 설치는 PyPI를 활용했습니다.
from python-support.
재현에 성공했습니다. OKT가 문제네요.
from python-support.
정규표현식이 틀려있었네요... 패키지에서 아래 부분을 다음과 같이 고치면 됩니다.
python-support/koalanlp/jip/maven.py
Line 353 in 381b1bd
return re.sub(r'\$\{(.*?)\}', subfunc, text)
수정한 버전 곧 올리도록 하겠습니다.
from python-support.
@Astro36 v2.1.5로 수정한 버전 올렸습니다. 정상 작동하는지 확인부탁드립니다.
잘 되네요. 감사합니다!
from python-support.
Related Issues (12)
- 장고서버에 koalanlp를 이용한 프로젝트를 올리려고 합니다.. HOT 1
- KSS 탑재 문의 HOT 5
- Py4JJavaError HOT 1
- 'JavaPackage' object is not callable koalanlp
- koalanlp 2.1.7, initialize 에러 HOT 1
- initialize error `'xml.etree.ElementTree.Element' object has no attribute 'getchildren'` HOT 1
- 초기화 함수 initialize 관련 HOT 3
- Tagger API를 통해서 문장을 분석하면 원문의 띄어쓰기가 무조건 변경되어 분석의 어려움이 있습니다. HOT 3
- finalize 후 initialize()를 다시 하려는데 안되네요. HOT 7
- Failed to initialize()
- initialize with 2 process. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-support.