From a37990f8df31848dffd26fe2972e2350750929d3 Mon Sep 17 00:00:00 2001 From: Michael Meade <47438130+Michael-Meade@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:00:06 -0400 Subject: [PATCH] Update README.rdoc --- README.rdoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rdoc b/README.rdoc index ccb87f2..1ef9e6f 100644 --- a/README.rdoc +++ b/README.rdoc @@ -19,12 +19,12 @@ A single N-Gram n_gram = NGram.new(data, :n => 2) # To see the N-Gram of the collection - ngram.ngrams_of_all_data + n_gram.ngrams_of_all_data #=> {2 => {'here is' => 2 etc...}} # To see the N-Grams of individual inputs # If we want the N-Gram of data[0] - ngram.ngrams_of_inputs[0] + n_gram.ngrams_of_inputs[0] #=> {2 => {'here is' => 1 etc...}} Multiple N-Grams @@ -37,12 +37,12 @@ Multiple N-Grams n_gram = NGram.new(data, :n => [2,3]) # To see the N-Gram of the collection - ngram.ngrams_of_all_data + n_gram.ngrams_of_all_data #=> {2 => {'here is' => 2 etc...}, 3 => {'here is some' => 1 etc...}} # To see the N-Grams of individual inputs # If we want the N-Gram of data[0] - ngram.ngrams_of_inputs[0] + n_gram.ngrams_of_inputs[0] #=> {2 => {'here is' => 1 etc...}, 3 => {'here is some' => 1 etc...}} == Copyright