summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/grobid2json.py
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-02-16 20:32:40 +0100
committerbnewbold <bnewbold@robocracy.org>2021-02-23 15:19:48 -0800
commit0d46fb5fac3c7a1268618a3ec0a9956b79fdbeaf (patch)
treefb3b243dd2b228df37bbe3b94a6c54fcbf21ff12 /fatcat_scholar/grobid2json.py
parent537659325664b47b01c24e82cb4a0e850cd129c0 (diff)
downloadfatcat-scholar-0d46fb5fac3c7a1268618a3ec0a9956b79fdbeaf.tar.gz
fatcat-scholar-0d46fb5fac3c7a1268618a3ec0a9956b79fdbeaf.zip
Revert undesirable changes
Diffstat (limited to 'fatcat_scholar/grobid2json.py')
-rwxr-xr-xfatcat_scholar/grobid2json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/grobid2json.py b/fatcat_scholar/grobid2json.py
index 2c85047..5c44953 100755
--- a/fatcat_scholar/grobid2json.py
+++ b/fatcat_scholar/grobid2json.py
@@ -223,7 +223,7 @@ def main() -> None: # pragma no cover
args = parser.parse_args()
for filename in args.teifiles:
- content = open(filename).read()
+ content = open(filename, "r").read()
print(
json.dumps(
teixml2json(content, encumbered=(not args.no_encumbered)),