Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created March 4, 2020 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prateekjoshi565/04bef7eca50f4e43911ccb65074c266c to your computer and use it in GitHub Desktop.
Save prateekjoshi565/04bef7eca50f4e43911ccb65074c266c to your computer and use it in GitHub Desktop.
# Extract matched text
for match_id, start, end in matches:
# Get the matched span
matched_span = doc[start:end]
print(matched_span.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment