Avoid deeply nested control flow statements. New
New
for sentence_seg in sentence:
for i, token in enumerate(sentence_seg):
if token in stop_words:
sentence_seg[i] = ''
else:
Avoid deeply nested control flow statements. New
New
for sentence_seg in sentence:
for i, token in enumerate(sentence_seg):
if token.lower() in stop_words:
sentence_seg[i] = ''
Avoid deeply nested control flow statements. New
New
for token in sentence_seg:
token.tag = token.tag.lower()
# Words
if settings['words']: