From 5f65a0816dcb4845da9a4e18b18ffb8dc6014ac0 Mon Sep 17 00:00:00 2001 From: Anton Antonov Date: Thu, 26 Oct 2017 10:16:16 -0400 Subject: [PATCH] Implemented JavaTrieGetWords[jTr]. --- JavaTriesWithFrequencies.m | 5 +++++ 1 file changed, 5 insertions(+) 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 /@