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 hashes)