-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Description
Hello,
Thanks a lot for your great work on eds-pseudo and eds-nlp.
I am trying to run eds-pseudo on an instance with default ephemeral storage.
I succeed in loading "AP-HP/eds-pseudo-public" model from HuggingFace the first time with:
import edsnlp
import edsnlp.pipes as eds
nlp = edsnlp.load("AP-HP/eds-pseudo-public")
But, to avoid having to load it every time, I want to save it on disk (on a persistent path) with:
nlp.to_disk(path)
But, when I start again the instance, I can't load back the model:
nlp = edsnlp.load(path)
RegistryError: Can't find 'eds_pseudo.simple_rules' in registry edsnlp -> factories. Available names: SOFA, accents, attribute_ruler, beam_ner, beam_parser, charlson, consultation_dates, contextual-matcher, dates, doc_cleaner, eds.AIDS, eds.CKD, eds.COPD, eds.SOFA, eds.TNM, eds.accents, eds.adicap, eds.aids, eds.alcohol, eds.biaffine_dep_parser, eds.cerebrovascular_accident, eds.charlson, eds.cim10, eds.ckd, eds.congestive_heart_failure, eds.conll_dict2doc, eds.connective_tissue_disease, eds.consultation_dates, eds.contextual-matcher, eds.contextual_matcher, eds.copd, eds.covid, eds.dates, eds.dementia, eds.diabetes, eds.drugs, eds.elston-ellis, eds.elston_ellis, eds.elstonellis, eds.emergency.ccmu, eds.emergency.gemsa, eds.emergency.priority, eds.emergency_ccmu, eds.emergency_gemsa, eds.emergency_priority, eds.endlines, eds.ents_doc2dict, eds.explode, eds.extractive_qa, eds.family, eds.hemiplegia, eds.history, eds.hypothesis, eds.leukemia, eds.liver_disease, eds.llm_markup_extractor, eds.lymphoma, eds.markup_to_doc, eds.matcher, eds.measurements, eds.measures, eds.myocardial_infarction, eds.negation, eds.ner_crf, eds.nested_ner, eds.normalizer, eds.omop_dict2doc, eds.omop_doc2dict, eds.peptic_ulcer_disease, eds.peripheral_vascular_disease, eds.pollution, eds.quantities, eds.quotes, eds.reason, eds.remove-lowercase, eds.remove_lowercase, eds.reported_speech, eds.score, eds.sections, eds.sentences, eds.sofa, eds.solid_tumor, eds.spaces, eds.span_classifier, eds.span_linker, eds.span_pooler, eds.span_qualifier, eds.split, eds.standoff_dict2doc, eds.standoff_doc2dict, eds.suicide_attempt, eds.tables, eds.terminology, eds.text_cnn, eds.tnm, eds.tobacco, eds.transformer, eds.umls, emergency.ccmu, emergency.gemsa, emergency.priority, endlines, entity_linker, entity_ruler, family, fr.lemmatizer, future_entity_ruler, hypothesis, lemmatizer, matcher, merge_entities, merge_noun_chunks, merge_subtokens, morphologizer, negation, ner, normalizer, parser, pollution, quotes, reason, remove-lowercase, reported_speech, rspeech, score, sections, sentences, sentencizer, senter, spaces, span_finder, span_ruler, spancat, spancat_singlelabel, tables, tagger, terminology, textcat, textcat_multilabel, tok2vec, token_splitter, trainable_lemmatizer
Sorry, for this basic question.
Is there anything I miss to register back eds-pseudo?
Thanks a lot,
How to reproduce the bug
Your Environment
- Operating System: Ubuntu 24.04.3 LTS
- Python Version Used: 3.12
- EDS-Pseudo Version Used: 0.4.0
- Environment Information:
Metadata
Metadata
Assignees
Labels
No labels