Comments (5)
Yup, you are right. I know about it for some time, but teaching in the current situation is taking all my time and I have little left for this. But I will try to release an updated version whenever I can. (I already have an infrastructure for building binary wheels, already applied on ufal.morphodita, so binary wheels will be part of the next release.)
BTW, you can make the Python bindings from the sources (in the bindings/python
directory) in the meantime.
Leaving open for tracking.
Cheers!
from nametag.
@maresmar I was able to patch the existing release with this little change.
--- a/nametag/nametag_python.cpp 2016-09-22 14:33:51.000000000 +0200
+++ b/nametag/nametag_python.cpp 2021-11-30 14:45:57.096869000 +0100
@@ -3318,7 +3318,7 @@
SWIGINTERN void
SwigPyStaticVar_dealloc(PyDescrObject *descr) {
- _PyObject_GC_UNTRACK(descr);
+ PyObject_GC_UnTrack(descr);
Py_XDECREF(PyDescr_TYPE(descr));
Py_XDECREF(PyDescr_NAME(descr));
PyObject_GC_Del(descr);
The process is basically:
pip download ufal.nametag==1.1.2.1
tar -xf *
cd ufal.nametag*
patch -p1 < $patch_above
pip install .
from nametag.
BTW, I just did a maintenance release of NameTag 1, including Python wheels of ufal.nametag
1.2.0.1, for Python 3.6-3.11, Linux 32bit&64bit&aarch64; Windows 32bit&64bit; macOS Intel&ARM.
from nametag.
Hi @foxik, any news about the fix/whl release? Cheers.
from nametag.
Or, if you download the repo, then with SWIG installed, the bindings build cleanly. I faced a strange problem when trying to use string vectors between nametag and morphodita.
Basically, sending morphodita.Forms into nametag works with SWIG 3 but not with SWIG 4. To avoid adding conversions in Python, I went with the hack above to stay at SWIG 3.
from nametag.
Related Issues (18)
- Nametag REST server fails when compiled in debug mode HOT 1
- Memory Leak in Java Binding HOT 2
- Why can't two words have same brown cluster representation? HOT 2
- Server returns invalid json when output is set to "vertical" and no entities were found. HOT 2
- Server returns invalid json when there is no data. HOT 1
- Enhancement: Accept data from request body HOT 1
- r wrapper / morphodita HOT 4
- Wrong token ranges when sentences are in vertical input HOT 3
- Unexpected category in czech-cnec2.0-200831 model HOT 4
- Duplicity rows in nametag output HOT 7
- Missing category HOT 1
- Integrate with CLARIN LR Switchboard HOT 7
- Invalid and incorrect JSON responses for some Python runs for Py 3.5 and lower [nametag2] HOT 4
- NameTag2 returns code 400 + internal error for specific sentences [nametag2] HOT 3
- Support Tensorflow 2.x and Python 3.8+ in NameTag 2 HOT 2
- Conditional jump or move depends on uninitialised value HOT 5
- std::iterator deprecated in C++17 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 nametag.