Downloads · 30 days
0
Tetsuo3003/highrisk_medical_japanese_2tasks
highrisk_medical_japanese_2tasks is a machine learning model from Tetsuo3003. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This is a Japanese BERT-based binary classification model fine-tuned to detect "risk" in medical-related texts.
Downloads · 30 days
0
Access
Public
Updated Jul 24, 2025
Repo size
445 MB
Likes
0
Public
Click a slice to open those files.
.bin445 MB · 100%
From the Hugging Face model README
This is a Japanese BERT-based binary classification model fine-tuned to detect "risk" in medical-related texts.
これは、医療関連の日本語テキストに対して「リスクあり」または「リスクなし」を分類するBERTベースの分類モデルです。
tohoku-nlp/bert-base-japanese-v30: リスクなし(No Risk)1: リスクあり(Risk Present)from transformers import AutoTokenizer, AutoModelForSequenceClassification
model = AutoModelForSequenceClassification.from_pretrained("あなたのユーザー名/モデル名")
tokenizer = AutoTokenizer.from_pretrained("あなたのユーザー名/モデル名")
text = "夜中に震えがあり、トイレに行けず困ったそうです。"
inputs = tokenizer(text, return_tensors="pt", truncation=True, padding=True)
outputs = model(**inputs)
pred = outputs.logits.argmax(dim=1).item()
label_map = {0: "リスクなし", 1: "リスクあり"}
print(label_map[pred])
This model is released under the MIT License.
本モデルは MITライセンス のもとで公開されています。
tetsuo3003(例)