summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/importers/grobid_metadata.py3
1 files changed, 2 insertions, 1 deletions
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,