Skip to content

Commit

Permalink
Fixed regexp for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
fbanados committed Sep 9, 2024
1 parent 557c2d0 commit 2de630f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wordnet/nltk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from nltk.corpus.reader.wordnet import Synset
import re

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'

def candidates(keyword):
if not keyword:
Expand Down

0 comments on commit 2de630f

Please sign in to comment.