diff options
| author | Terry Truong <terry06890@gmail.com> | 2022-05-14 20:37:29 +1000 |
|---|---|---|
| committer | Terry Truong <terry06890@gmail.com> | 2022-05-14 21:20:15 +1000 |
| commit | 9a647b3fe26b9928c254003446b96e9ea0ea70e1 (patch) | |
| tree | 1610a2147f111462b7d5bbd957734a3b49aa5409 /backend/data | |
| parent | 36d3d535b646e65f4b38e8097ce0b74b784520ba (diff) | |
Add desc-resolution special-case for root node
Diffstat (limited to 'backend/data')
| -rwxr-xr-x | backend/data/downloadImgsForReview.py | 2 | ||||
| -rwxr-xr-x | backend/data/genDbpData.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/backend/data/downloadImgsForReview.py b/backend/data/downloadImgsForReview.py index d5ccf62..4099584 100755 --- a/backend/data/downloadImgsForReview.py +++ b/backend/data/downloadImgsForReview.py @@ -45,7 +45,7 @@ eolIds = eolIds.intersection(imgListIds) eolIds = sorted(eolIds) MAX_IMGS_PER_ID = 3 -MAX_THREADS = 10 +MAX_THREADS = 5 numThreads = 0 threadException = None # Used for ending main thread after a non-main thread exception def downloadImg(url, outFile): diff --git a/backend/data/genDbpData.py b/backend/data/genDbpData.py index 6cc8d33..c43ad86 100755 --- a/backend/data/genDbpData.py +++ b/backend/data/genDbpData.py @@ -65,6 +65,7 @@ for (name, variants) in nameToVariants.items(): nodeToLabel[name] = variants[0] for name in nodeToLabel: del nameToVariants[name] +nodeToLabel["cellular organisms"] = "organism" # Special case for root node print("Number of conflicts: {}".format(len(nameToVariants))) # Try conflict resolution via category-list # Does a generic-category pass first (avoid stuff like Pan being classified as a horse instead of an ape) |
