Tuesday, October 18, 2022

AI/ML AttributeError: 'CRF' object has no attribute 'keep_tempfiles'

this can be fixed by just adding try catch.

try:

    crf.fit(X_train, y_train)

except AttributeError:

    pass

predictions = crf.predict(X_test)

references:

https://stackoverflow.com/questions/66059532/attributeerror-crf-object-has-no-attribute-keep-tempfiles

No comments:

Post a Comment