Difference between revisions of "User:Firespeaker/Transfer rule example"

From Apertium
Jump to navigation Jump to search
Line 9: Line 9:
   
 
=== Determiner Noun ===
 
=== Determiner Noun ===
<table class="wikitable" style="tab-size: 2.5;">
+
<table class="wikitable" style="tab-size: 2;">
 
<tr><th>rule</th><th>property</th><th>information</th></tr>
 
<tr><th>rule</th><th>property</th><th>information</th></tr>
 
<tr rowspan="3"><td><pre>
 
<tr rowspan="3"><td><pre>

Revision as of 20:00, 11 April 2019

Input text

  • "I did not see the houses."

Output of tagger

Chunker

Determiner Noun

rulepropertyinformation
<rule comment="REGLA: det noun">
	<pattern>
		<pattern-item n="definites"/>
		<pattern-item n="noun"/>
	</pattern>
	<action>
		<out>
			<chunk name="n" case="caseFirstWord">
				<tags>
					<tag><lit-tag v="SN"/></tag>
					<tag><lit-tag v="def"/></tag>
					<tag><clip pos="2" side="tl" part="a_num"/></tag>
					<tag><lit-tag v="CD"/></tag>
				</tags>
				<lu>
					<clip pos="2" side="tl" part="lem"/>
					<clip pos="2" side="tl" part="pos"/>
					<clip pos="2" side="tl" part="a_num"/>
					<lit-tag v="4"/><!-- case -->
				</lu>
			</chunk>
		</out>
	</action>
</rule>
relevant categories:
relevant attributes:
<def-attr n="a_num">
	<attr-item tags="sg"/>
	<attr-item tags="pl"/>
	<attr-item tags="ND"/>
</def-attr>
pattern matches:I did not see the houses.