diff options
-rw-r--r-- | python/refcat/tasks.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/refcat/tasks.py b/python/refcat/tasks.py index 4265050..d42bfa5 100644 --- a/python/refcat/tasks.py +++ b/python/refcat/tasks.py @@ -1552,9 +1552,11 @@ class UnmatchedRefsReparse(Refcat): if i % 100000 == 0: self.logger.debug("@{}".format(i)) doc = json.loads(line) - if not "unstructured" in doc: + if not "biblio" in doc: continue - unstructured = doc["unstructured"] + if not "unstructured" in doc["biblio"]: + continue + unstructured = doc["biblio"]["unstructured"] if len(unstructured) < 5: continue grobid_resp = requests.post( |