aboutsummaryrefslogtreecommitdiff
path: root/srchr/src/corpus.rs
diff options
context:
space:
mode:
Diffstat (limited to 'srchr/src/corpus.rs')
-rw-r--r--srchr/src/corpus.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/srchr/src/corpus.rs b/srchr/src/corpus.rs
index 4428bc6..7216b1a 100644
--- a/srchr/src/corpus.rs
+++ b/srchr/src/corpus.rs
@@ -68,7 +68,7 @@ impl Corpus {
if let Some(c) = current_char {
if let Some(lc) = last_char {
if let Some(llc) = last_last_char {
- if llc != c {
+ if llc != lc && lc != c && llc != c {
skipgram_count[pair_to_index(llc, c)] += 1;
skipgram_count[pair_to_index(c, llc)] += 1;
}