livekit-plugins-nltk 0.7.3__py3-none-any.whl → 1.0.0.dev4__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.
@@ -19,9 +19,8 @@ from .version import __version__
19
19
  __all__ = ["SentenceTokenizer", "__version__"]
20
20
 
21
21
 
22
- from livekit.agents import Plugin
23
-
24
22
  import nltk # type: ignore
23
+ from livekit.agents import Plugin
25
24
 
26
25
  from .log import logger
27
26
 
@@ -4,9 +4,8 @@ import dataclasses
4
4
  import functools
5
5
  from dataclasses import dataclass
6
6
 
7
- from livekit import agents
8
-
9
7
  import nltk # type: ignore
8
+ from livekit import agents
10
9
 
11
10
  # nltk is using the punkt tokenizer
12
11
  # https://www.nltk.org/_modules/nltk/tokenize/punkt.html
@@ -61,9 +60,7 @@ class SentenceTokenizer(agents.tokenize.SentenceTokenizer):
61
60
  def stream(self, *, language: str | None = None) -> agents.tokenize.SentenceStream:
62
61
  config = self._sanitize_options(language=language)
63
62
  return agents.tokenize.BufferedSentenceStream(
64
- tokenizer=functools.partial(
65
- nltk.tokenize.sent_tokenize, language=config.language
66
- ),
63
+ tokenizer=functools.partial(nltk.tokenize.sent_tokenize, language=config.language),
67
64
  min_token_len=self._config.min_sentence_len,
68
65
  min_ctx_len=self._config.stream_context_len,
69
66
  )
@@ -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.3"
15
+ __version__ = "1.0.0.dev4"
@@ -1,25 +1,24 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: livekit-plugins-nltk
3
- Version: 0.7.3
3
+ Version: 1.0.0.dev4
4
4
  Summary: Agent Framework plugin for NLTK-based text processing.
5
- Home-page: https://github.com/livekit/agents
6
- License: Apache-2.0
7
5
  Project-URL: Documentation, https://docs.livekit.io
8
6
  Project-URL: Website, https://livekit.io/
9
7
  Project-URL: Source, https://github.com/livekit/agents
10
- Keywords: webrtc,realtime,audio,video,livekit
8
+ Author-email: LiveKit <support@livekit.io>
9
+ License-Expression: Apache-2.0
10
+ Keywords: audio,livekit,realtime,video,webrtc
11
11
  Classifier: Intended Audience :: Developers
12
12
  Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python :: 3 :: Only
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
13
16
  Classifier: Topic :: Multimedia :: Sound/Audio
14
17
  Classifier: Topic :: Multimedia :: Video
15
18
  Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
- Classifier: Programming Language :: Python :: 3.9
17
- Classifier: Programming Language :: Python :: 3.10
18
- Classifier: Programming Language :: Python :: 3 :: Only
19
19
  Requires-Python: >=3.9.0
20
+ Requires-Dist: livekit-agents>=1.0.0.dev4
20
21
  Description-Content-Type: text/markdown
21
- Requires-Dist: livekit-agents>=0.11
22
- Requires-Dist: nltk<4,>=3.9.1
23
22
 
24
23
  # LiveKit Plugins NLTK
25
24
 
@@ -0,0 +1,8 @@
1
+ livekit/plugins/nltk/__init__.py,sha256=OGRJV1ZW2cjo7RO5xDbc_mjY7g-pg3PldHMsLvHb6Go,1294
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=aJqwXWpa-phmdtD3cBZ3TqB4iLOU3dCeVBOFNnL3riA,2139
5
+ livekit/plugins/nltk/version.py,sha256=koM_bT4QbztrKQ60Gjg7V4oe99CuxgGcpuUtWMOEKqU,605
6
+ livekit_plugins_nltk-1.0.0.dev4.dist-info/METADATA,sha256=rXuAHlsd7gm36fRPkVacU9kLrPua3xPalYMQezgeC40,1143
7
+ livekit_plugins_nltk-1.0.0.dev4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
8
+ livekit_plugins_nltk-1.0.0.dev4.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
@@ -1,9 +0,0 @@
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 +0,0 @@
1
- livekit