edsnlp.pipes.base
BaseComponent
[source]
Bases: ABC
The BaseComponent
adds a set_extensions
method, called at the creation of the object.
It helps decouple the initialisation of the pipeline from the creation of extensions, and is particularly usefull when distributing EDSNLP on a cluster, since the serialisation mechanism imposes that the extensions be reset.