From 1aa68e94508559d88891d44182e61aba07f828f5 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 18:11:13 -0800 Subject: fix GROBID null/short abstract additions --- python/fatcat_tools/importers/grobid_metadata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/fatcat_tools/importers/grobid_metadata.py b/python/fatcat_tools/importers/grobid_metadata.py index 84771083..28358959 100644 --- a/python/fatcat_tools/importers/grobid_metadata.py +++ b/python/fatcat_tools/importers/grobid_metadata.py @@ -79,7 +79,8 @@ class GrobidMetadataImporter(EntityImporter): extra_grobid = dict() - if obj.get('abstract') and len(obj.get('abstract')) < MAX_ABSTRACT_BYTES: + abstract = obj.get('abstract') + if abstract and len(abstract) < MAX_ABSTRACT_BYTES and len(abstract) > 10: abobj = dict( mimetype="text/plain", language=None, -- cgit v1.2.3