SequenceLabeling
A TensorFlow (>=0.12.1) implementation of BRNN + CRF + Char-level embedding model for general sequence labeling, e.g., POS tagging, Named Entity Recognition, and Slot Tagging.
Install / Use
/learn @MingjieQian/SequenceLabelingREADME
SequenceLabeling
A TensorFlow (>=0.12.1) implementation of BRNN + CRF + Char-level embedding model for general sequence labeling, e.g., POS tagging, Named Entity Recognition, and Slot Tagging.
Help
python SequenceLabelingBRNNCRF.py -h
Training
python SequenceLabelingBRNNCRF.py -T train -d data_dir -t training_filename -v dev_filename -p pretrained_word_embedding_path -C LSTM -e 300 -H 300 -k 0.5 -l 0.001 -b 20 -i 30 -c 1 --use_chars -E 100 --hidden_size_char 100 --decay 0.90 --fix_word_embedding --annotation_scheme CoNLL --brnn_type vanilla [--yield_data] yield_data here means that only a mini-batch data is yield from a dataset iterator, which is more memory efficient for large scale data.
Evaluation
python SequenceLabelingBRNNCRF.py -T eval --model_dir model_path --eval_filepath evaluation_filepath --annotation_scheme CoNLL
Prediction
python SequenceLabelingBRNNCRF.py -T predict --model_dir model_path --test_filepath test_filepath In test_filepath, each line is a sequence of tokens.
Interactive prediction
python SequenceLabelingBRNNCRF.py -T online --model_dir model_path
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
