19ae606b4608957335ce16b8bd2a9bd2ecd7e098,tutorial/load_dictionaries.py,,load_acronym_dictionary,#,57
Before Change
diseases.update(doid)
dictfile = "data/dicts/ncbi_training_diseases.txt"
terms = [line.strip().split("\t")[0] for line in open(dictfile).readlines()]
terms = {word:1 for word in terms if word.isupper()}
diseases.update(terms)
// filter by char length
After Change
Load a dictionary of disease phrases **as a list**.
NOTE: Eventually we"ll want to pass along IDs
a = set()
// UMLS disorders
dictfile = "data/dicts/umls_disorders_v2.bz2"
diseases = [line.strip().split("\t")[0] for line in bz2.BZ2File(dictfile, "rb").readlines()]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: snorkel-team/snorkel
Commit Name: 19ae606b4608957335ce16b8bd2a9bd2ecd7e098
Time: 2016-07-01
Author: ajratner@gmail.com
File Name: tutorial/load_dictionaries.py
Class Name:
Method Name: load_acronym_dictionary
Project Name: sony/nnabla
Commit Name: 200b1939c3a87d1d1cba41b061bbaabdf8b1c233
Time: 2019-02-14
Author: Yuchi.Wen@sony.com
File Name: python/test/utils/conversion/gen_report.py
Class Name:
Method Name: obtain_export_opset_d
Project Name: automl/auto-sklearn
Commit Name: f754f90ed94c7db58f2d6573471b8a7d63828d87
Time: 2020-03-18
Author: feurerm@informatik.uni-freiburg.de
File Name: test/test_automl/test_automl.py
Class Name: AutoMLTest
Method Name: test_delete_non_winning_models