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 details)
File details
Details for the file chineseMarkov-0.1.3.tar.gz
.
File metadata
- Download URL: chineseMarkov-0.1.3.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b79562d271823df207bf45028a717c7c4509667845571bb59395ddf7a3c2cd5f |
|
MD5 | 451a583989826c3570adc62b59a494e4 |
|
BLAKE2b-256 | b1ffb960c74e4cbf37e7c620bc55a31642a058a22111765c75a8584c18a8edd9 |