fast-sentence-segment-0.1.9
توضیحات
Fast and Efficient Sentence Segmentation
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fast-sentence-segment-0.1.9 |
| نام | fast-sentence-segment |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | ['Craig Trim'] |
| ایمیل نگهدارنده | ['craigtrim@gmail.com'] |
| نویسنده | Craig Trim |
| ایمیل نویسنده | craigtrim@gmail.com |
| آدرس صفحه اصلی | https://github.com/craigtrim/fast-sentence-segment |
| آدرس اینترنتی | https://pypi.org/project/fast-sentence-segment/ |
| مجوز | None |
# Fast Sentence Segmentation (fast-sentence-segment)
Fast and Efficient Sentence Segmentation
Usage
```python
from fast_sentence_segment import segment_text
results = segment_text(
'here is a dr. who says something. and then again, what else? i dont know. Do you?')
assert results == [
[
'here is a dr. who says something.',
'and then again, what else?',
'i dont know.',
'Do you?'
]
]
```
Why use a double-scripted list?
The segementation process will segment into paragraphs and sentences. A paragraph is composed of 1..* sentences, hence each list of lists is equivalent to a paragraph.
This usage
```python
results = segment_text(input_text, flatten=True)
```
Will return a list of strings, regardless of paragraph delimitation.
نیازمندی
| مقدار | نام |
|---|---|
| - | baseblock |
| ==3.5.0 | spacy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8.5,<4.0.0 | Python |
نحوه نصب
نصب پکیج whl fast-sentence-segment-0.1.9:
pip install fast-sentence-segment-0.1.9.whl
نصب پکیج tar.gz fast-sentence-segment-0.1.9:
pip install fast-sentence-segment-0.1.9.tar.gz