Skip to content
BenjaminWaldron edited this page Dec 12, 2005 · 6 revisions

Sample MAF standoff annotation document:

<?xml version='1.0' encoding='UTF8'?>
 <!DOCTYPE maf SYSTEM 'maf.dtd' [<!ENTITY text SYSTEM 'text.xml'>]>
 <maf addressing='xchar' creator='lkb-maf-tokens' date='12:11:43 12/12/2005 (UTC)' language='en.US'>
  <token id='t1' from='.0' to='.3' value='the'/>
  <token id='t2' from='.4' to='.7' value='dog'/>
  <token id='t3' from='.8' to='.13' value='barks'/>
  <fsm init='v0' final='v3'>
   <state id='v0'/>
   <state id='v1'/>
   <state id='v2'/>
   <state id='v3'/>
   <transition source='v0' target='v1'>
    <wordForm form='the' tag='' tokens='t1'>
     <fs>
      <f name='stem'>THE</f>
     </fs>
    </wordForm>
   </transition>
   <transition source='v1' target='v2'>
    <wordForm form='dog' tag='' tokens='t2'>
     <fs>
      <f name='stem'>DOG</f>
     </fs>
    </wordForm>
   </transition>
   <transition source='v2' target='v3'>
    <wordForm form='barks' tag='PLUR_NOUN_ORULE' tokens='t3'>
     <fs>
      <f name='stem'>BARK</f>
      <f name='partial-tree'>((PLUR_NOUN_ORULE &quot;BARKS&quot;))</f>
     </fs>
    </wordForm>
   </transition>
   <transition source='v2' target='v3'>
    <wordForm form='barks' tag='THIRD_SG_FIN_VERB_ORULE' tokens='t3'>
     <fs>
      <f name='stem'>BARK</f>
      <f name='partial-tree'>((THIRD_SG_FIN_VERB_ORULE &quot;BARKS&quot;))</f>
     </fs>
    </wordForm>
   </transition>
  </fsm>
 </maf>

Page under construction...

Clone this wiki locally