mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Bug fix in gf_utils
This commit is contained in:
@@ -91,7 +91,7 @@ def pipeline_lexer(sentence):
|
||||
|
||||
def web_lexer(grammar, lang, sentences):
|
||||
for instance in sentences:
|
||||
tokensList = re.split('\s+?', instance);
|
||||
tokensList = re.split('\s+?', instance.strip());
|
||||
for idx, token in enumerate(tokensList):
|
||||
if not token[0].isupper():
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user