stream2sentence 0.3.1__tar.gz → 0.3.2__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.
Files changed (20) hide show
  1. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/PKG-INFO +5 -5
  2. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/README.md +1 -1
  3. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/setup.py +4 -4
  4. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence/__init__.py +1 -0
  5. stream2sentence-0.3.2/stream2sentence/stream2sentence.py +662 -0
  6. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence/stream2sentence_time_based.py +18 -7
  7. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence.egg-info/PKG-INFO +5 -5
  8. stream2sentence-0.3.2/stream2sentence.egg-info/requires.txt +3 -0
  9. stream2sentence-0.3.1/stream2sentence/stream2sentence.py +0 -523
  10. stream2sentence-0.3.1/stream2sentence.egg-info/requires.txt +0 -3
  11. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/setup.cfg +0 -0
  12. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence/avoid_pause_words.py +0 -0
  13. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence/delimiter_ignore_prefixes.py +0 -0
  14. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence.egg-info/SOURCES.txt +0 -0
  15. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence.egg-info/dependency_links.txt +0 -0
  16. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/stream2sentence.egg-info/top_level.txt +0 -0
  17. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/tests/test_stream2sentence.py +0 -0
  18. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/tests/test_stream_from_llm.py +0 -0
  19. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/tests/test_stream_from_llm_old_api.py +0 -0
  20. {stream2sentence-0.3.1 → stream2sentence-0.3.2}/tests/test_time_based.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stream2sentence
3
- Version: 0.3.1
3
+ Version: 0.3.2
4
4
  Summary: Real-time processing and delivery of sentences from a continuous stream of characters or text chunks.
5
5
  Home-page: https://github.com/KoljaB/stream2sentence
6
6
  Author: Kolja Beigel
@@ -11,9 +11,9 @@ Classifier: License :: OSI Approved :: MIT License
11
11
  Classifier: Operating System :: OS Independent
12
12
  Requires-Python: >=3.6
13
13
  Description-Content-Type: text/markdown
14
- Requires-Dist: nltk==3.9.1
15
- Requires-Dist: emoji==2.14.1
16
- Requires-Dist: stanza==1.10.1
14
+ Requires-Dist: nltk==3.9.4
15
+ Requires-Dist: emoji==2.15.0
16
+ Requires-Dist: stanza==1.11.1
17
17
  Dynamic: author
18
18
  Dynamic: author-email
19
19
  Dynamic: classifier
@@ -188,7 +188,7 @@ available output (full sentence, longest fragment, or any available buffer, in t
188
188
  where what has been output would be slower than the input tps target. If LLM is more than
189
189
  two full sentences ahead of the target it will output a sentence even if it's ahead of the "deadline"
190
190
 
191
- `from stream2sentence.stream2sentence_time_based import generate_sentences`
191
+ `from stream2sentence.stream2sentence_time_based import generate_sentences_time_based`
192
192
 
193
193
  ### Parameters
194
194
  - `generator (Iterator[str])`
@@ -161,7 +161,7 @@ available output (full sentence, longest fragment, or any available buffer, in t
161
161
  where what has been output would be slower than the input tps target. If LLM is more than
162
162
  two full sentences ahead of the target it will output a sentence even if it's ahead of the "deadline"
163
163
 
164
- `from stream2sentence.stream2sentence_time_based import generate_sentences`
164
+ `from stream2sentence.stream2sentence_time_based import generate_sentences_time_based`
165
165
 
166
166
  ### Parameters
167
167
  - `generator (Iterator[str])`
@@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
5
5
 
6
6
  setuptools.setup(
7
7
  name="stream2sentence",
8
- version="0.3.1",
8
+ version="0.3.2",
9
9
  author="Kolja Beigel",
10
10
  author_email="kolja.beigel@web.de",
11
11
  description="Real-time processing and delivery of sentences from a continuous stream of characters or text chunks.",
@@ -20,9 +20,9 @@ setuptools.setup(
20
20
  ],
21
21
  python_requires='>=3.6',
22
22
  install_requires=[
23
- 'nltk==3.9.1',
24
- 'emoji==2.14.1',
25
- 'stanza==1.10.1'
23
+ 'nltk==3.9.4',
24
+ 'emoji==2.15.0',
25
+ 'stanza==1.11.1'
26
26
  ],
27
27
  keywords='realtime, text streaming, stream, sentence, sentence detection, sentence generation, tts, speech synthesis, nltk, text analysis, audio processing, boundary detection, sentence boundary detection'
28
28
  )
@@ -2,6 +2,7 @@ from .stream2sentence import (
2
2
  generate_sentences,
3
3
  generate_sentences_async,
4
4
  init_tokenizer,
5
+ SentenceSplitter,
5
6
  )
6
7
 
7
8
  from .stream2sentence_time_based import (