💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Revert changes in #760
davidmezzetti34cefe97ee5a
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 38cc53e7..cf9def6c 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -54,7 +54,7 @@ jobs:run: |pip install -U wheelpip install .[all,dev] fasttext==0.9.2 faiss-cpu==1.8.0 "numpy < 2.0.0"- python -c "import nltk; nltk.download(['punkt_tab', 'averaged_perceptron_tagger_eng'])"+ python -c "import nltk; nltk.download('punkt')"python --versionmake data coveragediff --git a/docker/base/Dockerfile b/docker/base/Dockerfileindex 63c87ce6..6335b9e5 100644--- a/docker/base/Dockerfile+++ b/docker/base/Dockerfile@@ -29,7 +29,7 @@ RUN \python -m pip install --no-cache-dir -U pip wheel setuptools && \if [ -z ${GPU} ] && { [ -z ${TARGETARCH} ] || [ ${TARGETARCH} = "amd64" ] ;}; then pip install --no-cache-dir torch==2.3.1+cpu torchvision==0.18.1+cpu -f https://download.pytorch.org/whl/torch_stable.html; fi && \python -m pip install --no-cache-dir txtai${COMPONENTS} && \- python -c "import sys, importlib.util as util; 1 if util.find_spec('nltk') else sys.exit(); import nltk; nltk.download(['punkt_tab', 'averaged_perceptron_tagger_eng'])" && \+ python -c "import sys, importlib.util as util; 1 if util.find_spec('nltk') else sys.exit(); import nltk; nltk.download(['punkt'])" && \\# Cleanup build packagesapt-get -y purge gcc g++ python${PYTHON_VERSION}-dev && apt-get -y autoremovediff --git a/examples/10_Extract_text_from_documents.ipynb b/examples/10_Extract_text_from_documents.ipynbindex abf50865..e6463a04 100644--- a/examples/10_Extract_text_from_documents.ipynb+++ b/examples/10_Extract_text_from_documents.ipynb@@ -50,7 +50,7 @@"\n","# Install NLTK\n","import nltk\n",- "nltk.download('punkt_tab')"+ "nltk.download('punkt')"],"execution_count": 19,"outputs": []diff --git a/examples/40_Text_to_Speech_Generation.ipynb b/examples/40_Text_to_Speech_Generation.ipynbindex fddf6843..4f884b4f 100644--- a/examples/40_Text_to_Speech_Generation.ipynb+++ b/examples/40_Text_to_Speech_Generation.ipynb@@ -52,11 +52,7 @@},"source": ["%%capture\n",- "!pip install git+https://github.com/neuml/txtai#egg=txtai[pipeline] onnxruntime-gpu librosa",- "\n",- "# Install NLTK\n",- "import nltk\n",- "nltk.download('averaged_perceptron_tagger_eng')"+ "!pip install git+https://github.com/neuml/txtai#egg=txtai[pipeline] onnxruntime-gpu librosa"],"execution_count": 1,"outputs": []diff --git a/examples/52_Build_RAG_pipelines_with_txtai.ipynb b/examples/52_Build_RAG_pipelines_with_txtai.ipynbindex bbb6f4b4..723a3f6b 100644--- a/examples/52_Build_RAG_pipelines_with_txtai.ipynb+++ b/examples/52_Build_RAG_pipelines_with_txtai.ipynb@@ -63,7 +63,7 @@"\n","# Install NLTK\n","import nltk\n",- "nltk.download('punkt_tab')"+ "nltk.download('punkt')"]},{diff --git a/setup.py b/setup.pyindex 74e0bd21..230559e2 100644--- a/setup.py+++ b/setup.py@@ -55,7 +55,7 @@ extras["model"] = ["onnx>=1.11.0", "onnxruntime>=1.11.0"]extras["pipeline-audio"] = ["onnx>=1.11.0", "onnxruntime>=1.11.0", "soundfile>=0.10.3.post1", "scipy>=1.4.1", "ttstokenizer>=1.0.0"]-extras["pipeline-data"] = ["beautifulsoup4>=4.9.3", "nltk>=3.8.2", "pandas>=1.1.0", "tika>=1.24"]+extras["pipeline-data"] = ["beautifulsoup4>=4.9.3", "nltk>=3.5", "pandas>=1.1.0", "tika>=1.24"]extras["pipeline-image"] = ["imagehash>=4.2.1", "pillow>=7.1.2", "timm>=0.4.12"]