Closed percevalw closed 3 months ago
In Python 3.7, pendulum (2.1.2) does not support dill (0.3.7) serialization, ex: The main culprit is dill but since dill has dropped support for Python 3.7, we cannot expect the fix to come from it. The plan is therefore to drop pendulum
import edsnlp, edsnlp.pipes as eds # with cols "note_id", "note_text" and optionally "note_datetime" my_omop_df = ... nlp = edsnlp.blank("eds") nlp.add_pipe(eds.dates(as_ents=True)) docs = edsnlp.data.from_pandas(my_omop_df) docs = docs.map_pipeline(nlp) docs = docs.set_processing(backend="multiprocessing") docs = docs.to_pandas( converter="ents", span_attributes={"date.datetime": "datetime"}, )
In Python 3.7, pendulum (2.1.2) does not support dill (0.3.7) serialization, ex: The main culprit is dill but since dill has dropped support for Python 3.7, we cannot expect the fix to come from it. The plan is therefore to drop pendulum
See the stacktrace
``` --------------------------------------------------------------------------- NameError Traceback (most recent call last) /tmp/ipykernel_2272/1949767627.py inYour Environment