livekit-plugins-nltk 0.7.0.dev7__tar.gz → 0.7.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/PKG-INFO +3 -3
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/__init__.py +14 -3
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/version.py +1 -1
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit_plugins_nltk.egg-info/PKG-INFO +3 -3
- livekit_plugins_nltk-0.7.3/livekit_plugins_nltk.egg-info/requires.txt +2 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/setup.py +1 -1
- livekit_plugins_nltk-0.7.0.dev7/livekit_plugins_nltk.egg-info/requires.txt +0 -2
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/README.md +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/log.py +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/py.typed +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/sentence_tokenizer.py +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit_plugins_nltk.egg-info/SOURCES.txt +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit_plugins_nltk.egg-info/dependency_links.txt +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit_plugins_nltk.egg-info/top_level.txt +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/pyproject.toml +0 -0
- {livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-nltk
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.3
|
4
4
|
Summary: Agent Framework plugin for NLTK-based text processing.
|
5
5
|
Home-page: https://github.com/livekit/agents
|
6
6
|
License: Apache-2.0
|
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: 3.10
|
|
18
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
19
19
|
Requires-Python: >=3.9.0
|
20
20
|
Description-Content-Type: text/markdown
|
21
|
-
Requires-Dist: livekit-agents>=0.
|
22
|
-
Requires-Dist: nltk<4,>=3
|
21
|
+
Requires-Dist: livekit-agents>=0.11
|
22
|
+
Requires-Dist: nltk<4,>=3.9.1
|
23
23
|
|
24
24
|
# LiveKit Plugins NLTK
|
25
25
|
|
{livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/__init__.py
RENAMED
@@ -23,16 +23,27 @@ from livekit.agents import Plugin
|
|
23
23
|
|
24
24
|
import nltk # type: ignore
|
25
25
|
|
26
|
+
from .log import logger
|
27
|
+
|
26
28
|
|
27
29
|
class NltkPlugin(Plugin):
|
28
30
|
def __init__(self):
|
29
|
-
super().__init__(__name__, __version__, __package__)
|
31
|
+
super().__init__(__name__, __version__, __package__, logger)
|
30
32
|
|
31
33
|
def download_files(self):
|
32
34
|
try:
|
33
|
-
_ = nltk.data.find("tokenizers/
|
35
|
+
_ = nltk.data.find("tokenizers/punkt_tab")
|
34
36
|
except LookupError:
|
35
|
-
nltk.download("
|
37
|
+
nltk.download("punkt_tab")
|
36
38
|
|
37
39
|
|
38
40
|
Plugin.register_plugin(NltkPlugin())
|
41
|
+
|
42
|
+
# Cleanup docs of unexported modules
|
43
|
+
_module = dir()
|
44
|
+
NOT_IN_ALL = [m for m in _module if m not in __all__]
|
45
|
+
|
46
|
+
__pdoc__ = {}
|
47
|
+
|
48
|
+
for n in NOT_IN_ALL:
|
49
|
+
__pdoc__[n] = False
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-nltk
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.3
|
4
4
|
Summary: Agent Framework plugin for NLTK-based text processing.
|
5
5
|
Home-page: https://github.com/livekit/agents
|
6
6
|
License: Apache-2.0
|
@@ -18,8 +18,8 @@ Classifier: Programming Language :: Python :: 3.10
|
|
18
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
19
19
|
Requires-Python: >=3.9.0
|
20
20
|
Description-Content-Type: text/markdown
|
21
|
-
Requires-Dist: livekit-agents>=0.
|
22
|
-
Requires-Dist: nltk<4,>=3
|
21
|
+
Requires-Dist: livekit-agents>=0.11
|
22
|
+
Requires-Dist: nltk<4,>=3.9.1
|
23
23
|
|
24
24
|
# LiveKit Plugins NLTK
|
25
25
|
|
@@ -46,7 +46,7 @@ setuptools.setup(
|
|
46
46
|
license="Apache-2.0",
|
47
47
|
packages=setuptools.find_namespace_packages(include=["livekit.*"]),
|
48
48
|
python_requires=">=3.9.0",
|
49
|
-
install_requires=["livekit-agents>=0.
|
49
|
+
install_requires=["livekit-agents>=0.11", "nltk >= 3.9.1, < 4"],
|
50
50
|
package_data={"livekit.plugins.nltk": ["py.typed"]},
|
51
51
|
project_urls={
|
52
52
|
"Documentation": "https://docs.livekit.io",
|
File without changes
|
File without changes
|
{livekit_plugins_nltk-0.7.0.dev7 → livekit_plugins_nltk-0.7.3}/livekit/plugins/nltk/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|