HFST-COMPOSE(1)

πŸ“¦
version 3.17.1 Β· 2 versions
  • 3.17.1 Β· debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 3.17.3 Β· nixpkgs unstable
, in debian bookworm, debian trixie, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ‘‘ HFST-COMPOSE β€” bestie, we're composing transducers ✨

okay so real talk: this page lives in the User Commands section of the manual, and it's all about hfst-compose. no cap, it's a whole vibe.


🌈 SYNOPSIS

hfst-compose [OPTIONS...] [INFILE1 [INFILE2]]

πŸ’– DESCRIPTION

Compose two transducers. that's it. that's the whole job. and honestly? it eats. 🫢

πŸŽ€ Common options:

  • -h, --help β€” prints the help message, aka the "bestie explain" button πŸ™ˆ
  • -V, --version β€” prints version info, so you know exactly what you're working with πŸ’…
  • -v, --verbose β€” print verbosely while processing, like it's telling you its whole day πŸ—£οΈ
  • -q, --quiet β€” only prints fatal errors and the output you actually asked for 🀫
  • -s, --silent β€” literally just an alias of --quiet. same energy, different letter ✨

πŸ¦‹ Input/Output options:

  • -1, --input1=INFILE1 β€” read the first input transducer from INFILE1 πŸ“₯
  • -2, --input2=INFILE2 β€” read the second input transducer from INFILE2 πŸ“₯
  • -C, --do-not-convert β€” do not let transducers be converted into the same type. nope, not today 🚫
  • -o, --output=OUTFILE β€” write the results to OUTFILE πŸ“€

πŸ”₯ Composition options:

  • -x, --xerox-composition=VALUE β€” controls whether flag diacritics are treated as ordinary symbols in composition (default is false). it's giving "do the rules even apply to me" energy πŸ’€
  • -X, --xfst=VARIABLE β€” toggles the xfst compatibility option VARIABLE. flip the switch, bestie 🎚️

🌸 Harmonization:

  • -H, --do-not-harmonize β€” do not harmonize symbols. leave them exactly as they are, main character behavior πŸ‘‘
  • -F, --harmonize-flags β€” harmonize flag diacritics. yes we're matching them up, it's a group chat now πŸ«‚

okay so the important stuff about streams, no skipping: if OUTFILE, or either INFILE1 or INFILE2, is missing or -, then standard streams get used instead. but listen β€” INFILE1, INFILE2, or both must be specified. that part is not optional, periodt. πŸ™…

the format of the result depends on the format of INFILE1 and INFILE2, and bestie, both of them should have the same format. matching outfits only πŸ’–

the operation is applied pairwise for INFILE1 and INFILE2, which must have the same number of transducers. and if INFILE2 has only one transducer? iconic β€” the operation gets applied to each transducer in INFILE1 while keeping that second transducer constant. one of them just gets to chill 😌

xfst variables are {flag-is-epsilon (default OFF)}. and VALUE can be one of these: [true|false], [yes|no] or [ON|OFF] β€” with false being the default. lowkey a lot of ways to say no but we respect the range 🌈


⭐ EXAMPLES

hfst-compose -o cat2dog.hfst cat2mouse.hfst mouse2dog.hfst

composes two automata 🐱➑️🐭➑️🐢 and yes, the glow-up pipeline is real.


😭 REPORTING BUGS

found a bug? don't suffer in silence, bestie. report bugs to <hfst-bugs@helsinki.fi> or directly to the bug tracker at: <https://github.com/hfst/hfst/issues> πŸ›


Copyright Β© 2017 University of Helsinki, License GPLv3: GNU GPL version 3 <http://gnu.org/licenses/gpl.html>

this is free software: you are free to change and redistribute it. and there is NO WARRANTY, to the extent permitted by law. (fr fr, no warranty. read it and weep 🫠)


and that's the whole page, bestie!! this was the HFST manual page for hfst-compose, dated August 2018, written by the HFST girlies πŸ’…βœ¨ go compose something iconic, ily, bye!! πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from