Skip to content

Commit

Permalink
Workaround for pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
endolith committed Jul 28, 2023
1 parent 939f92d commit ca06ad3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions characterExtraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
except LookupError:
nltk.download('punkt')

# https://github.com/clips/pattern/issues/295#issuecomment-841625057
try:
parse('dummy sentence')
except RuntimeError:
pass


def readText():
"""
Expand Down

0 comments on commit ca06ad3

Please sign in to comment.