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
emailweixu d6944dec16
Sequence tagging demo (#225)
8 years ago
..
data Sequence tagging demo (#225) 8 years ago
dataprovider.py Sequence tagging demo (#225) 8 years ago
linear_crf.py Sequence tagging demo (#225) 8 years ago
readme.md Sequence tagging demo (#225) 8 years ago
rnn_crf.py Sequence tagging demo (#225) 8 years ago
train.sh Sequence tagging demo (#225) 8 years ago
train_linear.sh Sequence tagging demo (#225) 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