bab2min / tomotopy

Python package of Tomoto, the Topic Modeling Tool
https://bab2min.github.io/tomotopy
MIT License
556 stars 62 forks source link

Segmentation fault (core dumped) when using labels in LLDA #30

Closed JonAnderRuizColmenares closed 4 years ago

JonAnderRuizColmenares commented 4 years ago

Hello, I am not an expert and I may be very wrong here, but when I try to make a labelled LDA model I am getting 'Segmentation fault (core dumped)' and it may be a bug?

After declaring; model = tp.LLDAModel(tw=TermWeight.ONE, min_cf=0, rm_top=0, k=20, alpha=0.1, eta=0.01)

If I do not specify labels, as in:

model.add_doc(myDocument)

instead of

model.add_doc(myDocument,labels=myLabel)

I can add all documents and create a working model just fine, but if I try to put the labels, the program gives me the segmentation error while adding the very first document.

I have also been able to create sLDA and LDA models without any single problem.

bab2min commented 4 years ago

Thank you for reporting the bug. I found where the problem is and it will be fixed 0.5.2 version. Please re-try after updating tomotopy to 0.5.2 version.

JonAnderRuizColmenares commented 4 years ago

Thank you for the work you are doing! :)