Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

User:Firespeaker/Transfer rule example

From Apertium
< User:Firespeaker(Difference between revisions)
Jump to: navigation, search
(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> ...")

Revision as of 21:49, 11 April 2019

Contents

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.
Personal tools