Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SEMAFOR Shallow Semantic Parser output
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<corpus ID="100" XMLCreated="Sat Sep 29 22:24:35 PDT 2012" name="ONE">
<documents>
<document ID="1" description="TWO">
<paragraphs>
<paragraph ID="2" documentOrder="1">
<sentences>
<sentence ID="0">
<text>Remind me to move my car next friday .</text>
<annotationSets>
<annotationSet ID="0" frameName="Evoking">
<layers>
<layer ID="1" name="Target">
<labels>
<label ID="101" end="5" name="Target" start="0"/>
</labels>
</layer>
<layer ID="2" name="FE">
<labels>
<label ID="201" end="8" name="Cognizer" start="7"/>
<label ID="202" end="35" name="Phenomenon" start="25"/>
</labels>
</layer>
</layers>
</annotationSet>
<annotationSet ID="1" frameName="Vehicle">
<layers>
<layer ID="101" name="Target">
<labels>
<label ID="10101" end="23" name="Target" start="21"/>
</labels>
</layer>
<layer ID="102" name="FE">
<labels>
<label ID="10201" end="23" name="Vehicle" start="21"/>
<label ID="10202" end="19" name="Possessor" start="18"/>
</labels>
</layer>
</layers>
</annotationSet>
<annotationSet ID="2" frameName="Motion">
<layers>
<layer ID="201" name="Target">
<labels>
<label ID="20101" end="16" name="Target" start="13"/>
</labels>
</layer>
<layer ID="202" name="FE">
<labels>
<label ID="20201" end="8" name="Theme" start="7"/>
<label ID="20202" end="35" name="Time" start="25"/>
</labels>
</layer>
</layers>
</annotationSet>
<annotationSet ID="3" frameName="Calendric_unit">
<layers>
<layer ID="301" name="Target">
<labels>
<label ID="30101" end="35" name="Target" start="30"/>
</labels>
</layer>
<layer ID="302" name="FE">
<labels>
<label ID="30201" end="35" name="Unit" start="30"/>
</labels>
</layer>
</layers>
</annotationSet>
</annotationSets>
</sentence>
<sentence ID="1">
<text>Can I schedule a 12 oclock for friday with jim ?</text>
<annotationSets>
<annotationSet ID="100" frameName="Capability">
<layers>
<layer ID="10001" name="Target">
<labels>
<label ID="1000101" end="2" name="Target" start="0"/>
</labels>
</layer>
<layer ID="10002" name="FE">
<labels>
<label ID="1000201" end="4" name="Entity" start="4"/>
</labels>
</layer>
</layers>
</annotationSet>
<annotationSet ID="101" frameName="Cardinal_numbers">
<layers>
<layer ID="10101" name="Target">
<labels>
<label ID="1010101" end="18" name="Target" start="17"/>
</labels>
</layer>
<layer ID="10102" name="FE">
<labels>
<label ID="1010201" end="25" name="Entity" start="20"/>
<label ID="1010202" end="18" name="Number" start="17"/>
</labels>
</layer>
</layers>
</annotationSet>
</annotationSets>
</sentence>
<sentence ID="2">
<text>What 's my schedule look like today ?</text>
<annotationSets>
<annotationSet ID="200" frameName="Calendric_unit">
<layers>
<layer ID="20001" name="Target">
<labels>
<label ID="2000101" end="34" name="Target" start="30"/>
</labels>
</layer>
<layer ID="20002" name="FE">
<labels>
<label ID="2000201" end="34" name="Unit" start="30"/>
</labels>
</layer>
</layers>
</annotationSet>
<annotationSet ID="201" frameName="Perception_active">
<layers>
<layer ID="20101" name="Target">
<labels>
<label ID="2010101" end="23" name="Target" start="20"/>
</labels>
</layer>
<layer ID="20102" name="FE">
<labels>
<label ID="2010201" end="18" name="Perceiver_agentive" start="11"/>
</labels>
</layer>
</layers>
</annotationSet>
</annotationSets>
</sentence>
</sentences>
</paragraph>
</paragraphs>
</document>
</documents>
</corpus>
@arisagithub

This comment has been minimized.

Show comment
Hide comment
@arisagithub

arisagithub Jun 1, 2016

Hello,
I run Semafor semantic parser and set outputfile argument to "/out.xml" but the output format is not xml.
How can i get XML output ?
If I should set a parameter in a script?
here is a sample output:
{"frames":[{"target":{"name":"Operational_testing","spans":[{"start":3,"end":4,"text":"test"}]},"annotationSets":[{"rank":0,"score":71.00063282566339,"frameElements":[{"name":"Product","spans":[{"start":4,"end":10,"text":"for SEMAFOR , a frame-semantic parser"}]}]}]}],"tokens":["This","is","a","test","for","SEMAFOR",",","a","frame-semantic","parser","."]}
{"frames":[{"target":{"name":"Shapes","spans":[{"start":5,"end":6,"text":"line"}]},"annotationSets":[{"rank":0,"score":11.818446277549976,"frameElements":[{"name":"Shape","spans":[{"start":5,"end":6,"text":"line"}]}]}]}],"tokens":["This","is","just","a","dummy","line","."]}
{"frames":[{"target":{"name":"Existence","spans":[{"start":0,"end":2,"text":"There 's"}]},"annotationSets":[{"rank":0,"score":52.10168633235354,"frameElements":[{"name":"Entity","spans":[{"start":2,"end":5,"text":"a Santa Claus"}]}]}]}],"tokens":["There","'s","a","Santa","Claus","!"]}
Any help will be appreciated.

Hello,
I run Semafor semantic parser and set outputfile argument to "/out.xml" but the output format is not xml.
How can i get XML output ?
If I should set a parameter in a script?
here is a sample output:
{"frames":[{"target":{"name":"Operational_testing","spans":[{"start":3,"end":4,"text":"test"}]},"annotationSets":[{"rank":0,"score":71.00063282566339,"frameElements":[{"name":"Product","spans":[{"start":4,"end":10,"text":"for SEMAFOR , a frame-semantic parser"}]}]}]}],"tokens":["This","is","a","test","for","SEMAFOR",",","a","frame-semantic","parser","."]}
{"frames":[{"target":{"name":"Shapes","spans":[{"start":5,"end":6,"text":"line"}]},"annotationSets":[{"rank":0,"score":11.818446277549976,"frameElements":[{"name":"Shape","spans":[{"start":5,"end":6,"text":"line"}]}]}]}],"tokens":["This","is","just","a","dummy","line","."]}
{"frames":[{"target":{"name":"Existence","spans":[{"start":0,"end":2,"text":"There 's"}]},"annotationSets":[{"rank":0,"score":52.10168633235354,"frameElements":[{"name":"Entity","spans":[{"start":2,"end":5,"text":"a Santa Claus"}]}]}]}],"tokens":["There","'s","a","Santa","Claus","!"]}
Any help will be appreciated.

@mosynaq

This comment has been minimized.

Show comment
Hide comment
@mosynaq

mosynaq Apr 6, 2017

This output is in json format. You'll just have to google it and find the way out, eg this.

mosynaq commented Apr 6, 2017

This output is in json format. You'll just have to google it and find the way out, eg this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment