1    accept_check
2
3ACCEPT_CHECK(1)             General Commands Manual            ACCEPT_CHECK(1)
4
5
6

NAME

8           accept_check
9          - Check whether a grammar accept / reject given word sequences
10

SYNOPSIS

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

DESCRIPTION

15       accept_check is a tool to check whether a sentence can be accepted or
16       rejected on a grammar (prefix.dfa and prefix.dict). The sentence should
17       be given from standard input. You can do a batch check by preparing all
18       test sentence at each line of a text file, and give it as standard
19       input of accept_check.
20
21       This tool needs .dfa, .dict and .term files. You should convert a
22       written grammar file to generate them by mkdfa.pl.
23
24       A sentence should be given as space-separated word sequence. It may be
25       required to add head / tail silence word like sil, depending on your
26       grammar. And should not contain a short-pause word.
27
28       When a word belongs to various category in a grammar, accept_check will
29       check all the possible sentence patterns, and accept it if any of those
30       is acceptable.
31

OPTIONS

33        -t
34           Use category name as input instead of word.
35
36        -s  spname
37           Short-pause word name to be skipped. (default: "sp")
38
39        -v
40           Debug output.
41

EXAMPLES

43       An output for "date" grammar:
44
45           % echo '<s> NEXT SUNDAY </s>' | accept_check date
46           Reading in dictionary...
47           143 words...done
48           Reading in DFA grammar...done
49           Mapping dict item <-> DFA terminal (category)...done
50           Reading in term file (optional)...done
51           27 categories, 143 words
52           DFA has 35 nodes and 71 arcs
53           -----
54           wseq: <s> NEXT SUNDAY </s>
55           cate: NS_B (NEXT|NEXT) (DAYOFWEEK|DAYOFWEEK|DAY|DAY) NS_E
56           accepted
57
58

SEE ALSO

60        mkdfa.pl ( 1 ) ,
61        generate ( 1 ) ,
62        nextword ( 1 )
63
65       Copyright (c) 1991-2013 Kawahara Lab., Kyoto University
66
67       Copyright (c) 1997-2000 Information-technology Promotion Agency, Japan
68
69       Copyright (c) 2000-2005 Shikano Lab., Nara Institute of Science and
70       Technology
71
72       Copyright (c) 2005-2013 Julius project team, Nagoya Institute of
73       Technology
74

LICENSE

76       The same as Julius.
77
78
79
80                                  12/19/2013                   ACCEPT_CHECK(1)
Impressum