提交 81ac7de5 编写于 作者: C caoying03

follow all comments.

上级 ac20da57
data/train.list
data/test.list
data/test.*
data/conll05st-release.tar.gz
data/conll05st-release
data/predicate_dict
data/label_dict
data/word_dict
data/emb
data/feature
output
predict.res
train.log
此差异已折叠。
......@@ -19,7 +19,12 @@ wget http://paddlepaddle.bj.bcebos.com/demo/srl_dict_and_embedding/targetDict.tx
wget http://paddlepaddle.bj.bcebos.com/demo/srl_dict_and_embedding/wordDict.txt
wget http://paddlepaddle.bj.bcebos.com/demo/srl_dict_and_embedding/emb
tar -xzvf conll05st-tests.tar.gz
mv verbDict.txt predicate_dict
mv targetDict.txt label_dict
mv wordDict.txt word_dict
rm conll05st-tests.tar.gz
cp ./conll05st-release/test.wsj/words/test.wsj.words.gz .
cp ./conll05st-release/test.wsj/props/test.wsj.props.gz .
gunzip test.wsj.words.gz
......
......@@ -29,8 +29,8 @@ def hook(settings, word_dict, label_dict, predicate_dict, **kwargs):
'ctx_n1_data': integer_value_sequence(len(word_dict)),
'ctx_0_data': integer_value_sequence(len(word_dict)),
'ctx_p1_data': integer_value_sequence(len(word_dict)),
'ctx_p2_data': integer_value_sequence(len(predicate_dict)),
'verb_data': integer_value_sequence(len(word_dict)),
'ctx_p2_data': integer_value_sequence(len(word_dict)),
'verb_data': integer_value_sequence(len(predicate_dict)),
'mark_data': integer_value_sequence(2),
'target': integer_value_sequence(len(label_dict))
}
......
......@@ -21,9 +21,9 @@ is_test = get_config_arg('is_test', bool, False)
is_predict = get_config_arg('is_predict', bool, False)
#file paths
word_dict_file = './data/wordDict.txt'
label_dict_file = './data/targetDict.txt'
predicate_file = './data/verbDict.txt'
word_dict_file = './data/word_dict'
label_dict_file = './data/label_dict'
predicate_file = './data/predicate_dict'
train_list_file = './data/train.list' if not (is_test or is_predict) else None
test_list_file = './data/test.list'
......
......@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
./bin/paddle_trainer \
paddle train \
--config=./db_lstm.py \
--use_gpu=0 \
--log_period=10 \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册