Chinese Sentence Generator
Project description
# ChineseMarkov
Base on Markov model and [jieba](https://github.com/fxsjy/jieba) chinese text segmentation
Inspired by [hrs/markov-sentence-generator](https://github.com/hrs/markov-sentence-generator)
## Usage
```python
import chineseMarkov
gen = chineseMarkov.MarkovGenerator('data/sample.txt', length=2)
gen.get_sentence()
```
Base on Markov model and [jieba](https://github.com/fxsjy/jieba) chinese text segmentation
Inspired by [hrs/markov-sentence-generator](https://github.com/hrs/markov-sentence-generator)
## Usage
```python
import chineseMarkov
gen = chineseMarkov.MarkovGenerator('data/sample.txt', length=2)
gen.get_sentence()
```
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
chineseMarkov-0.1.3.tar.gz
(15.3 kB
view hashes)