added /sentance/ chunking

serve
Avril 4 years ago
parent 633466b901
commit 2f9f4dbb3a
Signed by: flanchan
GPG Key ID: 284488987C31F630

2
Cargo.lock generated

@ -639,7 +639,7 @@ dependencies = [
[[package]] [[package]]
name = "markov" name = "markov"
version = "0.5.4" version = "0.6.0"
dependencies = [ dependencies = [
"async-compression", "async-compression",
"cfg-if 1.0.0", "cfg-if 1.0.0",

@ -1,6 +1,6 @@
[package] [package]
name = "markov" name = "markov"
version = "0.6" version = "0.6.0"
description = "Generate string of text from Markov chain fed by stdin" description = "Generate string of text from Markov chain fed by stdin"
authors = ["Avril <flanchan@cumallover.me>"] authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018" edition = "2018"

@ -1 +0,0 @@
avril@eientei.880:1602382403

@ -119,12 +119,12 @@ impl Filter
self.len() == 0 self.len() == 0
} }
pub fn iter(&self) -> impl Iterator<Item=char> + '_ pub fn iter(&self) -> FilterKeyIter<'_> //impl Iterator<Item=char> + '_
{ {
self.0.iter() //self.0.iter()
.copied() // .copied()
.map(|(x, _)| x) // .map(|(x, _)| x)
//FilterKeyIter(self.0.iter(), self.0.len()) FilterKeyIter(self.0.iter(), self.0.len())
} }
/// Should this character be filtered? /// Should this character be filtered?

Loading…
Cancel
Save