diff --git a/JavaTriesWithFrequencies.m b/JavaTriesWithFrequencies.m index a61ac81b..6deb6744 100644 --- a/JavaTriesWithFrequencies.m +++ b/JavaTriesWithFrequencies.m @@ -252,6 +252,8 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc. Clear[JavaTrieShrink] JavaTrieShrink[jTr_?JavaObjectQ, sep_String: ""] := TrieFunctions`shrink[jTr, sep]; +JavaTrieShrink[jTr_?JavaObjectQ, sep_String, th_?NumberQ ] := TrieFunctions`shrinkByThreshold[jTr, sep, th]; + Clear[JavaTrieToJSON] JavaTrieToJSON[jTr_?JavaObjectQ] := ImportString[jTr@toJSON[], "JSON"];