View Code? Open in Web Editor
NEW
implement Chinese Word Segment(CWS) in TensorFlow 2.0
cws-tf2's Introduction
- 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 |
- My tensorflow 1.12 version CWS
- How to use evaluation script have written in My tensorflow 1.12 version CWS README
cws-tf2's People
Contributors
Stargazers
Watchers