电力领域中文分词模型
ecws 是面向电力领域的基础中文分词模型组件,目标是打造电力领域的自然语言处理基础能力
安装指南
ecws 依赖以下包:
- torch==1.5.1
- allennlp==1.0.0
版本号
R3.0.5
模型命名
NLP-ECWS-R3.0.5
安装
- 第一步,安装 ecws
使用 pip 安装
pip install ecws
或从源代码安装
git clone https://github.com/rises-tech/ecws.git
cd NLP-ECWS
pip install -e .
- 下载
ecws.model文件
| Model Name | Download Link |
|---|---|
| ecws.v3.model | BaiduPan 提取码:ecws |
- python引用方式:
from ecws.segment import Segmenter
model_path = 'ecws.model'
predict = Segmenter(model_path)
d = predict.seg(sent)
- 接口demo界面
http://120.27.25.150:8082/
- web api 调用方式
def webservice_ecws(sentence):
data = {'sent': sentence}
url = 'http://120.27.25.150:8082/predict'
r = requests.post(url, json=data)
data = json.loads(r.text)
seg = data['spans']
return seg
其中返回的结果是一个字典,字段'sent'中包含分词结果。
- 电力自然语言处理演示平台
开发者
@ 张强<<alxor@live.cn>> @ 宋博川<<abc_hhhh@163.com>>
Metadata
Release files for ecws 3.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ecws-3.0.5.tar.gz | 18.4 kB | Without provenance | Details for ecws-3.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ecws-3.0.5-py3-none-any.whl | Python 3 | none | any | Details for ecws-3.0.5-py3-none-any.whl |
Total release size: 48.1 kB
Release files / ecws-3.0.5.tar.gz
| Download URL | ecws-3.0.5.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
71961efe7e22a6b68a8febe10bd289311d3a630a718f5eed6f29a91d61de375b
|
|
BLAKE2b-256 checksum How to use checksums |
7e0bdb0b5bf600c378784d883e9917b1ee310743e3db2d6303c13b3a8f712f35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / ecws-3.0.5-py3-none-any.whl
| Download URL | ecws-3.0.5-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e64ee66bc88a1b7053ec023202edabccf2313677deb41adef3df90093b5dd1d7
|
|
BLAKE2b-256 checksum How to use checksums |
faffea14d3718d150608b0ba115c42d8765aa3c58cdd229cce9d622e5232d14b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Security for ecws 3.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.