UBERT was the winner solution in the
2022 AIWIN ARTIFICIAL INTELLIGENCE WORLD INNOVATIONS: Chinese Insurance Small Sample Multi-Task
. We developed a unified framework based on BERT-like backbone for multiple tasks and objectives. Our UBERT owns first place, as described in leaderboards A and B. In addition to the unavailable datasets in the challenge, we carefully collect over 70 datasets (1,065,069 samples in total) from a variety of tasks for open-source UBERT. Moreover, we apply
MacBERT-Base
as the backbone. Besides out-of-the-box functionality, our UBERT can be employed in various scenarios such as NLI, entity recognition, and reading comprehension. The example codes can be found in
Github
.
使用 Usage
Pip install fengshen:
git clone https://github.com/IDEA-CCNL/Fengshenbang-LM.git
cd Fengshenbang-LM
pip install --editable ./
Run the code:
import argparse
from fengshen import UbertPipelines
total_parser = argparse.ArgumentParser("TASK NAME")
total_parser = UbertPipelines.pipelines_args(total_parser)
args = total_parser.parse_args()
args.pretrained_model_path = "IDEA-CCNL/Erlangshen-Ubert-110M-Chinese"
test_data=[
{
"task_type": "抽取任务",
"subtask_type": "实体识别",
"text": "这也让很多业主据此认为,雅清苑是政府公务员挤对了国家的经适房政策。",
"choices": [
{"entity_type": "小区名字"},
{"entity_type": "岗位职责"}
],
"id": 0}
]
model = UbertPipelines(args)
result = model.predict(test_data)
for line in result:
print(line)
引用 Citation
如果您在您的工作中使用了我们的模型,可以引用我们的对该模型的论文:
If you are using the resource for your work, please cite the our paper for this model:
@article{fengshenbang/ubert,
author = {JunYu Lu and
Ping Yang and
Jiaxing Zhang and
Ruyi Gan and
Jing Yang},
title = {Unified {BERT} for Few-shot Natural Language Understanding},
journal = {CoRR},
volume = {abs/2206.12094},
year = {2022}
}
If you are using the resource for your work, please cite the our
overview paper
:
@article{fengshenbang,
author = {Jiaxing Zhang and Ruyi Gan and Junjie Wang and Yuxiang Zhang and Lin Zhang and Ping Yang and Xinyu Gao and Ziwei Wu and Xiaoqun Dong and Junqing He and Jianheng Zhuo and Qi Yang and Yongfeng Huang and Xiayu Li and Yanghan Wu and Junyu Lu and Xinyu Zhu and Weifeng Chen and Ting Han and Kunhao Pan and Rui Wang and Hao Wang and Xiaojun Wu and Zhongshen Zeng and Chongpei Chen},
title = {Fengshenbang 1.0: Being the Foundation of Chinese Cognitive Intelligence},
journal = {CoRR},
volume = {abs/2209.02970},
year = {2022}
}
Erlangshen-Ubert-110M-Chinese huggingface.co is an AI model on huggingface.co that provides Erlangshen-Ubert-110M-Chinese's model effect (), which can be used instantly with this IDEA-CCNL Erlangshen-Ubert-110M-Chinese model. huggingface.co supports a free trial of the Erlangshen-Ubert-110M-Chinese model, and also provides paid use of the Erlangshen-Ubert-110M-Chinese. Support call Erlangshen-Ubert-110M-Chinese model through api, including Node.js, Python, http.
Erlangshen-Ubert-110M-Chinese huggingface.co is an online trial and call api platform, which integrates Erlangshen-Ubert-110M-Chinese's modeling effects, including api services, and provides a free online trial of Erlangshen-Ubert-110M-Chinese, you can try Erlangshen-Ubert-110M-Chinese online for free by clicking the link below.
IDEA-CCNL Erlangshen-Ubert-110M-Chinese online free url in huggingface.co:
Erlangshen-Ubert-110M-Chinese is an open source model from GitHub that offers a free installation service, and any user can find Erlangshen-Ubert-110M-Chinese on GitHub to install. At the same time, huggingface.co provides the effect of Erlangshen-Ubert-110M-Chinese install, users can directly use Erlangshen-Ubert-110M-Chinese installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
Erlangshen-Ubert-110M-Chinese install url in huggingface.co: