use no-root user in docker image by default (#26419)

This commit is contained in:
Byron.wang
2025-11-25 19:59:45 +08:00
committed by GitHub
parent abc13ef762
commit 83702762c8
2 changed files with 11 additions and 3 deletions

View File

@@ -302,8 +302,7 @@ class OracleVector(BaseVector):
nltk.data.find("tokenizers/punkt")
nltk.data.find("corpora/stopwords")
except LookupError:
nltk.download("punkt")
nltk.download("stopwords")
raise LookupError("Unable to find the required NLTK data package: punkt and stopwords")
e_str = re.sub(r"[^\w ]", "", query)
all_tokens = nltk.word_tokenize(e_str)
stop_words = stopwords.words("english")