From b95e4c9d9a10e533546f57c2e31df2bfb0d995ed Mon Sep 17 00:00:00 2001 From: Winston Jodjana <winj@cs.washington.edu> Date: Tue, 10 May 2022 21:00:17 -0700 Subject: [PATCH] Quick update about using BST in uMessage --- src/main/java/chat/uMessage.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/chat/uMessage.java b/src/main/java/chat/uMessage.java index a2f20bb..06f9f03 100644 --- a/src/main/java/chat/uMessage.java +++ b/src/main/java/chat/uMessage.java @@ -19,10 +19,11 @@ import java.util.function.Supplier; public class uMessage { private static final int N = 3; private static final String CORPUS = "corpus/eggs.txt"; + // Use .binarySearchTreeConstructor(); if you want to test things since it is an implementation we provide and is guaranteed to work private static final Supplier<Dictionary<NGram, Dictionary<AlphabeticString, Integer>>> NEW_OUTER = NGramTester - .trieConstructor(NGram.class); + .binarySearchTreeConstructor(); private static final Supplier<Dictionary<AlphabeticString, Integer>> NEW_INNER = NGramTester - .trieConstructor(AlphabeticString.class); + .binarySearchTreeConstructor(); /* * -- GitLab