Skip to main content

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

word_segment_grpc_client-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

word_segment_grpc_client-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file word_segment_grpc_client-0.1.0.tar.gz.

File metadata

File hashes

Hashes for word_segment_grpc_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2418958088c7ac33efe05ba5e0e380ebc75e6b04e57c5daa21a93a62813a731a
MD5 60176356bffd09a91765b24512879268
BLAKE2b-256 e7971650fe4e84a7b8f91d69e62ed8b94a939c9c307a5b2037abc43589194dcf

See more details on using hashes here.

File details

Details for the file word_segment_grpc_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for word_segment_grpc_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28b4ae03dd4ab8b3458d7ba7e70eb050e02bfc62a937efcba9e71cb55d3c7c78
MD5 2951f4a6b43bd39ddfcc91b7eed63063
BLAKE2b-256 ba75ea37f5ee10f00176867e83c37343ab0af8883650748af54c3d1606ad68e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page