A small package about small basic IO operation when coding
Project description
Current version
1.0.5
备注
最新版本在nlpertools里,不在src/nlpertools里
Introduction
This is a package of functions commonly used by NLP/data workers, which can simplify some reading and writing operations and make the code more readable. It mainly includes two parts: basic reading and writing tools and data processing functions commonly used in machine learning/deep learning.
io # 基本的读写工具。包括了文件读写、文件夹读写、数据读写、词频统计等功能。
dir # 文件夹读写
file # 文件读写
other # 其他
ml # 机器学习/深度学习工作中常用的数据处理函数。包括划分十折交叉数据、常见json格式数据读取等功能。
openApi # 网络开源接口
plugin # 常用插件
reminder # 提示
other # 其他一些未分组功能
Document
https://nlpertools.readthedocs.io/en/latest/
Development Guide
-
import 全部放在一个文件里面,所有都从里面找,通过utils可以输出所用到的所有import
-
然后运行脚本,生成打包到pypi里的nlpertools
-
因为里面有很多的引用,需要依赖,不可能全部都安装
-
类似paddle、ltp的import需要判断是否使用才import,因为import的时间太长 例子:
class STEM(object):
from ltp import LTP
def __init__(self, IPT_MODEL_PATH):
self.ltp = LTP(IPT_MODEL_PATH)
Emample
import nlpertools
a = nlpertools.readtxt_list_all_strip('res.txt')
# 或
b = nlpertools.io.file.readtxt_list_all_strip('res.txt')
pypi用
- setup.cfg
- pyproject.toml
文档用
- mkdocs.yml
- .readthedocs.yml
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
nlpertools-1.0.5.tar.gz
(26.2 kB
view hashes)
Built Distribution
nlpertools-1.0.5-py3-none-any.whl
(29.9 kB
view hashes)
Close
Hashes for nlpertools-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf992cb950a7dd30b111a5c28db8c7cdf79841a4588ee46be8c24a805fbbffde |
|
MD5 | c3f861d52d0f365e110e216a125724b4 |
|
BLAKE2b-256 | 48bd2cdcc3de7ba0c5277c9d0eeeb26c9767a17f907090f0b7de87f8db4c0194 |