SekouD/mlconjug

Is anyone else getting this errror? 'sklearn.feature_selection.from_model'

2inshix opened this issue · 2 comments

  • MLConjug version:
  • Python version:
  • Operating System:

Description

I tried running the mlconjug test sample:

To use mlconjug with the default parameters and a pre-trained conjugation model.

default_conjugator = mlconjug.Conjugator(language='fr')

What I Did

Exception has occurred: ModuleNotFoundError
No module named 'sklearn.feature_selection.from_model'
File "C:\Users\user\Desktop\Japanator flask 00\Tomo_app_update-japan_db_update_latest with GUI 00\Tomo_app_update-japan_db_update OK\routes\Japanese\conjugateEng.py", line 12, in
default_conjugator = mlconjug.Conjugator(language='fr')

Tried uninstall and reinstall via pip and pip3 on windows 10

Hi,

I had the same issue. In my case was the scikit-learn version. As a temporary fix I downgraded it to: 0.23.2 and it worked.

Hi @2inshix and @franciscolaborda .

I am the original author of mlconjug.

I want to let you now that mlconjug is now deprecated and not supported.

You should upgrade to mlconjug3 by using either pip or conda.

There have been many improvements and up to date dependencies.

Peace.

SeouDiaoNlp.