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
115 stars 29 forks source link

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

Closed aricohen93 closed 10 months ago

aricohen93 commented 11 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 11 months ago

span_attributes could not be boolean or int

aricohen93 commented 11 months ago

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

aricohen93 commented 11 months ago

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

aricohen93 commented 11 months ago

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

aricohen93 commented 11 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 11 months ago
nlp.save("model") > ne marche pas
percevalw commented 11 months ago

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