acdh.xml 3.17 KB
<?xml version="1.0" encoding="UTF-8" ?>
<mtas>

	<!-- START MTAS INDEX CONFIGURATION -->
	<index>
		<!-- START GENERAL SETTINGS MTAS INDEX PROCESS -->
		<payload index="true" />
		<offset index="true" />
		<realoffset index="true" />
		<parent index="true" />
		<!-- END GENERAL SETTINGS MTAS INDEX PROCESS -->
	</index>
	<!-- END MTAS INDEX CONFIGURATION -->



	<!-- START CONFIGURATION MTAS SKETCH PARSER -->
	<parser name="mtas.analysis.parser.MtasSketchParser">
		<!-- START GENERAL SETTINGS MTAS SKETCH PARSER -->
		<autorepair value="true" />
		<!-- END GENERAL SETTINGS MTAS SKETCH PARSER -->

		<mappings>
		
		  <mapping type="word">
		    <condition>
          <item type="ancestorGroupName" not="true" condition="field" />
        </condition>
		  </mapping>
		
		  <mapping type="group" name="field">
		  </mapping>
		  <mapping type="group" name="s">
        <token type="string" offset="false">
          <pre>
            <item type="name" />
          </pre>
          <post>
            <item type="attribute" name="class" />
          </post>
        </token>        
      </mapping>
      <mapping type="group" name="p">
        <token type="string" offset="false">
          <pre>
            <item type="name" />
          </pre>
          <post>
            <item type="attribute" name="class" />
          </post>
        </token>
      </mapping>        
		
			<mapping type="wordAnnotation" name="0">
				<token type="string" offset="false" parent="false">
					<pre>
						<item type="string" value="t" />
					</pre>
					<post>
						<item type="text" />
					</post>
				</token>
				<token type="string" offset="false" realoffset="false" parent="false">
          <pre>
            <item type="string" value="t_lc" />
          </pre>
          <post>
            <item type="text" filter="ascii,lowercase" />
          </post>          
        </token>
			</mapping>
			<mapping type="wordAnnotation" name="1">
        <token type="string" offset="false" realoffset="false" parent="false">
          <pre>
            <item type="string" value="pos1" />
          </pre>
          <post>
            <item type="textSplit" value="." filter="split(0)" />
          </post>
        </token> 
        <token type="string" offset="false" realoffset="false" parent="false">
          <pre>
            <item type="string" value="feat" />
          </pre>
          <post>
            <item type="textSplit" value="." filter="split(1-10)" />
          </post>
        </token>      
      </mapping>
      <mapping type="wordAnnotation" name="2">
        <token type="string" offset="false" realoffset="false" parent="false">
          <pre>
            <item type="string" value="pos2" />
          </pre>
          <post>
            <item type="text" />
          </post>
        </token>      
      </mapping>
      <mapping type="wordAnnotation" name="3">
        <token type="string" offset="false" realoffset="false" parent="false">
          <pre>
            <item type="string" value="lemma" />
          </pre>
          <post>
            <item type="text" />
          </post>
        </token>      
      </mapping>
		</mappings>
		
	</parser>
	<!-- END CONFIGURATION MTAS SKETCH PARSER -->

</mtas>