LexPredict / lexpredict-lexnlp

LexNLP by LexPredict
GNU Affero General Public License v3.0
690 stars 175 forks source link

AttributeError: type object 'sklearn.tree._criterion.array' has no attribute '__reduce_cython__' #35

Closed euribe98 closed 4 years ago

euribe98 commented 4 years ago

Hello, I am evaluating your api and trying to use function get_sections but getting error. I get this error simply importing. Would you please advise

from lexnlp.nlp.en.segments.sections import get_sections

Same issue from lexnlp.nlp.en.segments.titles import get_titles

I've installed dependencies according to: https://github.com/LexPredict/lexpredict-lexnlp/blob/master/python-requirements-full.txt

Error ~/anaconda3/envs/py36/lib/python3.6/site-packages/sklearn/tree/tree.py in 37 from ..utils.validation import check_is_fitted 38 ---> 39 from ._criterion import Criterion 40 from ._splitter import Splitter 41 from ._tree import DepthFirstTreeBuilder

~/anaconda3/envs/py36/lib/python3.6/site-packages/sklearn/tree/_criterion.cpython-36m-darwin.so in init sklearn.tree._criterion()

AttributeError: type object 'sklearn.tree._criterion.array' has no attribute '__reduce_cython__'

Dependencies deps.txt

euribe98 commented 4 years ago

I resolved this.

soflyanna commented 1 year ago

Hello euribe98, I have the same error. How did you resolve it ? Tks