You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paddle/demo/sequence_tagging
zhouyingfeng 6c4831a096
add "paddle usage" scripts in all demos
8 years ago
..
data Change "Baidu, Inc" into "PaddlePaddle Authors" 8 years ago
dataprovider.py Change "Baidu, Inc" into "PaddlePaddle Authors" 8 years ago
linear_crf.py Add an extra parameter label to chunk_evaluator 8 years ago
readme.md Sequence tagging demo (#225) 8 years ago
rnn_crf.py Add an extra parameter label to chunk_evaluator 8 years ago
train.sh add "paddle usage" scripts in all demos 8 years ago
train_linear.sh add "paddle usage" scripts in all demos 8 years ago

readme.md

Sequence Tagging

This demo is a sequence model for assigning tags to each token in a sentence. The task is described at CONLL2000 Text Chunking task.

Download data

cd demo/sequence_tagging
./data/get_data.sh

Train model

cd demo/sequence_tagging
./train.sh

Model description

We provide two models. One is a linear CRF model (linear_crf.py) with is equivalent to the one at leon.bottou.org/projects/sgd. The second one is a stacked bidirectional RNN and CRF model (rnn_crf.py).

Model name Number of parameters F1 score
linear_crf 1.8M 0.937
rnn_crf 960K 0.941