Skip to main content

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.


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

Project details

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

tf_jieba-0.2-cp36-cp36m-manylinux1_x86_64.whl (945.0 kB view hashes)

Uploaded CPython 3.6m

tf_jieba-0.2-cp36-cp36m-macosx_10_7_x86_64.whl (79.8 kB view hashes)

Uploaded CPython 3.6m macOS 10.7+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page