Graph:...r::HTK(3pm)

πŸ’– Graph::Writer::HTK β€” the perl module that writes your graph out as an HTK lattice file πŸ’–

okay bestie, so this page lives in the User Contributed Perl Documentation section of the manual (section 3pm, if you're keeping score), and it's all about Graph::Writer::HTK. sit down, grab a strawberry πŸ“, let's get into it.


✨ NAME ✨

Graph::Writer::HTK β€” write a perl Graph out as an HTK lattice file

like, that's the whole gig. one job. and it ate. πŸ‘‘


🌸 SYNOPSIS 🌸

use Graph::Writer::HTK;

$writer = Graph::Reader::HTK->new();
$reader->write_graph($graph, 'mylattice.lat');

yes, bestie, we are reading the synopsis exactly as it's written β€” Graph::Reader::HTK->new() and $reader->write_graph and all. i do not make the rules, i just transcribe them with love πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, this module takes a directed graph and writes it out to a file in the HTK lattice format β€” that's http://htk.eng.cam.ac.uk if you wanna go look at the source of truth.

one tiny non-negotiable tho: the graph you hand over must be an instance of the Graph class. no random hash pretending to be a graph. it's giving impostor syndrome and we're not here for it. 🚫


πŸŽ€ SEE ALSO πŸŽ€

  • Graph β€” Jarkko Hietaniemi's Graph class and others, used for representing and manipulating directed graphs. Available from CPAN. Also described / used in the chapter on directed graph algorithms in the Algorithms in Perl book from O'Reilly. it's giving classic, it's giving foundational, it's giving read the book bestie. πŸ“š
  • Graph::Writer β€” the base-class for this module, which defines the public methods, and describes the ideas behind Graph reader and writer modules. the parent that raised us. 🫢
  • Graph::Reader::HTK β€” a class which will read a perl Graph from an HTK lattice file. the reverse-direction icon. ⭐

πŸ”₯ REPOSITORY πŸ”₯

the source lives here, go be nosy:

https://github.com/neilb/Graph-ReadWrite


πŸ‘‘ AUTHOR πŸ‘‘

Neil Bowers <neil@bowers.com> β€” the main character who wrote this. respect. πŸ’œ


Copyright (c) 2000-2012, Neil Bowers. All rights reserved. Copyright (c) 2000, Canon Research Centre Europe. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

legal stuff, but make it slay. do NOT strip the copyright lines, bestie, that's not a vibe. πŸ™ˆ


and that's the whole page fr fr πŸ’… this version was documented under perl v5.32.1, dated 2021-09-19, and if you made it all the way down here: ily, go write some lattices, and don't forget the use statement. periodt. 🌈✨

πŸ“¦ where this page comes from