Skip to content

Commit 2de630f

Browse files
committed
Fixed regexp for #1
1 parent 557c2d0 commit 2de630f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wordnet/nltk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from nltk.corpus.reader.wordnet import Synset
33
import re
44

5-
format_regexp = r'^\W*\((?P<pos>\w+)\)\W+(?P<stem>\w.*)\W*\#\W*(?P<num>\d+)\W*\Z'
5+
format_regexp = r'^\s*\((?P<pos>\w+)\)\s+(?P<stem>[^\s]+)\s*\#\s*(?P<num>\d+)\s*\Z'
66

77
def candidates(keyword):
88
if not keyword:

0 commit comments

Comments
 (0)