JULIUS-GENERATE-NGRAM(1)

πŸŽ€ GENERATE-NGRAM(1) πŸŽ€

okay bestie, pull up a chair, because this is generate-ngram from the GENERATE-NGRAM manual β€” it lives in section 1, and it's literally a whole vibe. πŸ’–


✨ NAME ✨

generate-ngram β€” random sentence generator from N-gram 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

generate-ngram [options...] {binary_ngram}

πŸ’… DESCRIPTION πŸ’…

So, generate-ngram is a tool that generates sentences randomly according to the N-gram language model you hand it. That's it, that's the whole job. πŸ‘‘

The N-gram model file binary_ngram should be in binary format β€” like, the actual binary, not the text one. Don't come at it with the wrong file, fr fr. 😭


🌈 OPTIONS 🌈

  • -n num β€” Number of sentences to generate (default: 10) ✨
  • -N β€” Specify which length of N-gram to use (default: available max in the given model) πŸ‘‘
  • -bos β€” Beginning-of-sentence word (default: "<s>") 🌸
  • -eos β€” End-of-sentence word (default: "</s>") πŸ¦‹
  • -ignore β€” Specify a word to be supressed from output (default: "<UNK") πŸ™ˆ
  • -v β€” Verbose output. πŸ’¬
  • -debug β€” Debug output. πŸ”
not me clocking that the default for -ignore is "<UNK" with no closing bracket β€” that's exactly how it's written in the original, so we're keeping it character for character. periodt. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • julius(1)
  • mkbingram(1)

Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan

Copyright (c) 1991-2008 Kawahara Lab., Kyoto University

Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and Technology

Copyright (c) 2005-2008 Julius project team, Nagoya Institute of Technology


🫢 LICENSE 🫢

The same as Julius.


and that's the whole page, bestie!! πŸŽ€ this is from the GENERATE-NGRAM(1) manual, dated 10/02/2008 β€” iconic, historic, we stan. bye mwah πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from