aphp / edsnlp

Modular, fast NLP framework, compatible with Pytorch and spaCy, offering tailored support for French clinical notes.
https://aphp.github.io/edsnlp/
BSD 3-Clause "New" or "Revised" License
112 stars 29 forks source link

Connectors not working [brat, json] & training issues #242

Closed aricohen93 closed 8 months ago

aricohen93 commented 8 months ago

Description

Problems:

How to reproduce the bug

this example is not working https://aphp.github.io/edsnlp/v0.10.2/data/standoff/

aricohen93 commented 8 months ago

span_attributes could not be boolean or int

aricohen93 commented 8 months ago

edsnlp.data.write_json([doc], "path/to/json/dir", converter="omop") >> il faut mettre un fichier, et pas un dir

aricohen93 commented 8 months ago

json : lines = False ça marche pas avec plusieurs docs

aricohen93 commented 8 months ago

so, path is a path to dir or file in function of lines argument

aricohen93 commented 8 months ago

https://aphp.github.io/edsnlp/v0.10.2/tutorials/make-a-training-script/#6-looping-through-the-training-data


 output = component.module_forward(batch[component.name]) >> replace by batch[name]
aricohen93 commented 8 months ago
nlp.save("model") > ne marche pas
percevalw commented 8 months ago

Hello, can you paste here the traceback of some of the errors you got please ?