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.pyto the same project. You should havecppjiebaandcustom_test.pyunder 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.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
181bcc2ded08c15cf3a07d668b70e3607ad44587fd8a0e063f3fcfa13be3dcc2
|
|
| MD5 |
1522973d7e75b4ffa4704e855cca1c60
|
|
| BLAKE2b-256 |
82f7f62ad9eb9bb8647684accd27b0a1c87368deb1dac1344717684968f3715e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a36e9c218448270cbfe19d30794482b4083c7b7c2d4151de0178da74d4148c7a
|
|
| MD5 |
f61a334cc1b2f2a6ed7b3240fba12de9
|
|
| BLAKE2b-256 |
9a0789257efa14d1fd1da0c352ef7438d05cac4ac741fc26fc9fc5628c1c16fb
|