Merge /pub/main
[educational.data.git] / AI01 / rbp / sentence.bp
blobc9319fa6a829b6c38b1e7ae58fed0ca06d116358
1 * This example is from my Basis of AI textbook, the network learns a\r
2 * case-role representation of these sentences and then it can fill in\r
3 * blanks in incomplete sentences in a reasonable way (usually).  This\r
4 * is pretty much the same experiment as in the McClelland and Kawamoto\r
5 * article in the second volume of the PDP series except it uses plain\r
6 * backprop and the verb representation is simplified.  There is some\r
7 * test data on the file: sentence.tst.  To try it use:  tf sentence.tst\r
8 m 80 100\r
9 a as dd uq\r
10 qp e 0.05\r
11 s7\r
12 ci 0.25\r
13 f ic oc\r
14 t 0.2\r
15 f B 25 50 75 100\r
16 rt {\r
17 *girl ate pasta spoon\r
18 10100100100001010100000101000001100011000100011010000000101001100010001010001000\r
19 1010010010000101010000010011000110001000110100000001010011000100010100010000000000000000000000000000\r
20 *man ate - -\r
21 10101000010001010100000101000000000000000000000000000000000000000000000000000000\r
22 1010100001000101010000010011000110010000110100000000000000000000000000000000000000000000000000000000\r
23 *girl ate - -\r
24 10100100100001010100000101000000000000000000000000000000000000000000000000000000\r
25 1010010010000101010000010011000110010000110100000000000000000000000000000000000000000000000000000000\r
26 *woman ate pasta -\r
27 10100100010001010100000101000001100011000100011010000000000000000000000000000000\r
28 1010010001000101010000010011000110001000110100000000000000000000000000000000000000000000000000000000\r
29 *woman moved plate -\r
30 10100100010001010100000100001001010011000010011000001000000000000000000000000000\r
31 1010010001000101010000010010100110000100110000010000000000000000000000000000000000000000000000000000\r
32 *boy ate co-chicken fork\r
33 10101000100001010100000101000001100011001000011010000000101001100010010010001000\r
34 1010100010000101010000010011000110010000110100000001010011000100100100010000000000000000000000000000\r
35 *boy moved - -\r
36 10101000100001010100000100001000000000000000000000000000000000000000000000000000\r
37 1010100010000101010000010101010001000010101000001000000000000000000000000000000000000000000000000000\r
38 *girl broke window rock\r
39 10100100100001010100000100100001010010100010101000001000101001100000110010000001\r
40 1010010010000101010000010010100101000101010000010001010011000001100100000010000000000000000000000000\r
41 *dog ate - -\r
42 01101000100001010100000101000000000000000000000000000000000000000000000000000000\r
43 0110100010000101010000010011000110010000110100000000000000000000000000000000000000000000000000000000\r
44 *man moved hammer -\r
45 10101000010001010100000100001001010011000100010100100000000000000000000000000000\r
46 1010100001000101010000010010100110001000101001000000000000000000000000000000000000000000000000000000\r
47 *sheep ate - -\r
48 01100100100001011000000101000000000000000000000000000000000000000000000000000000\r
49 0110010010000101100000010011000110010000110100000000000000000000000000000000000000000000000000000000\r
50 *vase broke - -\r
51 01010011000100011000001000100000000000000000000000000000000000000000000000000000\r
52 0000000000000000000000000010100110001000110000010000000000000000000000000000000000000000000000000000\r
53 *woman ate co-chicken pasta\r
54 10100100010001010100000101000001100011001000011010000000110001100010001101000000\r
55 1010010001000101010000010011000110010000110100000000000000000000000000000000110001100010001101000000\r
56 *woman broke window -\r
57 10100100010001010100000100100001010010100010101000001000000000000000000000000000\r
58 1010010001000101010000010010100101000101010000010000000000000000000000000000000000000000000000000000\r
59 *girl ate pasta cheese\r
60 10100100100001010100000101000001100011000100011010000000110001100001001101000000\r
61 1010010010000101010000010011000110001000110100000000000000000000000000000000110001100001001101000000\r
62 *boy broke plate -\r
63 10101000100001010100000100100001010011000010011000001000000000000000000000000000\r
64 1010100010000101010000010010100110000100110000010000000000000000000000000000000000000000000000000000\r
65 *man ate pasta co-chicken\r
66 *10101000010001010100000101000001100011000100011010000000110001100100001101000000\r
67 *1010100001000101010000010011000110001000110100000000000000000000000000000000110001100100001101000000\r
68 *girl moved paperwt -\r
69 10100100100001010100000100001001010011001000100100001000000000000000000000000000\r
70 1010010010000101010000010010100110010001001000010000000000000000000000000000000000000000000000000000\r
71 *woman broke plate hammer\r
72 10100100010001010100000100100001010011000010011000001000101001100010001010010000\r
73 1010010001000101010000010010100110000100110000010001010011000100010100100000000000000000000000000000\r
74 *window broke - -\r
75 01010010100010101000001000100000000000000000000000000000000000000000000000000000\r
76 0000000000000000000000000010100101000101010000010000000000000000000000000000000000000000000000000000\r
77 *man broke window bb-bat\r
78 10101000010001010100000100100001010010100010101000001000101001100010001010100000\r
79 1010100001000101010000010010100101000101010000010001010011000100010101000000000000000000000000000000\r
80 *dog moved - -\r
81 01101000100001010100000100001000000000000000000000000000000000000000000000000000\r
82 0110100010000101010000010011010001000010101000001000000000000000000000000000000000000000000000000000\r
83 *boy broke plate hammer\r
84 10101000100001010100000100100001010011000010011000001000101001100010001010010000\r
85 1010100010000101010000010010100110000100110000010001010011000100010100100000000000000000000000000000\r
86 *paperwt broke vase -\r
87 01010011001000100100001000100001010011000100011000001000000000000000000000000000\r
88 0000000000000000000000000010100110001000110000010001010011001000100100001000000000000000000000000000\r
89 *man ate pasta fork\r
90 10101000010001010100000101000001100011000100011010000000101001100010010010001000\r
91 1010100001000101010000010011000110001000110100000001010011000100100100010000000000000000000000000000\r
92 *rock broke window -\r
93 01010011000001100100000010100001010010100010101000001000000000000000000000000000\r
94 0000000000000000000000000010100101000101010000010001010011000001100100000010000000000000000000000000\r
95 *woman moved vase -\r
96 10100100010001010100000100001001010011000100011000001000000000000000000000000000\r
97 1010010001000101010000010010100110001000110000010000000000000000000000000000000000000000000000000000\r
98 *bb-bat broke plate -\r
99 01010011000100010101000000100001010011000010011000001000000000000000000000000000\r
100 0000000000000000000000000010100110000100110000010001010011000100010101000000000000000000000000000000\r
101 *girl ate pasta cheese\r
102 10100100100001010100000101000001100011000100011010000000110001100001001101000000\r
103 1010010010000101010000010011000110001000110100000000000000000000000000000000110001100001001101000000\r
104 *vase broke - -\r
105 01010011000100011000001000100000000000000000000000000000000000000000000000000000\r
106 0000000000000000000000000010100110001000110000010000000000000000000000000000000000000000000000000000\r
107 *window broke - -\r
108 01010010100010101000001000100000000000000000000000000000000000000000000000000000\r
109 0000000000000000000000000010100101000101010000010000000000000000000000000000000000000000000000000000\r
110 *man ate pasta co-chicken\r
111 10101000010001010100000101000001100011000100011010000000110001100100001101000000\r
112 1010100001000101010000010011000110001000110100000000000000000000000000000000110001100100001101000000\r
113 *girl ate pasta cheese\r
114 10100100100001010100000101000001100011000100011010000000110001100001001101000000\r
115 1010010010000101010000010011000110001000110100000000000000000000000000000000110001100001001101000000\r
116 *man moved - -\r
117 10101000010001010100000100001000000000000000000000000000000000000000000000000000\r
118 1010100001000101010000010101010000100010101000001000000000000000000000000000000000000000000000000000\r
119 *woman moved - -\r
120 10100100010001010100000100001000000000000000000000000000000000000000000000000000\r
121 1010010001000101010000010101001000100010101000001000000000000000000000000000000000000000000000000000\r
122 *girl moved pasta -\r
123 10100100100001010100000100001001100011000100011010000000000000000000000000000000\r
124 1010010010000101010000010011000110001000110100000000000000000000000000000000000000000000000000000000\r
125 *woman ate co-chicken pasta\r
126 10100100010001010100000101000001100011001000011010000000110001100010001101000000\r
127 1010010001000101010000010011000110010000110100000000000000000000000000000000110001100010001101000000\r
128 *bb-bat broke vase -\r
129 01010011000100010101000000100001010011000100011000001000000000000000000000000000\r
130 0000000000000000000000000010100110001000110000010001010011000100010101000000000000000000000000000000\r
131 *woman ate cheese -\r
132 10100100010001010100000101000001100011000010011010000000000000000000000000000000\r
133 1010010001000101010000010011000110000100110100000000000000000000000000000000000000000000000000000000\r
134 *girl moved carrot -\r
135 10100100100001010100000100001001010011000100101010000000000000000000000000000000\r
136 1010010010000101010000010010100110001001010100000000000000000000000000000000000000000000000000000000\r
139 tf sentence.tst\r