I stumbled upon this error while building eval function for my movie sentiment feature after the recent release of sadedegel. Then I tried to reproduce this error with already implemented models and got the same error below:
TypeError Traceback (most recent call last)
in
----> 1 model.predict(['anlamadım'])
~/opt/anaconda3/envs/sg/lib/python3.8/site-packages/sklearn/utils/metaestimators.py in (*args, **kwargs)
117
118 # lambda, but not partial, allows help() to work with update_wrapper
--> 119 out = lambda *args, **kwargs: self.fn(obj, *args, **kwargs)
120 # update the docstring of the returned function
121 update_wrapper(out, self.fn)
~/opt/anaconda3/envs/sg/lib/python3.8/site-packages/sklearn/pipeline.py in predict(self, X, **predict_params)
405 Xt = X
406 for _, name, transform in self._iter(with_final=False):
--> 407 Xt = transform.transform(Xt)
408 return self.steps[-1][-1].predict(Xt, **predict_params)
409
~/Documents/movie_rew/sadedegel/sadedegel/extension/sklearn.py in transform(self, X, y)
62
63 for text in X:
---> 64 docs.append(Text2Doc.Doc(text))
65
66 return docs
TypeError: 'NoneType' object is not callable
To reproduce this error you can try following steps:
**1. Import any prebuilt model
Load prebuilt model .joblib
Predict any text with loaded model**
I'm getting this error on both develop and master branches while using MacOS system and conda python 3.8 enviroment.
Some observations:
I don't get the error at initial use when I build the model for first time, but when I load .joblib for second time I get the error mentioned above.
I stumbled upon this error while building eval function for my movie sentiment feature after the recent release of sadedegel. Then I tried to reproduce this error with already implemented models and got the same error below:
To reproduce this error you can try following steps:
**1. Import any prebuilt model
I'm getting this error on both
develop and master
branches while usingMacOS
system and condapython 3.8
enviroment.Some observations:
I don't get the error at initial use when I build the model for first time, but when I load .joblib for second time I get the error mentioned above.