Skip to content

Commit

Permalink
Implemented JavaTrieGetWords[jTr].
Browse files Browse the repository at this point in the history
  • Loading branch information
antononcube committed Oct 26, 2017
1 parent 23990b4 commit 5f65a08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions JavaTriesWithFrequencies.m
Original file line number Diff line number Diff line change
Expand Up @@ -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 /@
Expand Down

0 comments on commit 5f65a08

Please sign in to comment.