Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mshenfield/phrases
Generate all ordered subsets of words in a sentence
https://github.com/mshenfield/phrases
Last synced: 12 days ago
JSON representation
Generate all ordered subsets of words in a sentence
- Host: GitHub
- URL: https://github.com/mshenfield/phrases
- Owner: mshenfield
- Created: 2015-10-23T21:12:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-23T21:12:41.000Z (about 9 years ago)
- Last Synced: 2024-11-07T22:51:28.534Z (2 months ago)
- Language: Python
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Phrases
Generate all ordered subsets of words in a sentence.## Usage
```python
>>> from phrases import generate_phrases
>>> list(generate_phrases("The quick brown fox"))
[
"The",
"The quick",
"The quick brown",
"The quick brown fox",
"quick",
"quick brown",
"quick brown fox",
"brown",
"brown fox",
"fox"
]
```
## Installation### Using git
`git clone https://github.com/mshenfield/phrases.git``cd phrases`
`python setup.py install`
### Using pip
_TODO_## License
[MIT License](http://opensource.org/licenses/MIT)