自然语言处理(NLP)
Project description
📌 简介
nlhappy致力于复现自然语言处理各类任务的SOTA模型。
文档地址:
它主要的依赖有
- transformers: 下载预训练权重
- pytorch-lightning: 模型训练
- datasets: 构建数据集
- pydantic: 数据校验
📌 安装
安装nlhappy
推荐先去pytorch官网安装pytorch和对应cuda
# pip 安装
pip install --upgrade pip
pip install --upgrade nlhappy
其他可选
推荐安装wandb用于可视化训练日志
- 安装:
pip install wandb
- 注册: https://wandb.ai/
- 获取认证: https://wandb.ai/authorize
- 登陆:
wandb login
- 使用
# 命令行训练
nlhappy datamodule=xxx model=xxx trainer=xxx logger=wandb
模型训练开始后去官网查看训练实况
📌 模型复现
实体抽取
模型名称 | 参考链接 |
---|---|
GlobalPointer | 科学空间 |
EfficientGlobalPointer | 科学空间 |
关系抽取
模型名称 | 参考链接 |
---|---|
GPLinker | 科学空间 |
事件抽取
模型名称 | 参考链接 |
---|---|
GPLinker | 科学空间 |
答案抽取
模型名称 | 参考链接 |
---|---|
GPLinker | - |
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
nlhappy-2023.1.31.tar.gz
(92.3 kB
view hashes)
Built Distribution
nlhappy-2023.1.31-py3-none-any.whl
(155.5 kB
view hashes)
Close
Hashes for nlhappy-2023.1.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 909b14b959a9b87eeddd7d37330afe2c36d268c03e8ca084e2b537a3773169dd |
|
MD5 | 2e2102dc22374d84b632e948c3379c49 |
|
BLAKE2b-256 | 819ac5c65805e5358ec7775bb8db0fca604fdafb19866372fa3d3c8181142ee8 |