Hello geniuses of Openrefine! I’ve been lurking here and there for some time. These last days, I’ve had to detect the language of 5000 texts. I’ve found
Sylvain use of the Python package Langdetect in the Expression window (Add a column based on column). Unfortunately, this is easier said than done, and I’ve spent the day try to make it working, without success.
I’ve made 2-3 screenshots, and I’ve copied the text from the report, in the right side of the Expression window. Hopping someone here would have an idea how to resolve this particular problem.
==
Error: Traceback (most recent call last):
File "<string>", line 5, in __temp_1301653213__
File "/Applications/OpenRefine.app/Contents/Resources/webapp/extensions/jython/module/MOD-INF/lib/jython/langdetect/__init__.py", line 1, in <module>
from .detector_factory import DetectorFactory, PROFILES_DIRECTORY, detect, detect_langs
File "/Applications/OpenRefine.app/Contents/Resources/webapp/extensions/jython/module/MOD-INF/lib/jython/langdetect/detector_factory.py", line 10, in <module>
from .detector import Detector
File "/Applications/OpenRefine.app/Contents/Resources/webapp/extensions/jython/module/MOD-INF/lib/jython/langdetect/detector.py", line 5, in <module>
from six.moves import zip, xrange
ImportError: cannot import name zip
==
Note that I’ve drop the packages in the right folder, under Jython2.7.2, but that Openrefine has only given some signs of doing something when I’ve put a copy in one of its own subfolders.
I’m using Openrefine 3.4.1 on the latest version of Big Sur.