- This Chinese Word Segmentation implements with TensorFlow 2.0
- Python 3
- TensorFlow 2.0.0
- TensorFlow_addons
- Numpy
module | function | notes |
---|---|---|
utils.py | ||
model.py | CWS Model | use tensorflow_addons(crf_log_likelihood) |
train.py | train model | hyperparameters |
test.py | predict attribute of characters | BMES |
utils_eval.py | convert predict labels into predict text | get text_pred.utf8 |
eva/icwb2-data/scripts/score | score scripts | get R,P,F1 value |
- How to use evaluation script have written in My tensorflow 1.12 version CWS README