Skip to content

Commit

Permalink
Added defition for shrinking with a specified threshold.
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Jan 29, 2017
1 parent 9f086ff commit 884f80e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions JavaTriesWithFrequencies.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"];

Expand Down

0 comments on commit 884f80e

Please sign in to comment.