  		       Restricted Dependency Grammar
                          -- How to use RDG --

1. Environment
   The environment of RDG is as follows:

       Machine: UNIX machine
      Language: SICStus Prolog Ver 0.7
   Source Code: 80 KB

2. How to use RDG
   RDG is currently implemented in SICStus Prolog Ver 0.7. In addition
to RDG, parser program and input data are provided. We can analyze a
sentence using these programs and data.

2.1. How to install RDG

(a) uncompress rdg.tar.Z

(b) tar xf rdg.tar

2.2. How to use RDG?
     
(a) cd ~/rdg/TEXT 

(b) cat ~/rdg/PARSER/parser.pl ~/rdg/PARSER/control.pl 
        ~/rdg/PARSER/util.pl ~/rdg/GRAM/rdg_gram_sem.pl
        ~/rdg/DIC/dic.pl ~/rdg/DIC/1002v03.dic > rdgtemp

(c) nkf -a rdgtemp > rdg

(d) run SICStus Prolog

(e) compile(rdg).

[run (a)] Analyzing one sentence

[1.] mode Nemacs editor to euc code

[2.] read asahi.txt from Nemacs editor

[3.] solve([input data]). input CR Key.

| ?- solve([$B:rG/$O(B,$B0lK|8^@i?MB-$i$:$G(B,$B$3$N(B,$B==?tG/$N(B,$B4V$K(B,$BH>8:$7$?(B]).

execution time = 559msec
results = 3
[d(1,2,modif,topic),a(3,4,modif,n),a(4,5,modif,n),a(5,6,modif,hissu),
 d(2,6,modif,_510),d(1,6,modif,topic)]
[d(1,2,modif,topic),a(3,4,modif,n),a(4,5,modif,n),a(5,6,modif,hissu),
 d(2,6,modif,_469)]
[a(3,4,modif,n),a(4,5,modif,n),a(5,6,modif,hissu),d(2,6,modif,_421),
 d(1,6,modif,topic)]

yes
| ?- 


[run (b)] Batch processing

[1.] ana('input file','outputfile'). input CR Key.

| ?- ana('~/rdg/TEXT/asahi_sh.euc','~/rdg/TEXT/out').

input sentence ---> [$B%8%g%.%s%0Cf$N(B,$BFMA3;`$d(B,$B<RD9$N(B,$B5^;`$J$I$N(B,$BIT9,$J(B,
$B;v7o$,(B,$B$3$N$H$3$m(B,$BL\N)$C$F$$$k(B]

execution time = 2960msec
the number of phrase = 8
the number of solution = 14
...............................

input sentence ---> [$B0lF|$+$i$N(B,$BA49qO+F/1R@8=54V$r(B,$B5!$K(B,$B?H$N2s$j$N(B,$B7r(B
$B9/$r(B,$BE@8!$7D>$7$F$_$?$$(B]

execution time = 319msec
the number of phrase = 6
the number of solution = 1


yes
| ?- 

