Closed shern2 closed 1 year ago
Found that this will mess up build_entity_index()
where the values of pem
is assumed to be a Dict
instead of a List[Tuple]
.
https://github.com/amazon-science/ReFinED/blob/main/src/refined/offline_data_generation/preprocess_all.py#L112
Retracting this PR..
if
max_cands
is not specified,load_pem()
will outputDict[Dict]
instead ofDict[List]
, causing thepem.lmdb
built to have unexpected type by the candidate generator (get_candidates()
)Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.