{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2026%2F12%2F06%2F165917\" title=\"BertForTokenClassification - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_url":"https://hatena.blog","type":"rich","provider_name":"Hatena Blog","categories":["DL"],"description":"BertForTokenClassification \u306f\u3001\u5165\u529b\u6587\u306e\u5404\u30c8\u30fc\u30af\u30f3\u3054\u3068\u306b\u30e9\u30d9\u30eb\u3092\u4e88\u6e2c\u3059\u308b\u30e2\u30c7\u30eb\u3067\u3059\u3002 \u4e3b\u306a\u7528\u9014: NER(Named Entity Recognition: \u56fa\u6709\u8868\u73fe\u62bd\u51fa)B-PER \u4eba\u540d\u958b\u59cbI-PER \u4eba\u540d\u7d9a\u304dB-ORG \u7d44\u7e54\u540d\u958b\u59cbB-LOC \u5834\u6240\u306e\u958b\u59cb\u306a\u3069 B = BeginI = InsideO = Outside from transformers import BertTokenizer, BertForTokenClassificationimport torch # \u4f8b\u3068\u3057\u3066NER\u30e2\u30c7\u30eb\u3092\u5229\u7528model_name = \"dbmdz/bert-large-\u2026","url":"https://htn20190109.hatenablog.com/entry/2026/12/06/165917","author_name":"HTN20190109","blog_title":"HTN20190109\u306e\u65e5\u8a18","title":"BertForTokenClassification","published":"2026-12-06 16:59:17","blog_url":"https://htn20190109.hatenablog.com/","height":"190","author_url":"https://blog.hatena.ne.jp/HTN20190109/","version":"1.0","width":"100%"}