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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file casrel_datautils-0.1.7.tar.gz.
File metadata
- Download URL: casrel_datautils-0.1.7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f88a8a96d69568e1e45601552041c61c62d1270ef6cf2efda1a7d2c46fa42683
|
|
| MD5 |
c01ec0e1e01e04016f8b1b95a88e756b
|
|
| BLAKE2b-256 |
94356c017a91bb3b2dad657178190b0852b725183ab24eb8acc967945de6af24
|
File details
Details for the file casrel_datautils-0.1.7-py3-none-any.whl.
File metadata
- Download URL: casrel_datautils-0.1.7-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d0aab30c829197406b50f8d752510dceb926aed565b421f64665fb1a75bd079
|
|
| MD5 |
aece43baafc47d9bd3886fde9438710a
|
|
| BLAKE2b-256 |
5b7b8bfeac1090b3f0377838c43d9bcda1ca5baf7dcd6f7aed6f61e1a413ff96
|