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
Yi Wang e9549cbb78
Change "Baidu, Inc" into "PaddlePaddle Authors"
10 years ago
..
data Change "Baidu, Inc" into "PaddlePaddle Authors" 10 years ago
dataprovider.py Change "Baidu, Inc" into "PaddlePaddle Authors" 10 years ago
linear_crf.py Change "Baidu, Inc" into "PaddlePaddle Authors" 10 years ago
readme.md Sequence tagging demo (#225) 10 years ago
rnn_crf.py Change "Baidu, Inc" into "PaddlePaddle Authors" 10 years ago
train.sh Sequence tagging demo (#225) 10 years ago
train_linear.sh Sequence tagging demo (#225) 10 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