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 β¨
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
- ubuntu jammy: julius 4.2.2-0ubuntu3
- ubuntu noble: julius 4.2.2-0ubuntu6
- ubuntu resolute: julius 4.2.2-0ubuntu6
- ubuntu stonking: julius 4.2.2-0ubuntu6
- π girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms