You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
Apologies for the constant questions about IDyOM! I'm having a tough time understanding the structure of the .ppm output files that contain the n-gram trees. My goal is to visualise the trees up to a certain depth and extract n-gram counts from the model files by parsing them (most likely in Python, but there may be a way to do this with idyom functions, I just haven't figured it out yet). I'd appreciate any tips for getting started with this!
The text was updated successfully, but these errors were encountered:
Not at all. There is a function in ppm-star/ppm-io.lisp called
write-model-to-postscript that creates a visualisation of the suffix
tree as a postscript file. The tree gets pretty complicated for large
datasets but there is a keyword argument to control the depth of
printing. In the file ppm-star/ppm-ui.lisp, there are some top-level
functions for interfacing directly with the ppm-star package (i.e,
without building multiple viewpoint systems for music objects) including
one called ppm-predict which calls write-model-to-postscript. I'd
suggest starting with something simple like the following:
(ppm:ppm-predict '((a b r a c a d a b r a)) :ps
"/Users/marcusp/abracadabra.ps")
Before moving on to more complex examples. You might also find the
ngram-frequencies function helpful.
On 27/06/2022 21:03, Aditya Chander wrote:
Hello,
Apologies for the constant questions about IDyOM! I'm having a tough
time understanding the structure of the .ppm output files that contain
the n-gram trees. My goal is to visualise the trees up to a certain
depth and extract n-gram counts from the model files by parsing them
(most likely in Python, but there may be a way to do this with idyom
functions, I just haven't figured it out yet). I'd appreciate any tips
for getting started with this!
—
Reply to this email directly, view it on GitHub
<#46>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZS6J7H5Q2P6VQOPBSGXQ3VRICJPANCNFSM5Z7UXU2A>.
You are receiving this because you are subscribed to this
thread.Message ID: ***@***.***>
Hello,
Apologies for the constant questions about IDyOM! I'm having a tough time understanding the structure of the .ppm output files that contain the n-gram trees. My goal is to visualise the trees up to a certain depth and extract n-gram counts from the model files by parsing them (most likely in Python, but there may be a way to do this with idyom functions, I just haven't figured it out yet). I'd appreciate any tips for getting started with this!
The text was updated successfully, but these errors were encountered: