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 π
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
- debian bookworm: libgraph-readwrite-perl 2.10-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgraph-readwrite-perl 2.10-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libgraph-readwrite-perl 2.10-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgraph-readwrite-perl 2.10-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgraph-readwrite-perl 2.10-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgraph-readwrite-perl 2.10-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms