bigscience-workshop / biomedical

Tools for curating biomedical training data for large-scale language modeling
453 stars 114 forks source link

Fix Hub preview error: ModuleNotFoundError: No module named 'bioc' #752

Closed albertvillanova closed 1 year ago

albertvillanova commented 1 year ago

Note that the library bioc is only used in bigbiohub.py to make a type hint annotation:

def get_texts_and_offsets_from_bioc_ann(ann: bioc.BioCAnnotation):

In this case, the error can be fixed by:

Fix #751.

albertvillanova commented 1 year ago

You can check the validity of the proposed solution by merging this PR in the Hugging Face Hub: