diff --git a/examples/async/sparse_vectors.py b/examples/async/sparse_vectors.py index d50b4080..458798a3 100644 --- a/examples/async/sparse_vectors.py +++ b/examples/async/sparse_vectors.py @@ -84,7 +84,7 @@ DATASET_URL = "https://raw.githubusercontent.com/elastic/elasticsearch-labs/main/datasets/workplace-documents.json" # initialize sentence tokenizer -nltk.download("punkt", quiet=True) +nltk.download("punkt_tab", quiet=True) class Passage(InnerDoc): diff --git a/examples/async/vectors.py b/examples/async/vectors.py index 5221929d..b58c184e 100644 --- a/examples/async/vectors.py +++ b/examples/async/vectors.py @@ -70,7 +70,7 @@ MODEL_NAME = "all-MiniLM-L6-v2" # initialize sentence tokenizer -nltk.download("punkt", quiet=True) +nltk.download("punkt_tab", quiet=True) # this will be the embedding model embedding_model: Any = None diff --git a/examples/sparse_vectors.py b/examples/sparse_vectors.py index ae156fe7..ba853e8c 100644 --- a/examples/sparse_vectors.py +++ b/examples/sparse_vectors.py @@ -83,7 +83,7 @@ DATASET_URL = "https://raw.githubusercontent.com/elastic/elasticsearch-labs/main/datasets/workplace-documents.json" # initialize sentence tokenizer -nltk.download("punkt", quiet=True) +nltk.download("punkt_tab", quiet=True) class Passage(InnerDoc): diff --git a/examples/vectors.py b/examples/vectors.py index c983514d..ef1342ee 100644 --- a/examples/vectors.py +++ b/examples/vectors.py @@ -69,7 +69,7 @@ MODEL_NAME = "all-MiniLM-L6-v2" # initialize sentence tokenizer -nltk.download("punkt", quiet=True) +nltk.download("punkt_tab", quiet=True) # this will be the embedding model embedding_model: Any = None