RisanLi / CWS-TF2

implement Chinese Word Segment(CWS) in TensorFlow 2.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

汉语分词 TensorFlow2.0

Introduction

  • This Chinese Word Segmentation implements with TensorFlow 2.0

Requirements

  • Python 3
  • TensorFlow 2.0.0
  • TensorFlow_addons
  • Numpy

Description

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

Reference

  1. My tensorflow 1.12 version CWS

Tips

  1. How to use evaluation script have written in My tensorflow 1.12 version CWS README

About

implement Chinese Word Segment(CWS) in TensorFlow 2.0


Languages

Language:Python 100.0%