adsva / python-wapiti

Python bindings for libwapiti
MIT License
66 stars 22 forks source link

can't train several models #11

Open kmike opened 10 years ago

kmike commented 10 years ago

It seems there is some shared state that is not encapsulated in Model class: I recall model.train continues training where it left for previous model; sometimes it exits with "error: invalid feature: " error on second training (while working on first).

Sorry, no reproducable example to check that :)

adsva commented 10 years ago

The python wrapper loads any supplied model and syncs it before training, just like the c-binary, so there shouldn't be a problem. However, the python wrapper does not process any new patterns passed in if you also pass a model; could that be the problem in your case? Let me know if you find a reproducible example!