diff --git a/.changeset/funny-squids-help.md b/.changeset/funny-squids-help.md new file mode 100644 index 000000000..71c2ae0df --- /dev/null +++ b/.changeset/funny-squids-help.md @@ -0,0 +1,5 @@ +--- +"livekit-plugins-nltk": patch +--- + +Revert "nltk: fix broken punkt download" diff --git a/.changeset/itchy-ligers-exist.md b/.changeset/itchy-ligers-exist.md deleted file mode 100644 index 0ff55363e..000000000 --- a/.changeset/itchy-ligers-exist.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-plugins-nltk": patch ---- - -nltk: fix broken punkt download diff --git a/livekit-plugins/livekit-plugins-nltk/livekit/plugins/nltk/__init__.py b/livekit-plugins/livekit-plugins-nltk/livekit/plugins/nltk/__init__.py index 16ce6fc35..3f0e48514 100644 --- a/livekit-plugins/livekit-plugins-nltk/livekit/plugins/nltk/__init__.py +++ b/livekit-plugins/livekit-plugins-nltk/livekit/plugins/nltk/__init__.py @@ -32,9 +32,9 @@ def __init__(self): def download_files(self): try: - _ = nltk.data.find("tokenizers/punkt_tab") + _ = nltk.data.find("tokenizers/punkt") except LookupError: - nltk.download("punkt_tab") + nltk.download("punkt") Plugin.register_plugin(NltkPlugin()) diff --git a/livekit-plugins/livekit-plugins-nltk/setup.py b/livekit-plugins/livekit-plugins-nltk/setup.py index 3f1307ba3..1d3dac863 100644 --- a/livekit-plugins/livekit-plugins-nltk/setup.py +++ b/livekit-plugins/livekit-plugins-nltk/setup.py @@ -46,7 +46,7 @@ license="Apache-2.0", packages=setuptools.find_namespace_packages(include=["livekit.*"]), python_requires=">=3.9.0", - install_requires=["livekit-agents>=0.8.0.dev0", "nltk >= 3.8.2, < 4"], + install_requires=["livekit-agents>=0.8.0.dev0", "nltk >= 3, < 4"], package_data={"livekit.plugins.nltk": ["py.typed"]}, project_urls={ "Documentation": "https://docs.livekit.io",