From 9092f027004095f5cacb5dc870737751397872cc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 2 Oct 2019 18:00:12 -0700 Subject: add tests for affiliation extraction --- python/tests/files/small.json | 16 +++++++++++++++- python/tests/files/small.xml | 10 ++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/python/tests/files/small.json b/python/tests/files/small.json index 7c75187..eb93d9e 100644 --- a/python/tests/files/small.json +++ b/python/tests/files/small.json @@ -1,7 +1,21 @@ { "title": "Dummy Example File", "authors": [ - {"name": "Brewster Kahle", "given_name": "Brewster", "surname": "Kahle"}, + { + "name": "Brewster Kahle", + "given_name": "Brewster", + "surname": "Kahle", + "affiliation": { + "department": "Faculty ofAgricultrial Engineering", + "laboratory": "Plant Physiology Laboratory", + "institution": "Technion-Israel Institute of Technology", + "address": { + "postCode": "32000", + "settlement": "Haifa", + "country": "Israel" + } + } + }, {"name": "J Doe", "given_name": "J", "surname": "Doe"} ], "journal": { diff --git a/python/tests/files/small.xml b/python/tests/files/small.xml index 78b9ba2..4de4059 100644 --- a/python/tests/files/small.xml +++ b/python/tests/files/small.xml @@ -25,6 +25,16 @@ xsi:schemaLocation="http://www.tei-c.org/ns/1.0 /srv/grobid/grobid-0.5.1/grobid- BrewsterKahle + + Faculty ofAgricultrial Engineering + Plant Physiology Laboratory + Technion-Israel Institute of Technology +
+ 32000 + Haifa + Israel +
+
JDoe -- cgit v1.2.3