I have a Python-based maximum entropy classifier. It is large, stored as a pickel, and takes about a minute to unstable. It is also not thread safe. However, it is fast and can classify a sample (a simple Python dictionary) in a few milliseconds.
I would like to create a basic Django web application so that users can submit samples for classification in real time. How can I once load the classifier into read-only memory and then adjust it so that each request can access the object without contradicting other requests?
Cerin source share