.\" Title:
nextword
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.71.0
.\" Date: 10/02/2008
.\" Manual:
.\" Source:
.\"
.TH "NEXTWORD" "1" "10/02/2008" "" ""
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
nextword
\- display next predicted words (in reverse order)
.SH "SYNOPSIS"
.HP 9
\fBnextword\fR [\-t] [\-r] [\-s\ \fIspname\fR] [\-v] {prefix}
.SH "DESCRIPTION"
.PP
Given a partial (part of) sentence from the end, it outputs the next words allowed in the specified grammar.
.PP
\fI.dfa\fR,
\fI.dict\fR
and
\fI.term\fR
files are needed to execute. They can be generated from
\fI.grammar\fR
and
\fI.voca\fR
file by
\fBmkdfa.pl\fR.
.PP
Please note that the latter part of sentence should be given, since the main 2nd pass does a right\-to\-left parsing.
.SH "OPTIONS"
.PP
\fB \-t \fR
.RS 3n
Input / Output in category name. (default: word)
.RE
.PP
\fB \-r \fR
.RS 3n
Enter in reverse order
.RE
.PP
\fB \-s \fR \fIspname\fR
.RS 3n
the name string of short\-pause word to be supressed (default: "sp")
.RE
.PP
\fB \-v \fR
.RS 3n
Debug output.
.RE
.SH "EXAMPLES"
.PP
Exmple output of a sample grammar "fruit":
.sp
.RS 3n
.nf
% \fBnextword\fR fruit
Stat: init_voca: read 36 words
Reading in term file (optional)...done
15 categories, 36 words
DFA has 26 nodes and 42 arcs
\-\-\-\-\-
command completion is disabled
\-\-\-\-\-
wseq > A BANANA
[wseq: A BANANA ]
[cate: (NUM_1|NUM_1|A|A) FRUIT_SINGULAR NS_E]
PREDICTED CATEGORIES/WORDS:
NS_B ( )
HAVE (HAVE )
WANT (WANT )
NS_B ( )
HAVE (HAVE )
WANT (WANT )
.fi
.RE
.sp
.SH "SEE ALSO"
.PP
\fB mkdfa.pl \fR( 1 )
,
\fB generate \fR( 1 )
,
\fB accept_check \fR( 1 )
.SH "COPYRIGHT"
.PP
Copyright (c) 1997\-2000 Information\-technology Promotion Agency, Japan
.PP
Copyright (c) 1991\-2008 Kawahara Lab., Kyoto University
.PP
Copyright (c) 2000\-2005 Shikano Lab., Nara Institute of Science and Technology
.PP
Copyright (c) 2005\-2008 Julius project team, Nagoya Institute of Technology
.SH "LICENSE"
.PP
The same as Julius.