https://github.com/applenob/tf_jieba
Tensorflow Operation Wrapper of cppjieba (Chinese Word Segamentation)
https://github.com/applenob/tf_jieba
Last synced: about 1 year ago
JSON representation
Tensorflow Operation Wrapper of cppjieba (Chinese Word Segamentation)
- Host: GitHub
- URL: https://github.com/applenob/tf_jieba
- Owner: applenob
- Created: 2019-10-19T06:30:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-21T11:44:24.000Z (over 6 years ago)
- Last Synced: 2025-03-25T00:42:18.431Z (about 1 year ago)
- Language: Python
- Size: 57.6 KB
- Stars: 11
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jieba Op for Tensorflow
## Intro
This is a tensorflow wrapper for the cpp version of the famous Chinese
word segmentation tool, [cppjieba](https://github.com/yanyiwu/cppjieba).
I made some changes from the original cppjieba. This is
[my fork of cppjieba](https://github.com/applenob/cppjieba).
Most code of this repo are from Didi's deep learning language platform:
[Delta](https://github.com/didi/delta)
## Install
```bash
pip install tf-jieba
```
## Usage
Download or copy the test python script `custom_test.py`.
```
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](https://applenob.github.io/tensorflow/tf_jieba/) for more detail.