livekit-plugins-nltk 0.7.0.dev7__py3-none-any.whl → 0.7.3__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.
@@ -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/punkt")
35
+ _ = nltk.data.find("tokenizers/punkt_tab")
34
36
  except LookupError:
35
- nltk.download("punkt")
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
@@ -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.7.0-dev.7"
15
+ __version__ = "0.7.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-plugins-nltk
3
- Version: 0.7.0.dev7
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.8.0.dev0
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
 
@@ -0,0 +1,9 @@
1
+ livekit/plugins/nltk/__init__.py,sha256=CBAZJKoRyp7wTV-u7Qp1YA8dHLddRDCgJ6eVlhJiPLw,1295
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=IHYttpaNiGdMKUPRGWCz4zIFbJAK-1AXkoG5uNhBIR4,2170
5
+ livekit/plugins/nltk/version.py,sha256=yJeG0VwiekDJAk7GHcIAe43ebagJgloe-ZsqEGZnqzE,600
6
+ livekit_plugins_nltk-0.7.3.dist-info/METADATA,sha256=GZ6zm5PQEsrj2pg9svxamEbhAiZ-VKFHdjWKtj5uULs,1153
7
+ livekit_plugins_nltk-0.7.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
8
+ livekit_plugins_nltk-0.7.3.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
9
+ livekit_plugins_nltk-0.7.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (71.1.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- livekit/plugins/nltk/__init__.py,sha256=ustr0uS4vVfvEnH1lR3cLKQZBEPHoqIes5cA-0r5I-c,1085
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=IHYttpaNiGdMKUPRGWCz4zIFbJAK-1AXkoG5uNhBIR4,2170
5
- livekit/plugins/nltk/version.py,sha256=z7YbosRr6jiTE2IIvHSRWSl4-yyS21CiHE5WD547wJo,606
6
- livekit_plugins_nltk-0.7.0.dev7.dist-info/METADATA,sha256=E0mTFQnvfDGEQLdwigaGpftI6tsZjrMkEUpDaaAVwHY,1162
7
- livekit_plugins_nltk-0.7.0.dev7.dist-info/WHEEL,sha256=Wyh-_nZ0DJYolHNn1_hMa4lM7uDedD_RGVwbmTjyItk,91
8
- livekit_plugins_nltk-0.7.0.dev7.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
9
- livekit_plugins_nltk-0.7.0.dev7.dist-info/RECORD,,