Word segment grpc service
Project description
Development
Make sure you have installed uv and protoc and pre-commit
curl -LsSf https://astral.sh/uv/install.sh | sh
brew install protobuf
pip install pre-commit
Setup
We use BERT based model to do word segment job, the F1 score is better than Jieba. When we start to develop on this project, we can directly run below command.
make prepare_dev
The above command will set up virtual env for Python, and install the requirements.
Download model
We can download the model from huggingface, or Kaggle.
https://huggingface.co/datasets/mikehug24/knowledge_graph_datasets/resolve/main/nlp_models.zst
gRPC golang client
In order to get the gRPC client, we need to make the client package public, hence, we use git submodule to manage it. Most of the time, we don't need to update the client.
TODO
- Rename to NLPPythonService
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 word_segment_grpc_client-0.1.0.tar.gz.
File metadata
- Download URL: word_segment_grpc_client-0.1.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2418958088c7ac33efe05ba5e0e380ebc75e6b04e57c5daa21a93a62813a731a
|
|
| MD5 |
60176356bffd09a91765b24512879268
|
|
| BLAKE2b-256 |
e7971650fe4e84a7b8f91d69e62ed8b94a939c9c307a5b2037abc43589194dcf
|
File details
Details for the file word_segment_grpc_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: word_segment_grpc_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b4ae03dd4ab8b3458d7ba7e70eb050e02bfc62a937efcba9e71cb55d3c7c78
|
|
| MD5 |
2951f4a6b43bd39ddfcc91b7eed63063
|
|
| BLAKE2b-256 |
ba75ea37f5ee10f00176867e83c37343ab0af8883650748af54c3d1606ad68e3
|