Downloads · 30 days
6
13% of all-time downloads
Leonardolin/insurance_multiple_label_my83-v2
insurance_multiple_label_my83-v2 is a text classification model from Leonardolin. Use it when you need a label for a piece of text. It is set up for transformers.
Downloads · 30 days
6
13% of all-time downloads
All-time downloads
46
Public
Repo size
4.1 GB
Likes
0
Public
Click a slice to open those files.
.pt819 MB · 67%
From the Hugging Face model README
!pip install transformers datasets
from transformers import pipeline
pipe = pipeline(model="Leonardolin/insurance_multiple_label_my83-v2",task='text-classification')
text='一次給付型癌症險(your input)'
output=pipe(text,top_k=10)
output
labels=[]
for i in output:
if i['score']>0.5:
labels.append(i['label'])
print(i['label'])