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
Revision as of 21:49, 11 April 2019 by Firespeaker (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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