Views
No views yet
The model was trained on bionlp and bc4cdr dataset, pretrained on this pubmed-pretrained roberta model All the labels, the possible token classes.
1{"label2id":
2 {
3 "O": 0,
4 "Chemical": 1,
5 }
6 }aggregation_strategy arguments offered by hf, but by the way of training, I discard any entropy loss for appending subwords, like only the label for the 1st subword token is not -100, after many search effort, I can't find a way to achieve that with default pipeline, hence I fancy an inference class myself.1!pip install forgebox
2from forgebox.hf.train import NERInference
3ner = NERInference.from_pretrained("raynardj/ner-chemical-bionlp-bc5cdr-pubmed")
4a_df = ner.predict(["text1", "text2"])check our NER model on