Skip to main content

Tensorflow Operation Wrapper of cppjieba (Chinese Word Segamentation)

Project description

Jieba Op for Tensorflow

Intro

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

Install

pip install tf-jieba

Usage

  1. Clone the cppjieba repository for resource files like model and dict files.
git clone https://github.com/applenob/cppjieba.git
  1. Download or copy the test python script custom_test.py to the same project. You should have cppjieba and custom_test.py under your test directory now.
python3 custom_test.py

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.

Source Distributions

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

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

tf_jieba-0.3-cp36-cp36m-manylinux1_x86_64.whl (5.2 MB view details)

Uploaded CPython 3.6m

tf_jieba-0.3-cp36-cp36m-macosx_10_7_x86_64.whl (4.3 MB view details)

Uploaded CPython 3.6mmacOS 10.7+ x86-64

File details

Details for the file tf_jieba-0.3-cp36-cp36m-manylinux1_x86_64.whl.

File metadata

  • Download URL: tf_jieba-0.3-cp36-cp36m-manylinux1_x86_64.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: CPython 3.6m
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.4.3

File hashes

Hashes for tf_jieba-0.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 181bcc2ded08c15cf3a07d668b70e3607ad44587fd8a0e063f3fcfa13be3dcc2
MD5 1522973d7e75b4ffa4704e855cca1c60
BLAKE2b-256 82f7f62ad9eb9bb8647684accd27b0a1c87368deb1dac1344717684968f3715e

See more details on using hashes here.

File details

Details for the file tf_jieba-0.3-cp36-cp36m-macosx_10_7_x86_64.whl.

File metadata

  • Download URL: tf_jieba-0.3-cp36-cp36m-macosx_10_7_x86_64.whl
  • Upload date:
  • Size: 4.3 MB
  • Tags: CPython 3.6m, macOS 10.7+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

File hashes

Hashes for tf_jieba-0.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 a36e9c218448270cbfe19d30794482b4083c7b7c2d4151de0178da74d4148c7a
MD5 f61a334cc1b2f2a6ed7b3240fba12de9
BLAKE2b-256 9a0789257efa14d1fd1da0c352ef7438d05cac4ac741fc26fc9fc5628c1c16fb

See more details on using hashes here.

Supported by

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