This repository has been archived by the owner on May 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from bethard/masc-slab
Adds support for loading MASC annotations into a Slab (issue #19)
- Loading branch information
Showing
19 changed files
with
3,671 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
src/test/resources/masc/data/written/newspaper/nyt/20000424_nyt-NEW-cb.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><graph xmlns="http://www.xces.org/ns/GrAF/1.0/" xmlns:graf="http://www.xces.org/ns/GrAF/1.0/"> | ||
<graphHeader> | ||
<labelsDecl> | ||
<labelUsage label="Non-Committed Belief" occurs="2"/> | ||
<labelUsage label="Not Applicable" occurs="2"/> | ||
<labelUsage label="Committed Belief" occurs="3"/> | ||
</labelsDecl> | ||
<annotationSpaces> | ||
<annotationSpace as.id="cb"/> | ||
</annotationSpaces> | ||
</graphHeader> | ||
<region xml:id="cb-r0" anchors="62 67"/> | ||
<node xml:id="cb-n0"> | ||
<link targets="cb-r0"/> | ||
</node> | ||
<a xml:id="cb-N65577" label="Committed Belief" ref="cb-n0" as="cb"/> | ||
<region xml:id="cb-r1" anchors="87 95"/> | ||
<node xml:id="cb-n1"> | ||
<link targets="cb-r1"/> | ||
</node> | ||
<a xml:id="cb-N65593" label="Not Applicable" ref="cb-n1" as="cb"/> | ||
<region xml:id="cb-r2" anchors="104 108"/> | ||
<node xml:id="cb-n2"> | ||
<link targets="cb-r2"/> | ||
</node> | ||
<a xml:id="cb-N65609" label="Not Applicable" ref="cb-n2" as="cb"/> | ||
<region xml:id="cb-r3" anchors="164 172"/> | ||
<node xml:id="cb-n3"> | ||
<link targets="cb-r3"/> | ||
</node> | ||
<a xml:id="cb-N65625" label="Committed Belief" ref="cb-n3" as="cb"/> | ||
<region xml:id="cb-r4" anchors="198 202"/> | ||
<node xml:id="cb-n4"> | ||
<link targets="cb-r4"/> | ||
</node> | ||
<a xml:id="cb-N65641" label="Committed Belief" ref="cb-n4" as="cb"/> | ||
<region xml:id="cb-r5" anchors="208 226"/> | ||
<node xml:id="cb-n5"> | ||
<link targets="cb-r5"/> | ||
</node> | ||
<a xml:id="cb-N65657" label="Non-Committed Belief" ref="cb-n5" as="cb"/> | ||
<region xml:id="cb-r6" anchors="232 236"/> | ||
<node xml:id="cb-n6"> | ||
<link targets="cb-r6"/> | ||
</node> | ||
<a xml:id="cb-N65673" label="Non-Committed Belief" ref="cb-n6" as="cb"/> | ||
</graph> |
65 changes: 65 additions & 0 deletions
65
src/test/resources/masc/data/written/newspaper/nyt/20000424_nyt-NEW-event.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<graph xmlns="http://www.xces.org/ns/GrAF/1.0/" xmlns:graf="http://www.xces.org/ns/GrAF/1.0/"> | ||
<graphHeader> | ||
<labelsDecl> | ||
<labelUsage label="Urging" occurs="1"/> | ||
<labelUsage label="Saying" occurs="1"/> | ||
<labelUsage label="Hurting" occurs="1"/> | ||
<labelUsage label="Flowing" occurs="1"/> | ||
<labelUsage label="Allowing" occurs="1"/> | ||
</labelsDecl> | ||
<annotationSpaces> | ||
<annotationSpace as.id="event"/> | ||
</annotationSpaces> | ||
</graphHeader> | ||
<region xml:id="event-r0" anchors="62 67"/> | ||
<region xml:id="event-r1" anchors="87 95"/> | ||
<region xml:id="event-r2" anchors="104 108"/> | ||
<region xml:id="event-r3" anchors="198 202"/> | ||
<region xml:id="event-r4" anchors="232 236"/> | ||
<node xml:id="event-n0"> | ||
<link targets="event-r0"/> | ||
</node> | ||
<a xml:id="event-N65601" label="Urging" ref="event-n0" as="event"> | ||
<fs> | ||
<f name="theme" value="United Nations"/> | ||
<f name="agent" value="Tony Hall"/> | ||
</fs> | ||
</a> | ||
<node xml:id="event-n1"> | ||
<link targets="event-r1"/> | ||
</node> | ||
<a xml:id="event-N65625" label="Allowing" ref="event-n1" as="event"> | ||
<fs> | ||
<f name="theme" value="Flowing"/> | ||
<f name="agent" value="United Nations"/> | ||
</fs> | ||
</a> | ||
<node xml:id="event-n2"> | ||
<link targets="event-r2"/> | ||
</node> | ||
<a xml:id="event-N65649" label="Flowing" ref="event-n2" as="event"> | ||
<fs> | ||
<f name="theme" value="food & medicine"/> | ||
<f name="goal" value="Iraq"/> | ||
</fs> | ||
</a> | ||
<node xml:id="event-n3"> | ||
<link targets="event-r3"/> | ||
</node> | ||
<a xml:id="event-N65673" label="Saying" ref="event-n3" as="event"> | ||
<fs> | ||
<f name="theme" value="Hurting"/> | ||
<f name="agent" value="Hall"/> | ||
</fs> | ||
</a> | ||
<node xml:id="event-n4"> | ||
<link targets="event-r4"/> | ||
</node> | ||
<a xml:id="event-N65697" label="Hurting" ref="event-n4" as="event"> | ||
<fs> | ||
<f name="cause" value="UN economic sanctions"/> | ||
<f name="location" value="there (Iraq)"/> | ||
<f name="theme" value="millions of civilians"/> | ||
</fs> | ||
</a> | ||
</graph> |
Oops, something went wrong.