Summary
This chapter introduced two powerful tools for integrating spaCy with third-party libraries: Streamlit for building interactive web applications and FastAPI for creating fast, type-safe APIs. We demonstrated how to build an NER web app using Streamlit and the spacy-streamlit package, leveraging Streamlit’s simplicity and interactivity. We then transitioned to building an API with FastAPI, emphasizing the importance of type hints in reducing bugs and improving code reliability. By combining spaCy with these frameworks, you learned that you could create effective, user-friendly NLP applications and services with minimal effort.
With this last chapter, we close out the book. It was quite a journey! I hope you’ve gained some ground knowledge of the main spaCy’s functionalities, but most importantly, I hope you can now create solutions with spaCy that follow some of the main software engineering principles for writing good code. I can’t wait to see...