Repository navigation
Sync spacy with the updated tutorial - #969
Merged
realpython-bot merged 2 commits intoDec 1, 2026
Merged
realpython-bot merged 2 commits into
realpython-bot merged 2 commits into
Conversation
Pin spaCy 3.8.18, textacy 0.12.0, and en_core_web_sm 3.8.0 on Python 3.13, match examples.py to the updated article's code, and add Setup and Usage sections to the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…acy-python-20261201
realpython-bot
deleted the
maintenance/natural-language-processing-spacy-python-20261201
branch
December 1, 2026 13:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs the
spacy/folder with the maintenance update of Natural Language Processing With spaCy in Python.What changed
requirements.txt: re-pinned to the article'sdependencies(spaCy 3.8.18, textacy 0.12.0,en_core_web_sm3.8.0, Python 3.13). The old file pinned spaCy 3.4.4 and its 2022 dependency set.examples.py: matches the updated article's code:{"SHAPE": "dddd"}and creates itsMatcherinside the function. The olddddnever matched7891and returnedNone.matcher.add()uses the list-of-patterns signature.extract_full_name()yields, and you call it withnext().custom_about_text,about_talk_text, the POS loop, the noun/adjective split, and the NERspacy.explain()line match the article.read_text(encoding="utf-8").introduction.txt: now readsspaCyand ends with a newline, which gives the'\n'token the article shows.README.md: added Setup (Python 3.12 or later, pinned install) and Usage sections.Verification
requirements.txt. Ranexamples.pyend to end withdisplacy.serve()/render()stubbed, and every printed result matches the article's output. The stop-word sample is the exception because set order is random.ruff 0.14.1 format --checkandruff checkpass, and so doesdircheck.py.Draft: https://realpython.com/pbjt/blog/post/2610/change/
Card: https://trello.com/c/gS76u4kR
🤖 Generated with Claude Code