g2p-sk(1)

πŸ¦‹ g2p-sk β€” phonetic transcription for Slovak ✨

okay bestie, so this is the manual page for g2p-sk, a USER COMMAND, and it's literally about turning Slovak spelling into sounds πŸ’…


🌸 SYNOPSIS 🌸

g2p-sk [--color] [--dl debug level] [--help] [--stats] [--ofile <file_name>] [<input file>]

πŸ’– DESCRIPTION πŸ’–

So like, phonetic transcription is essential for some linguistic or speech recognition applications, no cap. Depending on the language, you're either going rule based or statistical β€” and g2p-sk does the rule based thing. But heads up bestie, in the future it may get replaced by the statistical one πŸ‘€

Every input word is a sequence of graphemes, and it gets transcribed into a sequence of phones in the SAMPA coding. If you don't specify an input file, it just expects the standard input 🫢 If you do use an input file, then the output gets written into a file as well β€” and the filename is the input filename with the extension _trans.txt. Iconic behavior honestly.

The input output code page is ISO 8859-2. Wanna use a different CP? Then use some CP converter and pipes, bestie. For example, to have input and output in UTF-8, use β€” for interactive use:

filterm UTF8-iso2 iso2-UTF8 g2p-sk

or, for batch processing:

iconv -f UTF-8 -t ISO_8859-2 | g2p-sk | iconv -f ISO_8859-2 -t UTF-8

The performance of the phonetic transcription depends on the morphematic segmentation, and to improve the quality of that segmentation you can replace the small version of the simple morphematic dictionary at /usr/share/g2p_sk/Exceptions/morfemy.ddat with the better one. Slay. The syllabic segmentation is as important as the morphematic one, and it's provided by the sylseg-sk package πŸŽ€

Also the design of g2p-sk is language dependent β€” to use it for another language, all the rules need to be rewritten. Every single one. Fr fr 😭


✨ OPTIONS ✨

  • --color β€” Enable color output. Aesthetic upgrade, obviously πŸ’…
  • --dl 1..5 β€” Set the debug level. This controls the amount of displayed information. Debug level 0 displays nothing, and the maximum level 5 displays the full debugging report. The default debug level is 1.
  • --help β€” Display a short help text 🫢
  • --ofile <file_name> β€” Write output also into the given file.
  • --stats β€” Count and display statistics for each phone πŸ”₯

🌈 EXAMPLES 🌈

Use standard input and debug level 3:

g2p-sk --dl 3

Process all the words from file aaa.txt:

g2p-sk aaa.txt

πŸ‘‘ EXIT STATUS πŸ‘‘

g2p-sk returns a zero if it succeeds to process all the input words βœ…


πŸŽ€ AUTHOR πŸŽ€

Jozef Ivanecky (dodo (at) kanoistika.sk)


πŸ¦‹ SEE ALSO πŸ¦‹

sylseg-sk(1), filterm(1), iconv(1), konwert(1)


and that's the whole vibe, bestie β€” this page is version 0.4, dated May 17, 2009, and it's the g2p-sk(1) manual through and through πŸ«Άβœ¨πŸ’–