ACCEPT_CHECK(1)

✨ ACCEPT_CHECK(1) β€” the sentence bouncer πŸ¦‹

okay bestie, so the header says the manual name is accept_check (this tool lives in the Julius toolkit, fr πŸ’…), and the whole page is the cutest little guide to a checker that decides if a sentence gets in or gets rejected 🫢

✨ NAME ✨

accept_check πŸŽ€ β€” it checks whether a grammar accepts or rejects given word sequences ✨

✨ SYNOPSIS ✨

accept_check [-t] [-s spname] [-v] {prefix}

✨ DESCRIPTION ✨

okay so accept_check is giving bouncer energy πŸ’… It checks whether a sentence can be accepted or rejected by a grammar, which lives in prefix.dfa and prefix.dict 🌸 The sentence comes in through standard input. Lowkey the vibe for batch checks is: put every test sentence on its own line in a text file, then feed that file in as standard input for accept_check πŸ“

You need .dfa, .dict and .term files for this, and you make them by converting your written grammar file with mkdfa 🧚

A sentence has to be a space-separated word sequence. Depending on your grammar, you might need head and tail silence words like sil πŸ™ˆ And no short-pause words allowed, bestie ❌

Heads up: a sentence must not contain a short-pause word.

When one word belongs to several categories in the grammar, accept_check checks every possible sentence pattern. If any one of them is acceptable, the sentence gets accepted πŸ‘‘

✨ OPTIONS ✨

  • -t β€” use category names as input instead of words πŸ¦‹
  • -s spname β€” the short-pause word to skip (default: "sp") πŸ’œ
  • -v β€” debug output, for when you want to see the tea β˜•βœ¨

✨ EXAMPLES ✨

Here's what the output looks like for a date grammar 🌈

% echo '<s> NEXT SUNDAY </s>' | accept_check date
Reading in dictionary...
143 words...done
Reading in DFA grammar...done
Mapping dict item <-> DFA terminal (category)...done
Reading in term file (optional)...done
27 categories, 143 words
DFA has 35 nodes and 71 arcs
-----
wseq: <s> NEXT SUNDAY </s>
cate: NS_B (NEXT|NEXT) (DAYOFWEEK|DAYOFWEEK|DAY|DAY) NS_E
accepted

Look at that, it's literally accepted 😭πŸ”₯

✨ SEE ALSO ✨

mkdfa ( 1 ) πŸŽ€, generate ( 1 ) πŸŽ€, nextword ( 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 πŸ’–


ok bestie that's the whole page πŸ’… Dated 10/02/2008 and it's the ACCEPT_CHECK(1) manual, so slay the sentence checking forever 🫢✨

πŸ“¦ where this page comes from