Open kmike opened 8 years ago
@Ridinstar if you did call tagger.open it is likely a different issue. Do you have an example, how to reproduce it?
@kmike Thanks for replying, never mind, it's a silly mistake in formatting training data.
@Ridinstar mistake in formatting training data shouldn't cause a segfault, it is a python-crfsuite bug if it does :)
@kmike I am able to reproduce that segfault if I append no data to trainer, and I use this trainer to predict the labels of a valid test sequence.
Training a model with no data and trying to predict with it also seems to cause a segfault:
import pycrfsuite
MODEL_FILENAME = 'b.crfsuite'
trainer = pycrfsuite.Trainer(verbose=False)
trainer.train(MODEL_FILENAME)
tagger = pycrfsuite.Tagger()
tagger.open(MODEL_FILENAME)
# Causes segmentation fault
tagger.tag(['hello'])
The following error is produced:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
I also had similar issue, I had segfault when I use tagger.tag(), I did call tagger.open(modelfile)