AmaliePauli / AncSetfit

Apache License 2.0
3 stars 0 forks source link

In the example from setfit.modeling import SetFitBaseModel, SKLearnWrapper, sentence_pairs_generation, get an error after importing #1

Open xian0101 opened 2 months ago

xian0101 commented 2 months ago

Traceback (most recent call last): File "/home/xzhou/paper-baseline/AncSetfit-main/train.py", line 3, in from setfit.modeling import SetFitBaseModel, SKLearnWrapper, sentence_pairs_generation ImportError: cannot import name 'SetFitBaseModel' from 'setfit.modeling' (/home/xzhou/miniconda3/envs/baselines-setfit/lib/python3.9/site-packages/setfit/modeling.py)

I looked at the setfit.modeling file that doesn't have these classes

larshubacher commented 1 month ago

It worked when I reinstalled the setfit package with version 0.6.0.