Settings
NerModels
Bases: BaseSettings
Easily overwrite specific language model for specific languages via:
FTM_ANALYZE_NER_MODELS_DEU=de_core_news_lg
Source code in ftm_analyze/settings.py
Settings
Bases: BaseSettings
ftm-analyze
settings management using
pydantic-settings
Note
All settings can be set via environment variables or .env
file,
prepending FTM_ANALYZE_
(except for those with another alias)
Source code in ftm_analyze/settings.py
lid_model_path = Path('./models/lid.176.ftz')
class-attribute
instance-attribute
Local path to lid model
ner_models = NerModels()
class-attribute
instance-attribute
Spacy models
ner_type_model_confidence = 0.85
class-attribute
instance-attribute
Minimum confidence for ftm type predict model
ner_type_model_path = Path('./models/model_type_prediction.ftz')
class-attribute
instance-attribute
Local path to ftm type predict model
resolve_mentions = True
class-attribute
instance-attribute
Resolve known mentions via juditha