Closed clementjumel closed 2 years ago
Hi @clementjumel, thanks for using the library and letting us know about this issue! Would you like to submit a PR to fix this?
Hi @clementjumel, thanks for using the library and letting us know about this issue! Would you like to submit a PR to fix this?
Sure, here it goes: #117 π
For some reason, locally, not all tests were passing before & after the change, even following the installation described here. π¬ Besides, given the nature of the fix, I don't think it's worth the implementation of tests for the fix!
Hi! I find your work with
edsnlp
really cool, and I'm working on integrating it in one of our tools at Arkhn π I found a very little mistake which prevents us from trying theHistory
component at all and which should be very easy to fix!Description
In the History class, you use an attribute
explain
, which is a boolean, however in the corresponding factory, you made it a string (right here).As a consequence, spaCy converts the parameter to a string, so the "explain mode" is always on, which is an issue when we try to serialize the documents (e.g. with
doc.to_bytes()
) as the history cues are not serializable. π¬How to reproduce the bug
which gives:
the last line exhibits that the explain feature here is always activated π
Your Environment