📄 sentence.bp
字号:
* This example is from my Basis of AI textbook, the network learns a
* case-role representation of these sentences and then it can fill in
* blanks in incomplete sentences in a reasonable way (usually). This
* is pretty much the same experiment as in the McClelland and Kawamoto
* article in the second volume of the PDP series except it uses plain
* backprop and the verb representation is simplified. There is some
* test data on the file: sentence.tst. To try it use: tf sentence.tst
m 80 100
a as dd uq
qp e 0.05
s7
ci 0.25
f ic oc
t 0.2
f B 25 50 75 100
rt {
*girl ate pasta spoon
10100100100001010100000101000001100011000100011010000000101001100010001010001000
1010010010000101010000010011000110001000110100000001010011000100010100010000000000000000000000000000
*man ate - -
10101000010001010100000101000000000000000000000000000000000000000000000000000000
1010100001000101010000010011000110010000110100000000000000000000000000000000000000000000000000000000
*girl ate - -
10100100100001010100000101000000000000000000000000000000000000000000000000000000
1010010010000101010000010011000110010000110100000000000000000000000000000000000000000000000000000000
*woman ate pasta -
10100100010001010100000101000001100011000100011010000000000000000000000000000000
1010010001000101010000010011000110001000110100000000000000000000000000000000000000000000000000000000
*woman moved plate -
10100100010001010100000100001001010011000010011000001000000000000000000000000000
1010010001000101010000010010100110000100110000010000000000000000000000000000000000000000000000000000
*boy ate co-chicken fork
10101000100001010100000101000001100011001000011010000000101001100010010010001000
1010100010000101010000010011000110010000110100000001010011000100100100010000000000000000000000000000
*boy moved - -
10101000100001010100000100001000000000000000000000000000000000000000000000000000
1010100010000101010000010101010001000010101000001000000000000000000000000000000000000000000000000000
*girl broke window rock
10100100100001010100000100100001010010100010101000001000101001100000110010000001
1010010010000101010000010010100101000101010000010001010011000001100100000010000000000000000000000000
*dog ate - -
01101000100001010100000101000000000000000000000000000000000000000000000000000000
0110100010000101010000010011000110010000110100000000000000000000000000000000000000000000000000000000
*man moved hammer -
10101000010001010100000100001001010011000100010100100000000000000000000000000000
1010100001000101010000010010100110001000101001000000000000000000000000000000000000000000000000000000
*sheep ate - -
01100100100001011000000101000000000000000000000000000000000000000000000000000000
0110010010000101100000010011000110010000110100000000000000000000000000000000000000000000000000000000
*vase broke - -
01010011000100011000001000100000000000000000000000000000000000000000000000000000
0000000000000000000000000010100110001000110000010000000000000000000000000000000000000000000000000000
*woman ate co-chicken pasta
10100100010001010100000101000001100011001000011010000000110001100010001101000000
1010010001000101010000010011000110010000110100000000000000000000000000000000110001100010001101000000
*woman broke window -
10100100010001010100000100100001010010100010101000001000000000000000000000000000
1010010001000101010000010010100101000101010000010000000000000000000000000000000000000000000000000000
*girl ate pasta cheese
10100100100001010100000101000001100011000100011010000000110001100001001101000000
1010010010000101010000010011000110001000110100000000000000000000000000000000110001100001001101000000
*boy broke plate -
10101000100001010100000100100001010011000010011000001000000000000000000000000000
1010100010000101010000010010100110000100110000010000000000000000000000000000000000000000000000000000
*man ate pasta co-chicken
*10101000010001010100000101000001100011000100011010000000110001100100001101000000
*1010100001000101010000010011000110001000110100000000000000000000000000000000110001100100001101000000
*girl moved paperwt -
10100100100001010100000100001001010011001000100100001000000000000000000000000000
1010010010000101010000010010100110010001001000010000000000000000000000000000000000000000000000000000
*woman broke plate hammer
10100100010001010100000100100001010011000010011000001000101001100010001010010000
1010010001000101010000010010100110000100110000010001010011000100010100100000000000000000000000000000
*window broke - -
01010010100010101000001000100000000000000000000000000000000000000000000000000000
0000000000000000000000000010100101000101010000010000000000000000000000000000000000000000000000000000
*man broke window bb-bat
10101000010001010100000100100001010010100010101000001000101001100010001010100000
1010100001000101010000010010100101000101010000010001010011000100010101000000000000000000000000000000
*dog moved - -
01101000100001010100000100001000000000000000000000000000000000000000000000000000
0110100010000101010000010011010001000010101000001000000000000000000000000000000000000000000000000000
*boy broke plate hammer
10101000100001010100000100100001010011000010011000001000101001100010001010010000
1010100010000101010000010010100110000100110000010001010011000100010100100000000000000000000000000000
*paperwt broke vase -
01010011001000100100001000100001010011000100011000001000000000000000000000000000
0000000000000000000000000010100110001000110000010001010011001000100100001000000000000000000000000000
*man ate pasta fork
10101000010001010100000101000001100011000100011010000000101001100010010010001000
1010100001000101010000010011000110001000110100000001010011000100100100010000000000000000000000000000
*rock broke window -
01010011000001100100000010100001010010100010101000001000000000000000000000000000
0000000000000000000000000010100101000101010000010001010011000001100100000010000000000000000000000000
*woman moved vase -
10100100010001010100000100001001010011000100011000001000000000000000000000000000
1010010001000101010000010010100110001000110000010000000000000000000000000000000000000000000000000000
*bb-bat broke plate -
01010011000100010101000000100001010011000010011000001000000000000000000000000000
0000000000000000000000000010100110000100110000010001010011000100010101000000000000000000000000000000
*girl ate pasta cheese
10100100100001010100000101000001100011000100011010000000110001100001001101000000
1010010010000101010000010011000110001000110100000000000000000000000000000000110001100001001101000000
*vase broke - -
01010011000100011000001000100000000000000000000000000000000000000000000000000000
0000000000000000000000000010100110001000110000010000000000000000000000000000000000000000000000000000
*window broke - -
01010010100010101000001000100000000000000000000000000000000000000000000000000000
0000000000000000000000000010100101000101010000010000000000000000000000000000000000000000000000000000
*man ate pasta co-chicken
10101000010001010100000101000001100011000100011010000000110001100100001101000000
1010100001000101010000010011000110001000110100000000000000000000000000000000110001100100001101000000
*girl ate pasta cheese
10100100100001010100000101000001100011000100011010000000110001100001001101000000
1010010010000101010000010011000110001000110100000000000000000000000000000000110001100001001101000000
*man moved - -
10101000010001010100000100001000000000000000000000000000000000000000000000000000
1010100001000101010000010101010000100010101000001000000000000000000000000000000000000000000000000000
*woman moved - -
10100100010001010100000100001000000000000000000000000000000000000000000000000000
1010010001000101010000010101001000100010101000001000000000000000000000000000000000000000000000000000
*girl moved pasta -
10100100100001010100000100001001100011000100011010000000000000000000000000000000
1010010010000101010000010011000110001000110100000000000000000000000000000000000000000000000000000000
*woman ate co-chicken pasta
10100100010001010100000101000001100011001000011010000000110001100010001101000000
1010010001000101010000010011000110010000110100000000000000000000000000000000110001100010001101000000
*bb-bat broke vase -
01010011000100010101000000100001010011000100011000001000000000000000000000000000
0000000000000000000000000010100110001000110000010001010011000100010101000000000000000000000000000000
*woman ate cheese -
10100100010001010100000101000001100011000010011010000000000000000000000000000000
1010010001000101010000010011000110000100110100000000000000000000000000000000000000000000000000000000
*girl moved carrot -
10100100100001010100000100001001010011000100101010000000000000000000000000000000
1010010010000101010000010010100110001001010100000000000000000000000000000000000000000000000000000000
}
tf sentence.tst
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -