medcat.config.config_transformers_ner
Classes:
-
ConfigTransformersNER–The transformer NER config
-
General–The general part of the Transformers NER config
ConfigTransformersNER
Bases: SerialisableBaseModel
The transformer NER config
Methods:
-
get_hash–
Attributes:
-
general(General) – -
model_config–
model_config
class-attribute
instance-attribute
model_config = ConfigDict(extra='allow', validate_assignment=True)
get_hash
Source code in medcat-v2/medcat/config/config_transformers_ner.py
43 44 45 46 47 48 | |
General
Bases: SerialisableBaseModel
The general part of the Transformers NER config
Attributes:
-
chunking_overlap_window(Optional[int]) –Size of the overlap window used for chunking
-
description(str) –Should provide a basic description of this MetaCAT model
-
last_train_on(Optional[float]) – -
model_config– -
model_name(str) –Can be path also
-
name(str) – -
ner_aggregation_strategy(str) –Agg strategy for HF pipeline for NER
-
pipe_batch_size_in_chars(int) –How many characters are piped at once into the meta_cat class
-
seed(int) – -
test_size(float) – -
verbose_metrics(bool) –
chunking_overlap_window
class-attribute
instance-attribute
Size of the overlap window used for chunking
description
class-attribute
instance-attribute
description: str = 'No description'
Should provide a basic description of this MetaCAT model
model_config
class-attribute
instance-attribute
model_config = ConfigDict(extra='allow', validate_assignment=True, protected_namespaces=())
ner_aggregation_strategy
class-attribute
instance-attribute
ner_aggregation_strategy: str = 'simple'
Agg strategy for HF pipeline for NER
pipe_batch_size_in_chars
class-attribute
instance-attribute
pipe_batch_size_in_chars: int = 20000000
How many characters are piped at once into the meta_cat class