Python Package for SmoothNLP Project
Project description
Python wrapper for SmoothNLP,侧重金融领域的自然语言处理工具的Python接口.
支持中文分词、pos、NER识别、多种金融对象的实体识别等功能.
GitHub: https://github.com/zhangruinan/SmoothNLP
Installation
You need Python3 installed on your system to able to use smoothnlp.
>>> pip3 install smoothnlp
- Install Requirements
- Python
Version : 3.5+
package managers : pip
packages : numpy, jpype1>=0.6.2, requests (auto check)
- Java
Version : 1.8
Functions
segment
postag
ner
financial_agency_recognize
number_recognize
Example
Quick start
>>> import smoothnlp smoothnlp.segment("国泰君安一季度盈利一千万") smoothnlp.set_mode('server') # default server, support local
首次使用local模式时会需要下载对应jar包
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 Distribution
SmoothNLP-0.2.15.tar.gz
(11.2 kB
view hashes)
Built Distributions
SmoothNLP-0.2.15-py3.7.egg
(33.8 kB
view hashes)
SmoothNLP-0.2.15-py3-none-any.whl
(24.1 kB
view hashes)
Close
Hashes for SmoothNLP-0.2.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9aa744c838ba8ed47494aea84e35100b8e24f142773dbc69b770761c03baed34 |
|
MD5 | a45f24c36dad0767fe5556cb33e1c093 |
|
BLAKE2b-256 | ebae019eb2ba36d8202658bc430c1945a1c82669a63135855791bb90c338f231 |