Skip to main content

a library that get text embeddings

Project description

unlp

PyPI version Supported Python Versions PRs Welcome

star star star

gitHub欢迎提pull requests, 如果有bug新需求,请反馈issue

unlp

unlp是一些经常需要用到的NLP算法包,有助于您学习和使用基于深度学习的文本处理。

安装

python3.6+

pip install unlp 
pip install -r requirements.txt

unlp模块


  1. 根据nlp的任务来构建这个包,主要有无监督学习、有监督学习以及文本增强的一些常有方法;
  2. 无监督学习中有关键词抽取,向量嵌入和相似度计算;
  3. 监督学习中有分类任务,命名实体识别,文本生成等;
  4. 文本增强常用方法,比如回译,同义词替换等。

unlp使用

具体参见示例目录

无监督学习方法

详细使用说明

  1. 关键词抽取;
  2. 向量嵌入;
  3. 相似度计算;
  4. 语义搜索;
    ...

监督学习方法

详细使用说明

  1. 文本分类;
  2. 命名实体识别;
  3. 文本摘要;
  4. 对话生成;
    ...

文本数据增强

详细使用说明

  1. 回译;
  2. EDA(同义词替换、插入、交换和删除);
    ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

unlp-1.4.6-py3-none-any.whl (2.9 MB 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