Comments (2)
2.1.6부터 다음과 같이 초기화하시면 multiprocess에서 사용이 가능합니다.
initialize(..., port=PORT)
이 때 PORT는 각 multiprocess마다 다른 번호를 주시면 됩니다.
기본 포트는 25534입니다.
from python-support.
조금 늦게 연락드려서 죄송합니다.
아마 Py4J에서 Java-Python 통신을 위한 Port를 사용하는데, 이 값이 기본값이라 여러개를 쓰지 못하는 상황인 것 같습니다.
JVM 초기화 부분을 수정하면 될 것 같은데, 수정해보고 알려드리겠습니다.
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()
- 초기화 문제(Java와 통신 중에 필요한 클래스가 없다는 것을 확인했습니다.) HOT 9
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.