Skip to content

Commit

Permalink
stylistic improvement, cf nltk#1598
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenbird committed May 16, 2017
1 parent 2a95665 commit 25731cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nltk/chunk/regexp.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,9 +831,13 @@ def __repr__(self):
# this should probably be made more strict than it is -- e.g., it
# currently accepts 'foo'.
CHUNK_TAG_PATTERN = re.compile(r'^((%s|<%s>)*)$' %
('([^\{\}<>]|\{\d+,?\d*\}|\{\d*,?\d+\})+',
('([^\{\}<>]|\{\d+,?\}|\{\d*,\d+\})+',
'[^\{\}<>]+'))





def tag_pattern2re_pattern(tag_pattern):
"""
Convert a tag pattern to a regular expression pattern. A "tag
Expand Down

0 comments on commit 25731cb

Please sign in to comment.