Skip to main content

A Chinese relation extraction data utility toolkit based on CasRel model

Project description

casrel_datautils

这是一个基于 CasRel 模型的中文关系抽取数据处理工具包,支持 BERT 预训练模型。

支持的bert模型

bert-base-chinese: 默认中文 BERT 基础模型,适用于通用中文任务,参数量适中,bert_dim=768。

bert-large-chinese: 较大规模的中文 BERT 模型,适用于需要更高精度的大型数据集,bert_dim=1024。

hfl/chinese-roberta-wwm-ext: 基于 RoBERTa 的中文模型,带全词掩码,适合复杂关系抽取任务,bert_dim=768。

hfl/chinese-bert-wwm: 带全词掩码的中文 BERT,适用于需要更好语义理解的任务,bert_dim=768。

安装

pip install casrel_datautils

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

casrel_datautils-0.1.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

casrel_datautils-0.1.4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file casrel_datautils-0.1.4.tar.gz.

File metadata

  • Download URL: casrel_datautils-0.1.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for casrel_datautils-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8918b55bf9e2db299c4b6a95f0fc2d6ea60eef7e06e4a2daec741012b0208120
MD5 631138d5e77882b607a14887e213aea5
BLAKE2b-256 25e28594036b690ae3c32559bd45578ecc43a653b5111106ea763ce5888335ca

See more details on using hashes here.

File details

Details for the file casrel_datautils-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for casrel_datautils-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f1b4d1a4b03e1c2b928c0f59a1c2da233ffc0946e47c594ddf5bc520831373
MD5 4abb710b145aece5f3bc0631d6c2c069
BLAKE2b-256 534e4aeb19d2b9abdfbd2c128f7d0a362b00d1cde9981dada2ea7a0f8106b29c

See more details on using hashes here.

Supported by

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