模型:
philschmid/distilroberta-base-ner-wikiann
任务:
标记分类许可:
apache-2.0这个模型是在wikiann数据集上通过fine-tuning得到的一个版本。
eval F1-Score: 83.78 test F1-Score: 83.76
from transformers import AutoTokenizer, AutoModelForTokenClassification from transformers import pipeline tokenizer = AutoTokenizer.from_pretrained("philschmid/distilroberta-base-ner-wikiann") model = AutoModelForTokenClassification.from_pretrained("philschmid/distilroberta-base-ner-wikiann") nlp = pipeline("ner", model=model, tokenizer=tokenizer, grouped_entities=True) example = "My name is Philipp and live in Germany" nlp(example)
训练时使用了以下超参数:
在评估集上取得了以下结果:
在测试集上取得了以下结果: