livekit-plugins-nltk 0.4.dev0__py3-none-any.whl → 0.5.dev0__py3-none-any.whl

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.
@@ -0,0 +1,3 @@
1
+ import logging
2
+
3
+ logger = logging.getLogger("livekit.plugins.nltk")
@@ -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
- logging.error("Cannot push text to closed stream")
93
+ logger.error("Cannot push text to closed stream")
93
94
  return
94
95
 
95
96
  for char in text:
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "0.4.dev0"
15
+ __version__ = "0.5.dev0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-plugins-nltk
3
- Version: 0.4.dev0
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.9
21
+ Requires-Dist: livekit ~=0.11
22
22
  Requires-Dist: nltk <4,>=3
23
- Requires-Dist: livekit-agents ~=0.5.dev0
23
+ Requires-Dist: livekit-agents ~=0.6.dev0
24
24
 
25
25
  # LiveKit Plugins NLTK
26
26
 
@@ -0,0 +1,9 @@
1
+ livekit/plugins/nltk/__init__.py,sha256=HGbaUwK-0cU-SbvbEl2WSQKwNrkHn8XuO-86Hiy0cy4,1134
2
+ livekit/plugins/nltk/log.py,sha256=12Ta0eunqKM3KyIlyzp2QFyO_Y-PBLAtyjEWDiuJdKk,67
3
+ livekit/plugins/nltk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ livekit/plugins/nltk/sentence_tokenizer.py,sha256=vhdWqMmwJSiqJsK9WibNHkWChiXyn13Yk4jOmfcLEM8,4570
5
+ livekit/plugins/nltk/version.py,sha256=h2gCxcJSMvCrVP7h14ON6HaghqLCkbl3--HZKEopR_8,603
6
+ livekit_plugins_nltk-0.5.dev0.dist-info/METADATA,sha256=75vfOXu6Xgba899ixTspRIE8Fi3sG0EfRoR2C9cNrG4,1188
7
+ livekit_plugins_nltk-0.5.dev0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
8
+ livekit_plugins_nltk-0.5.dev0.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
9
+ livekit_plugins_nltk-0.5.dev0.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- livekit/plugins/nltk/__init__.py,sha256=HGbaUwK-0cU-SbvbEl2WSQKwNrkHn8XuO-86Hiy0cy4,1134
2
- livekit/plugins/nltk/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- livekit/plugins/nltk/sentence_tokenizer.py,sha256=1Oy0pmvCiD_vHepi-Vp6lEKEOFS1FdHjO9bvBX8dPCk,4561
4
- livekit/plugins/nltk/version.py,sha256=OwSbVTqWUJKy9w2Jbh1MIrp5cHPvEYsLXDhRGwdZKso,603
5
- livekit_plugins_nltk-0.4.dev0.dist-info/METADATA,sha256=bamt5z3nOv55hZwNAeMgkG1HYNazCItEEC-zr7XDfqE,1187
6
- livekit_plugins_nltk-0.4.dev0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- livekit_plugins_nltk-0.4.dev0.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
8
- livekit_plugins_nltk-0.4.dev0.dist-info/RECORD,,