livekit-plugins-nltk 0.4.dev0__tar.gz → 0.5.dev0__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.4.dev0 → livekit_plugins_nltk-0.5.dev0}/PKG-INFO +3 -3
- livekit_plugins_nltk-0.5.dev0/livekit/plugins/nltk/log.py +3 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit/plugins/nltk/sentence_tokenizer.py +3 -2
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit/plugins/nltk/version.py +1 -1
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit_plugins_nltk.egg-info/PKG-INFO +3 -3
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit_plugins_nltk.egg-info/SOURCES.txt +1 -0
- livekit_plugins_nltk-0.5.dev0/livekit_plugins_nltk.egg-info/requires.txt +3 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/setup.py +2 -2
- livekit-plugins-nltk-0.4.dev0/livekit_plugins_nltk.egg-info/requires.txt +0 -3
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/README.md +0 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit/plugins/nltk/__init__.py +0 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit/plugins/nltk/py.typed +0 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit_plugins_nltk.egg-info/dependency_links.txt +0 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit_plugins_nltk.egg-info/top_level.txt +0 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/pyproject.toml +0 -0
- {livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-nltk
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.dev0
|
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,9 +18,9 @@ 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~=0.
|
21
|
+
Requires-Dist: livekit~=0.11
|
22
22
|
Requires-Dist: nltk<4,>=3
|
23
|
-
Requires-Dist: livekit-agents~=0.
|
23
|
+
Requires-Dist: livekit-agents~=0.6.dev0
|
24
24
|
|
25
25
|
# LiveKit Plugins NLTK
|
26
26
|
|
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|
2
2
|
|
3
3
|
import asyncio
|
4
4
|
import dataclasses
|
5
|
-
import logging
|
6
5
|
from dataclasses import dataclass
|
7
6
|
from typing import List, Optional
|
8
7
|
|
@@ -10,6 +9,8 @@ from livekit import agents
|
|
10
9
|
|
11
10
|
import nltk # type: ignore
|
12
11
|
|
12
|
+
from .log import logger
|
13
|
+
|
13
14
|
# nltk is using the punkt tokenizer
|
14
15
|
# https://www.nltk.org/_modules/nltk/tokenize/punkt.html
|
15
16
|
# this code is using a whitespace to concatenate small sentences together
|
@@ -89,7 +90,7 @@ class SentenceStream(agents.tokenize.SentenceStream):
|
|
89
90
|
|
90
91
|
def push_text(self, text: str) -> None:
|
91
92
|
if self._closed:
|
92
|
-
|
93
|
+
logger.error("Cannot push text to closed stream")
|
93
94
|
return
|
94
95
|
|
95
96
|
for char in text:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: livekit-plugins-nltk
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.5.dev0
|
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,9 +18,9 @@ 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~=0.
|
21
|
+
Requires-Dist: livekit~=0.11
|
22
22
|
Requires-Dist: nltk<4,>=3
|
23
|
-
Requires-Dist: livekit-agents~=0.
|
23
|
+
Requires-Dist: livekit-agents~=0.6.dev0
|
24
24
|
|
25
25
|
# LiveKit Plugins NLTK
|
26
26
|
|
@@ -47,9 +47,9 @@ setuptools.setup(
|
|
47
47
|
packages=setuptools.find_namespace_packages(include=["livekit.*"]),
|
48
48
|
python_requires=">=3.9.0",
|
49
49
|
install_requires=[
|
50
|
-
"livekit~=0.
|
50
|
+
"livekit~=0.11",
|
51
51
|
"nltk >= 3, < 4",
|
52
|
-
"livekit-agents~=0.
|
52
|
+
"livekit-agents~=0.6.dev0",
|
53
53
|
],
|
54
54
|
package_data={
|
55
55
|
"livekit.plugins.nltk": ["py.typed"],
|
File without changes
|
{livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit/plugins/nltk/__init__.py
RENAMED
File without changes
|
{livekit-plugins-nltk-0.4.dev0 → livekit_plugins_nltk-0.5.dev0}/livekit/plugins/nltk/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|