Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 80c521ba4d9816ce11f15de3974fe21b20d557ff 1 parent 5f8945a
@nubela authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  ner/client.py
View
2  ner/client.py
@@ -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

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.