diff --git a/JavaTriesWithFrequencies.m b/JavaTriesWithFrequencies.m index 5568d6f1..13bc3ce3 100644 --- a/JavaTriesWithFrequencies.m +++ b/JavaTriesWithFrequencies.m @@ -363,6 +363,11 @@ Mathematica is (C) Copyright 1988-2017 Wolfram Research, Inc. ]; Clear[JavaTrieGetWords] +JavaTrieGetWords[jTr_?JavaObjectQ] := + Block[{res}, + res = JavaObjectToExpression /@ JavaObjectToExpression[TrieFunctions`getWords[jTr]]; + If[res === Null, {}, res] + ]; JavaTrieGetWords[jTr_?JavaObjectQ, sword : {_String ..}] := Block[{res}, res = JavaObjectToExpression /@