User:Firespeaker/Transfer rule example

From Apertium
< User:Firespeaker
Revision as of 19:49, 11 April 2019 by Firespeaker (talk | contribs) (Created page with "== Input text == * "I did not see the houses." == Output of tagger == == Chunker == === Determiner Noun === <table class="wikitable"> <th>rule</th><th></th><th></th> ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Input text

  • "I did not see the houses."

Output of tagger

Chunker

Determiner Noun

rule
	<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><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="num"/>
						<clip pos="2" side="tl" part="poss"/>
						<clip pos="2" side="tl" part="frm"/>
						<lit-tag v="3"/><!-- case -->
					</lu>
				</chunk>
			</out>
		</action>
	</rule>
pattern matches:I did not see the houses.