NLP text processing toolkit for Deep Learning
Project description
FERN
Fern用于NLP的模型开发结构控制。通过它可以控制文本预处理、模型搭建、训练器:
- 文本预处理:数据下载、数据清洗、数据转换和数据分割
- 模型搭建:模型保存与加载、模型架构打印
- 模型训练:单步/epoch训练与评估、评估函数设置、损失函数设置、label权重设置
Fern的设计目的主要为了解决不同NLP工程中重复代码过多问题,减少流程性代码,从而避免数据交互过程中的随机bug出现
安装
-
从
pypi
安装$ pip install Fern2
-
从源码安装
$ pip install -e git+https://github.com/Jasonsey/Fern.git
使用教程
建议查看源码中函数的使用说明
变量命名规则
为了方便定义,对容易分歧变量命名做如下约定:
-
对于数据变量,同类型变量书写规则:
data_train
,data_val
label_train
,label_val
-
对于指标变量,同类型变量书写规则:
val_loss
,val_acc
,val_binary_acc
train_loss
,train_acc
-
对于其他变量,按照
首先它属于a, 其次它属于b
规则命名变量名:a_b
path_dataset
版本变更日志
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
Fern2-1.1.1.dev4.tar.gz
(24.1 kB
view hashes)
Built Distribution
Fern2-1.1.1.dev4-py3-none-any.whl
(29.4 kB
view hashes)
Close
Hashes for Fern2-1.1.1.dev4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25574905207936288a3f1e3026f07c9b92f66fb5788143170d1a29ee6a92cca5 |
|
MD5 | af158600189da91cda7b299721906c5f |
|
BLAKE2b-256 | f93265633a51270e0c47b45eadee6720c1b8887cee4d0bd48c85806e2fd71eee |