Package for a challenge.
Project description
##### Module for returning word pairs from text strings
##### Example:
```python
>>> from trw_text_string import WordPairCounter
>>> string_example = """Hello, I like nuts. Do you like nuts? No? Are you sure?
Why don't you like nuts? Are you nuts? I like you"""
>>> text_string_object = WordPairCounter(string_example)
>>> text_string_object.get_word_pairs()
are you: 2
like nuts: 3
you like: 3
i like: 2
```
##### Installation:
<p> In order to install trw_text_string: </p>
```python
pip install trw_text_string
```
##### Example:
```python
>>> from trw_text_string import WordPairCounter
>>> string_example = """Hello, I like nuts. Do you like nuts? No? Are you sure?
Why don't you like nuts? Are you nuts? I like you"""
>>> text_string_object = WordPairCounter(string_example)
>>> text_string_object.get_word_pairs()
are you: 2
like nuts: 3
you like: 3
i like: 2
```
##### Installation:
<p> In order to install trw_text_string: </p>
```python
pip install trw_text_string
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trw_text_string-0.0.5.tar.gz
(3.2 kB
view details)
File details
Details for the file trw_text_string-0.0.5.tar.gz.
File metadata
- Download URL: trw_text_string-0.0.5.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2673ea6c64d53b739849a4d54476d770656856f696c0142811e0d8b3787c4511
|
|
| MD5 |
c0fec4f9c6cae6f702e0b25bd34a7900
|
|
| BLAKE2b-256 |
15d5e43261e906ff91c37dfc9452173a9c93105f5d6c833d73fd2ab19979394c
|