mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 19:42:50 -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):
|
def web_lexer(grammar, lang, sentences):
|
||||||
for instance in sentences:
|
for instance in sentences:
|
||||||
tokensList = re.split('\s+?', instance);
|
tokensList = re.split('\s+?', instance.strip());
|
||||||
for idx, token in enumerate(tokensList):
|
for idx, token in enumerate(tokensList):
|
||||||
if not token[0].isupper():
|
if not token[0].isupper():
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user