Integrating spaCy with Third-Party Libraries
In this chapter, we’ll explore how to integrate spaCy with third-party libraries, focusing on building web applications and APIs for NLP tasks. We will start with Streamlit, a Python framework that simplifies the creation of web applications without needing extensive front-end knowledge. We’ll demonstrate how to create a simple Named Entity Recognition (NER) app using Streamlit and spacy-streamlit. Following this, we’ll dive into FastAPI, a modern framework for building APIs, known for its speed and use of Python type hints. We’ll learn how to create an API that extracts entities from text using a spaCy model, showcasing the ease with which you can build NLP-powered services.
In this chapter, we’re going to cover the following main topics:
- Building spaCy-powered Apps with Streamlit
- Building APIs for NLP models using FastAPI