Web Deployments

So far, we have been focused on getting something to work for the very first time and then making incremental updates. These updates are almost always geared toward better techniques and better usability. But, how do we expose them to the user? One way to do this is via REST endpoints.

In this chapter, we are going to cover the following topics:

  • Training a model, and writing some neater utils for data I/O
  • Building a predict function, separated from training
  • Exposing what we have covered using a Flask REST endpoint

Get Natural Language Processing with Python Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.