livekit-plugins-nltk 0.7.4__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.
- livekit/plugins/nltk/__init__.py +1 -2
- livekit/plugins/nltk/sentence_tokenizer.py +2 -5
- livekit/plugins/nltk/version.py +1 -1
- {livekit_plugins_nltk-0.7.4.dist-info → livekit_plugins_nltk-1.0.0.dev4.dist-info}/METADATA +9 -20
- livekit_plugins_nltk-1.0.0.dev4.dist-info/RECORD +8 -0
- {livekit_plugins_nltk-0.7.4.dist-info → livekit_plugins_nltk-1.0.0.dev4.dist-info}/WHEEL +1 -2
- livekit_plugins_nltk-0.7.4.dist-info/RECORD +0 -9
- livekit_plugins_nltk-0.7.4.dist-info/top_level.txt +0 -1
livekit/plugins/nltk/__init__.py
CHANGED
@@ -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
|
)
|
livekit/plugins/nltk/version.py
CHANGED
@@ -1,35 +1,24 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.4
|
2
2
|
Name: livekit-plugins-nltk
|
3
|
-
Version: 0.
|
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
|
-
|
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<1.0.0,>=0.12.16
|
22
|
-
Requires-Dist: nltk<4,>=3.9.1
|
23
|
-
Dynamic: classifier
|
24
|
-
Dynamic: description
|
25
|
-
Dynamic: description-content-type
|
26
|
-
Dynamic: home-page
|
27
|
-
Dynamic: keywords
|
28
|
-
Dynamic: license
|
29
|
-
Dynamic: project-url
|
30
|
-
Dynamic: requires-dist
|
31
|
-
Dynamic: requires-python
|
32
|
-
Dynamic: summary
|
33
22
|
|
34
23
|
# LiveKit Plugins NLTK
|
35
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,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=UblqPqnLJ1iqLGElaqb_uNunR14phGN2btPpCGRFrYk,600
|
6
|
-
livekit_plugins_nltk-0.7.4.dist-info/METADATA,sha256=bhBYcLgCPdl3bK-lypiR7oTav84m7cC5lptyMWN7Z1I,1378
|
7
|
-
livekit_plugins_nltk-0.7.4.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
8
|
-
livekit_plugins_nltk-0.7.4.dist-info/top_level.txt,sha256=OoDok3xUmXbZRvOrfvvXB-Juu4DX79dlq188E19YHoo,8
|
9
|
-
livekit_plugins_nltk-0.7.4.dist-info/RECORD,,
|
@@ -1 +0,0 @@
|
|
1
|
-
livekit
|