Skip to content

Commit

Permalink
Better explanations -- simpler initialization code and a link to unit…
Browse files Browse the repository at this point in the history
… tests file.
  • Loading branch information
antononcube committed Jan 19, 2017
1 parent 2475506 commit 1d7dd42
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions JavaTriesWithFrequencies.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,13 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc.
Here is the Mathematica code for Step 2:
AppendTo[$Path, "/Users/antonov/MathFiles/MathematicaForPrediction"];
Needs["JavaTriesWithFrequencies`"]
$JavaTriesWithFrequenciesPath =
"/Users/antonov/MathFiles/MathematicaForPrediction/Java/TriesWithFrequencies";
Needs["JLink`"];
AddToClassPath[$JavaTriesWithFrequenciesPath];
ReinstallJava[JVMArguments -> "-Xmx2g"];
LoadJavaClass["java.util.Collections"];
LoadJavaClass["java.util.Arrays"];
LoadJavaClass["Trie"];
LoadJavaClass["TrieFunctions"];
JavaTrieInstall[$JavaTriesWithFrequenciesPath]
Several examples of building tries and operations over them follow.
Expand Down Expand Up @@ -109,6 +106,10 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc.
"children" -> {}}, {"value" -> 1., "key" -> "ers",
"children" -> {}}}}}}}}}}}}}} *)
For more usage examples see the corresponding unit tests file:
https://github.com/antononcube/MathematicaForPrediction/blob/master/UnitTests/JavaTriesWithFrequencies-Unit-Tests.wlt
Anton Antonov
Windermere, FL
January 2017
Expand Down

0 comments on commit 1d7dd42

Please sign in to comment.