File size: 690 Bytes
9ba689d 82bd2af 9ba689d 3064e9c 9ba689d 519e43a 9ba689d 1d90b90 9ba689d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
from transformers import PretrainedConfig, AutoConfig
from typing import List
class BioNExtTaggerConfig(PretrainedConfig):
model_type = "crf-tagger"
def __init__(
self,
augmentation = "unk",
context_size = 64,
percentage_tags = 0.2,
p_augmentation = 0.5,
crf_reduction = "mean",
version="0.1.2",
**kwargs,
):
self.version = version
self.augmentation = augmentation
self.context_size = context_size
self.percentage_tags = percentage_tags
self.p_augmentation = p_augmentation
self.crf_reduction = crf_reduction
super().__init__(**kwargs)
|