BioNExt-Extractor / configuration_bionextextractor.py
T-Almeida's picture
Upload model
f4c1f6e verified
raw
history blame
519 Bytes
from transformers import PretrainedConfig, AutoConfig
from typing import List
class BioNExtExtractorConfig(PretrainedConfig):
model_type = "relation-novelty-extractor"
def __init__(
self,
arch_type = "mha",
index_type = "both",
novel = True,
version="0.1.0",
**kwargs,
):
self.version = version
self.arch_type = arch_type
self.index_type = index_type
self.novel = novel
super().__init__(**kwargs)