Skip to main content

自然语言处理(NLP)

Project description

nlhappy

PyTorch Lightning Config: Hydra Template WanDB



📌   简介

nlhappy致力于复现自然语言处理各类任务的SOTA模型。

文档地址:

它主要的依赖有

📌   安装

安装nlhappy

推荐先去pytorch官网安装pytorch和对应cuda

# pip 安装
pip install --upgrade pip
pip install --upgrade nlhappy
其他可选

推荐安装wandb用于可视化训练日志

  • 安装:
pip install wandb 
wandb login
  • 使用
# 命令行训练
nlhappy datamodule=xxx model=xxx trainer=xxx logger=wandb

模型训练开始后去官网查看训练实况

📌   模型复现

实体抽取

模型名称 参考链接
GlobalPointer 科学空间
EfficientGlobalPointer 科学空间

关系抽取

模型名称 参考链接
GPLinker 科学空间

事件抽取

模型名称 参考链接
GPLinker 科学空间

答案抽取

模型名称 参考链接
GPLinker -

Project details


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)

Uploaded Source

Built Distribution

nlhappy-2023.1.31-py3-none-any.whl (155.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page