We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 557c2d0 commit 2de630fCopy full SHA for 2de630f
wordnet/nltk.py
@@ -2,7 +2,7 @@
2
from nltk.corpus.reader.wordnet import Synset
3
import re
4
5
-format_regexp = r'^\W*\((?P<pos>\w+)\)\W+(?P<stem>\w.*)\W*\#\W*(?P<num>\d+)\W*\Z'
+format_regexp = r'^\s*\((?P<pos>\w+)\)\s+(?P<stem>[^\s]+)\s*\#\s*(?P<num>\d+)\s*\Z'
6
7
def candidates(keyword):
8
if not keyword:
0 commit comments