delete crap
This commit is contained in:
parent
67166b8ad1
commit
2c78b4cf6d
1 changed files with 0 additions and 2 deletions
|
|
@ -16,8 +16,6 @@ fn main() {
|
||||||
let combined = rltk::util::bigrams(rltk::lm::preprocessing::pad_both_ends(text[0].iter(),2));
|
let combined = rltk::util::bigrams(rltk::lm::preprocessing::pad_both_ends(text[0].iter(),2));
|
||||||
print(combined);
|
print(combined);
|
||||||
|
|
||||||
// padded_bigrams = list(pad_both_ends(text[0], n=2))
|
|
||||||
// >>> list(everygrams(padded_bigrams, max_len=2))
|
|
||||||
println!("\neverygrams:");
|
println!("\neverygrams:");
|
||||||
let padded_bigrams: Vec<&&str> = rltk::lm::preprocessing::pad_both_ends(text[0].iter(),2).collect();
|
let padded_bigrams: Vec<&&str> = rltk::lm::preprocessing::pad_both_ends(text[0].iter(),2).collect();
|
||||||
println!("padded {:?}",padded_bigrams);
|
println!("padded {:?}",padded_bigrams);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue