From 2de630fd64c2c9a5dfb27e96465e4549c26c39bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Ba=C3=B1ados=20Schwerter?= Date: Mon, 9 Sep 2024 18:03:58 +0000 Subject: [PATCH] Fixed regexp for #1 --- wordnet/nltk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordnet/nltk.py b/wordnet/nltk.py index 65b26b4..97eb6b2 100644 --- a/wordnet/nltk.py +++ b/wordnet/nltk.py @@ -2,7 +2,7 @@ from nltk.corpus.reader.wordnet import Synset import re -format_regexp = r'^\W*\((?P\w+)\)\W+(?P\w.*)\W*\#\W*(?P\d+)\W*\Z' +format_regexp = r'^\s*\((?P\w+)\)\s+(?P[^\s]+)\s*\#\s*(?P\d+)\s*\Z' def candidates(keyword): if not keyword: