Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Tensorflow Operation Wrapper of cppjieba (Chinese Word Segamentation)

Project description

Jieba Op for Tensorflow


This is a tensorflow wrapper for the cpp version of the famous Chinese word segmentation tool, cppjieba.

I made some changes from the original cppjieba. This is my fork of cppjieba.

Most code of this repo are from Didi's deep learning language platform: Delta


pip install tf-jieba


  1. Clone the cppjieba repository for resource files like model and dict files.
git clone
  1. Download or copy the test python script to the same project. You should have cppjieba and under your test directory now.

Demo output:

Support Platform

  • python == 3.6
  • tensorflow >= 1.14.0
  • OS: MacOS / Linux

Please refer to my Chinese blog post for more detail.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tf-jieba, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size tf_jieba-0.3-cp36-cp36m-macosx_10_7_x86_64.whl (4.3 MB) File type Wheel Python version cp36 Upload date Hashes View hashes
Filename, size tf_jieba-0.3-cp36-cp36m-manylinux1_x86_64.whl (5.2 MB) File type Wheel Python version cp36 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page