Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
WL interface to Tries with frequencies implemented in Java
Contributed by: Anton Antonov
Bringing fast Tries with frequencies functionalities in WL via Java implementations.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["AntonAntonov/JavaTriesWithFrequencies"]
To load the code after installation, evaluate this code:
Needs["AntonAntonov`JavaTriesWithFrequencies`"]
Install (connect) to Java's implementation (in paclet's "Kernel" directory):
In[1]:= |
Here is a list of words:
In[2]:= |
Make a Java trie:
In[3]:= |
Out[3]= |
Visualize the trie:
In[4]:= |
Out[4]= |
Conversion of the Java object to JSON and importing that in the WL session:
In[5]:= |
Out[5]= |
Classification:
In[6]:= |
Out[6]= |
Random choice:
In[7]:= |
Out[7]= |