hmni icon indicating copy to clipboard operation
hmni copied to clipboard

ImportError: cannot import name 'MyVocabularyProcessor' from 'preprocess' (D:\Anaconda\lib\site-packages\preprocess.py)

Open Jeremy98-alt opened this issue 2 years ago • 1 comments

Hi, thanks for this fantastic library.. But, I have an issue I have python 3.8.3. I installed the required libraries that you mentioned, but it was also required to install preprocess. After this, I tried to run again only the import of your library and the code returned the error:

ModuleNotFoundError: No module named 'packaging.about'

During handling of the above exception, another exception occurred:

ImportError Traceback (most recent call last) in ----> 1 import hmni 2 3 # Initialize a Matcher Object 4 #matcher = hmni.Matcher(model='latin') 5

D:\Anaconda\lib\site-packages\hmni_init_.py in ----> 1 from . import input_helpers, matcher, preprocess, siamese_network, syllable_tokenizer 2 import os 3 import tarfile 4 5 # extract model tarball into directory if doesnt exist

D:\Anaconda\lib\site-packages\hmni\input_helpers.py in 33 from .preprocess import MyVocabularyProcessor 34 except: ---> 35 from preprocess import MyVocabularyProcessor 36 37

ImportError: cannot import name 'MyVocabularyProcessor' from 'preprocess' (D:\Anaconda\lib\site-packages\preprocess.py)

What is the problem?? Thanks again!

Jeremy98-alt avatar Jul 28 '22 14:07 Jeremy98-alt

abydos==0.5.0 scikit-learn==0.23.1 Python 3.5–3.8

mhatem5351 avatar Aug 07 '22 12:08 mhatem5351