Allows disabling NLTK, adds it as a consideration for low power devices

This commit is contained in:
Trenton H committed 2022-10-10 08:58:23 -07:00
1 parent c44c914d3d
commit 1e891414a3
3 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -312,7 +312,7 @@ class DocumentClassifier:
content = re.sub(r"[^\w\s]", " ", content)
# If the NLTK language is supported, do further processing
if settings.NLTK_LANGUAGE is not None:
if settings.NLTK_LANGUAGE is not None and settings.NLTK_ENABLED:
import nltk