This standard Transformers token-classification model predicts these configured
contiguous entity types: GENE_PROTEIN. Token labels use deterministic BIO
encoding, while Polly NER returns character spans.
microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext at immutable revision e1354b7a3a09615f6aba48dfad4b7a613eef7062https://github.com/ElucidataInc/polly-ner.git at commit 8372b7e9913dfc8d5bb1835c4a1efdd5cecbeb27The private training data is referenced for provenance only. No corpus text, record metadata, predictions, or error examples are included in this repository.
train: ElucidataInc/bc2gm-cleaned at b5e4ff67578f83821fdffeda92097533106c2128, configuration default, split trainvalidation: ElucidataInc/bc2gm-cleaned at b5e4ff67578f83821fdffeda92097533106c2128, configuration default, split validationevaluation: ElucidataInc/bc2gm-cleaned at b5e4ff67578f83821fdffeda92097533106c2128, configuration default, split testMetrics require exact equality of character start, end, and semantic label.
| Dataset | Micro F1 | Macro F1 | Records | Characters |
|---|---|---|---|---|
| validation | 0.8441052289704449 | 0.8441052289704449 | 2478 | 378063 |
| bc2gm-test | 0.8332414336352895 | 0.8332414336352895 | 4948 | 760629 |
{
"experiment": "bc2gm-gene-protein-v0.1",
"gradient_accumulation_steps": 1,
"learning_rate": 2e-05,
"mixed_precision": "bf16",
"num_train_epochs": 5.0,
"per_device_train_batch_size": 16,
"seed": 42,
"warmup_ratio": 0.1,
"weight_decay": 0.01
}
from polly_ner import NERPredictor
predictor = NERPredictor.from_pretrained(
"ElucidataInc/polly-ner-gene-protein",
revision="v0.1.0",
)
result = predictor.predict(
id="example-1",
text="Example entity text.",
)
from transformers import pipeline
ner = pipeline(
"token-classification",
model="ElucidataInc/polly-ner-gene-protein",
revision="v0.1.0",
aggregation_strategy="simple",
)
predictions = ner("Example entity text.")
The releaser supplied the license identifier mit. Review the license
and organizational approval before publication.
microsoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext