AttributeError: 'NoneType' object has no attribute 'tfidf_destruct'
kizhonorium opened this issue · 2 comments
kizhonorium commented
Running the example from the tutorial for CustomPECOS
from pathlib import Path
from custom_pecos import CustomPECOS
train_data = Path(__file__).parents[1].joinpath("data", "processed", "train-data-16877697542891772.txt")
test_data = Path(__file__).parents[1].joinpath("data", "processed", "testing.txt")
output_labels = Path(__file__).parents[1].joinpath("data", "processed", "output-labels.txt")
model_folder = Path(__file__).parents[1].joinpath("models", "tf-idf")
model = CustomPECOS.train(str(train_data), str(output_labels))
model.save(str(model_folder))
I get an error
Exception ignored in: <function Tfidf.__del__ at 0x7f01bb7caa20>
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/pecos/utils/featurization/text/vectorizers.py", line 179, in __del__
AttributeError: 'NoneType' object has no attribute 'tfidf_destruct'
kizhonorium commented
help please
kizhonorium commented
please help me to solve this error