Loading annotation/Entity/Basedata/words.dtd 0 → 100644 +3 −0 Original line number Diff line number Diff line <!ELEMENT words (word*)> <!ELEMENT word (#PCDATA)> <!ATTLIST word id ID #REQUIRED> No newline at end of file annotation/Entity/Markables/markables.dtd 0 → 100644 +6 −0 Original line number Diff line number Diff line <!ELEMENT markables (markable*)> <!ELEMENT markable EMPTY> <!ATTLIST markable id ID #REQUIRED> <!ATTLIST markable span CDATA #REQUIRED> <!ATTLIST markable member CDATA #IMPLIED> <!ATTLIST markable pointer IDREF #IMPLIED> annotation/Entity/Styles/muc_style.xsl 0 → 100644 +56 −0 Original line number Diff line number Diff line <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:mmax="org.eml.MMAX2.discourse.MMAX2DiscourseLoader" xmlns:sentence="www.eml.org/NameSpaces/sentence" xmlns:coref="www.eml.org/NameSpaces/coref" xmlns:entity="www.comp.leeds.ac.uk/markert/entity"> <xsl:output method="text" indent="no" omit-xml-declaration="yes"/> <xsl:strip-space elements="*"/> <!-- SENTENCE: 1 SENTENCE PER LINE --> <xsl:template match="sentence:markable" mode="closing"> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="words"> <xsl:apply-templates/> </xsl:template> <xsl:template match="word"> <xsl:value-of select="mmax:registerDiscourseElement(@id)"/> <xsl:text> </xsl:text> <xsl:apply-templates select="mmax:getStartedMarkables(@id)" mode="opening"/> <xsl:value-of select="mmax:setDiscourseElementStart()"/> <xsl:apply-templates/> <xsl:value-of select="mmax:setDiscourseElementEnd()"/> <xsl:apply-templates select="mmax:getEndedMarkables(@id)" mode="closing"/> </xsl:template> <xsl:template match="entity:markable" mode="opening"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addLeftMarkableHandle(@mmax_level, @id,'[')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> <xsl:template match="entity:markable" mode="closing"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addRightMarkableHandle(@mmax_level, @id,']')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> <xsl:template match="coref:markable" mode="opening"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addLeftMarkableHandle(@mmax_level, @id,'(')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> <xsl:template match="coref:markable" mode="closing"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addRightMarkableHandle(@mmax_level, @id,')')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> </xsl:stylesheet> Loading
annotation/Entity/Basedata/words.dtd 0 → 100644 +3 −0 Original line number Diff line number Diff line <!ELEMENT words (word*)> <!ELEMENT word (#PCDATA)> <!ATTLIST word id ID #REQUIRED> No newline at end of file
annotation/Entity/Markables/markables.dtd 0 → 100644 +6 −0 Original line number Diff line number Diff line <!ELEMENT markables (markable*)> <!ELEMENT markable EMPTY> <!ATTLIST markable id ID #REQUIRED> <!ATTLIST markable span CDATA #REQUIRED> <!ATTLIST markable member CDATA #IMPLIED> <!ATTLIST markable pointer IDREF #IMPLIED>
annotation/Entity/Styles/muc_style.xsl 0 → 100644 +56 −0 Original line number Diff line number Diff line <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:mmax="org.eml.MMAX2.discourse.MMAX2DiscourseLoader" xmlns:sentence="www.eml.org/NameSpaces/sentence" xmlns:coref="www.eml.org/NameSpaces/coref" xmlns:entity="www.comp.leeds.ac.uk/markert/entity"> <xsl:output method="text" indent="no" omit-xml-declaration="yes"/> <xsl:strip-space elements="*"/> <!-- SENTENCE: 1 SENTENCE PER LINE --> <xsl:template match="sentence:markable" mode="closing"> <xsl:text> </xsl:text> </xsl:template> <xsl:template match="words"> <xsl:apply-templates/> </xsl:template> <xsl:template match="word"> <xsl:value-of select="mmax:registerDiscourseElement(@id)"/> <xsl:text> </xsl:text> <xsl:apply-templates select="mmax:getStartedMarkables(@id)" mode="opening"/> <xsl:value-of select="mmax:setDiscourseElementStart()"/> <xsl:apply-templates/> <xsl:value-of select="mmax:setDiscourseElementEnd()"/> <xsl:apply-templates select="mmax:getEndedMarkables(@id)" mode="closing"/> </xsl:template> <xsl:template match="entity:markable" mode="opening"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addLeftMarkableHandle(@mmax_level, @id,'[')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> <xsl:template match="entity:markable" mode="closing"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addRightMarkableHandle(@mmax_level, @id,']')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> <xsl:template match="coref:markable" mode="opening"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addLeftMarkableHandle(@mmax_level, @id,'(')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> <xsl:template match="coref:markable" mode="closing"> <xsl:value-of select="mmax:startBold()"/> <xsl:value-of select="mmax:addRightMarkableHandle(@mmax_level, @id,')')"/> <xsl:value-of select="mmax:endBold()"/> </xsl:template> </xsl:stylesheet>