aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2019-10-02 18:00:12 -0700
committerBryan Newbold <bnewbold@archive.org>2019-10-02 18:00:12 -0700
commit9092f027004095f5cacb5dc870737751397872cc (patch)
treecae2c46975584db1ce3cb422157e61159766b765 /python
parent3f16467eb83ae95c8ecf7a3ce261ea8ee0ccc509 (diff)
downloadsandcrawler-9092f027004095f5cacb5dc870737751397872cc.tar.gz
sandcrawler-9092f027004095f5cacb5dc870737751397872cc.zip
add tests for affiliation extraction
Diffstat (limited to 'python')
-rw-r--r--python/tests/files/small.json16
-rw-r--r--python/tests/files/small.xml10
2 files changed, 25 insertions, 1 deletions
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-
<analytic>
<author>
<persName xmlns="http://www.tei-c.org/ns/1.0"><forename type="first">Brewster</forename><surname>Kahle</surname></persName>
+ <affiliation key="aff0">
+ <orgName type="department">Faculty ofAgricultrial Engineering</orgName>
+ <orgName type="laboratory">Plant Physiology Laboratory</orgName>
+ <orgName type="institution">Technion-Israel Institute of Technology</orgName>
+ <address>
+ <postCode>32000</postCode>
+ <settlement>Haifa</settlement>
+ <country key="IL">Israel</country>
+ </address>
+ </affiliation>
</author>
<author>
<persName xmlns="http://www.tei-c.org/ns/1.0"><forename type="first">J</forename><surname>Doe</surname></persName>