Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code in "applications" doesn't work; experiments not reproducible #5

Closed
tmadl opened this issue Jul 15, 2021 · 7 comments
Closed

Code in "applications" doesn't work; experiments not reproducible #5

tmadl opened this issue Jul 15, 2021 · 7 comments

Comments

@tmadl
Copy link

tmadl commented Jul 15, 2021

A lot of the imports in the scripts under the "applications" subfolder fail - for example:
from trove.utils import score_umls_ontologies
from trove.labelers.norm import lowercase, strip_affixes

This makes it impossible to reproduce the experiments in the paper

Could you please share these functions (or the previous version of the repo) to make the code runnable?
Thanks a lot in advance!

@dlrenz
Copy link

dlrenz commented Jul 16, 2021

I can confirm this. I even went through the repo's git history and couldn't find any working version.
Functions such as load_*_dict(ionary), load_*_dataset(s), load_*_abbrvs, score_umls_ontologies, umls_ontology_dicts are all non-existent, and I also cannot find anything in the codecase (functions that have different names etc.) that would implement similar functionalities.

@jason-fries
Copy link
Contributor

jason-fries commented Jul 16, 2021

Hi @tmadl , @dlrenz,

Apologies for the confusion! On the main branch applications are being refactored to better serve as a reproducible benchmark, so they currently don't work out-of-box. I expect the updated versions will be ready in a few weeks.

The manuscript branch includes implementations of the functions you are referencing (score_umls_ontologies, strip_affixes, umls_ontology_dicts, etc) and some scripts for applying labeling functions, training the label model, and training BioBERT. There is some complexity around initializing and using the UMLS in the older branch, since it assumes a parquet file has already been generated. In general, this branch isn't as polished as it should be, but it should be possible to reproduce the public NER results. Don't hesitate to spam Issues if you encounter other blockers.

Thank you for your interest and questions!!

@tmadl
Copy link
Author

tmadl commented Jul 20, 2021

Thanks Jason. I've tried the manuscript branch, but there is an error trying to reproduce the experiments in the scripts folder

When running scripts/experiments/drug_lfs.sh, the file trove/labelers/tools.py, at line 64, in load_medispan requires a file called MEDNAME and looks for it under data/supervision/ontologies/MEDNAME

However, the "ontologies" folder in the shared GDrive folder (linked in the QuickStart section of Readme) does not contain any file called MEDNAME - nor does any GDrive subfolder - and neither is this file present in the github repo it seems

Could you please share where to find MEDNAME (as well as any other dependencies or instructions required to reproduce the experiments in your manuscript? At a minimum, I'd love to be able to reproduce the i2b2 results...)

Thanks a lot in advance!

@tmadl
Copy link
Author

tmadl commented Jul 20, 2021

Similar issue when running disorder_lfs.sh - ontologies/CARD/cui2sty.tsv is missing...

Please let us know how to obtain the missing files (or, if it's easier, maybe do a bulk upload/share of the necessary files?)

@tmadl
Copy link
Author

tmadl commented Jul 23, 2021

Since MEDNAME is not essential I was able to get i2b2 to work. However, without ontologies/CARD/cui2sty.tsv, ontologies/CARD/VABBR_CV_beta.txt and ontologies/CARD/VABBR_DS_beta.txt the shareclef2014 results cannot be reproduced

Please do share where nad how to obtain these files - thanks in advance

@jason-fries
Copy link
Contributor

jason-fries commented Jul 24, 2021

Hi @tmadl,
Thanks for the great debugging! I went ahead and uploaded the CARD dictionaries to Google Drive (they are also available for direct download here). I've also updated the documentation for running the full pipeline and cleaned up the drug task scripts. Let us know if you encounter any more issues!

@jason-fries
Copy link
Contributor

Let me know if you have additional problems! I'll close this issue for now, but happy to re-open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants