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.
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
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.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for tf_jieba-0.2-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4781d0789d7ef9153d0ab9d93fb084320697fa34d35b8aaea6b5d924a999c433 |
|
MD5 | f6ade58e49f27659698fe08ad6673e3e |
|
BLAKE2b-256 | c15ab27fdb5fd07519d1c320958a35576d0373fa0a1aebc14fc4cdaf358d431b |
Close
Hashes for tf_jieba-0.2-cp36-cp36m-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f0fbb076700f337175e2c5c68517ac1fc8b93901887a2fccc89b31b678e753f |
|
MD5 | 8a7529a5a1dad0e3646dbc6daa402045 |
|
BLAKE2b-256 | 7afc1605b7cd013c4a2932e6589815153d298baefb0d399f500ba06fb6432839 |