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
- Clone the cppjieba repository for resource files like model and dict files.
git clone https://github.com/applenob/cppjieba.git
- Download or copy the test python script
custom_test.py
to the same project. You should havecppjieba
andcustom_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Built Distributions
Close
Hashes for tf_jieba-0.3-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 181bcc2ded08c15cf3a07d668b70e3607ad44587fd8a0e063f3fcfa13be3dcc2 |
|
MD5 | 1522973d7e75b4ffa4704e855cca1c60 |
|
BLAKE2-256 | 82f7f62ad9eb9bb8647684accd27b0a1c87368deb1dac1344717684968f3715e |
Close
Hashes for tf_jieba-0.3-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36e9c218448270cbfe19d30794482b4083c7b7c2d4151de0178da74d4148c7a |
|
MD5 | f61a334cc1b2f2a6ed7b3240fba12de9 |
|
BLAKE2-256 | 9a0789257efa14d1fd1da0c352ef7438d05cac4ac741fc26fc9fc5628c1c16fb |