Skip to content
Browse files

converted pattern to [0-9a-zA-Z] for clarity's sake

  • Loading branch information...
1 parent 5f8945a commit 80c521ba4d9816ce11f15de3974fe21b20d557ff @nubela committed Feb 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 ner/
2 ner/
@@ -20,7 +20,7 @@
#regex patterns for various tagging options for entity parsing
-SLASHTAGS_EPATTERN = re.compile(r'(.+?)/([0-Z]+)?\s*')
+SLASHTAGS_EPATTERN = re.compile(r'(.+?)/([0-9a-zA-Z]+)?\s*')
XML_EPATTERN = re.compile(r'<wi num=".+?" entity="(.+?)">(.+?)</wi>')
INLINEXML_EPATTERN = re.compile(r'<([A-Z]+?)>(.+?)</\1>')

1 comment on commit 80c521b

dat commented on 80c521b Feb 7, 2013

Cool. Looks much better. I was thinking about including underscore _ also, but this should do for now.

Please sign in to comment.
Something went wrong with that request. Please try again.