Difference between revisions of "User:Firespeaker/Transfer rule example"
Jump to navigation
Jump to search
Firespeaker (talk | contribs) |
Firespeaker (talk | contribs) (→Determiner Noun: attempts at color and formatting :() |
||
(4 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
=== Determiner Noun === |
=== Determiner Noun === |
||
<table class="wikitable" style="tab-size: |
<table class="wikitable" style="tab-size: 2;"> |
||
<tr><th>rule</th><th></th><th></th></tr> |
<tr><th>rule</th><th>property</th><th>information</th></tr> |
||
<tr rowspan=" |
<tr><td rowspan="3"> |
||
<code><rule comment="REGLA: det noun"><br/> |
|||
	<pattern><br/> |
|||
		<pattern-item n="definites"/><br/> |
|||
		<pattern-item n="noun"/><br/> |
|||
	</pattern><br/> |
|||
	<action><br/> |
|||
		<out><br/> |
|||
			<chunk name="n" case="caseFirstWord"><br/> |
|||
				<tags><br/> |
|||
					<tag><lit-tag v="SN"/></tag><br/> |
|||
					<tag><lit-tag v="def"/></tag><br/> |
|||
					<tag><clip pos="2" side="tl" part="a_num"/></tag><br/> |
|||
					<tag><lit-tag v="CD"/></tag><br/> |
|||
				</tags><br/> |
|||
				<lu><br/> |
|||
					<clip pos="2" side="tl" part="lem"/><br/> |
|||
 					<clip pos="2" side="tl" part="a_pos"/><br/> |
|||
					<clip pos="2" side="tl" part="a_num"/><br/> |
|||
					<lit-tag v="4"/><!-- case --><br/> |
|||
				</lu><br/> |
|||
			</chunk><br/> |
|||
		</out><br/> |
|||
	</action><br/> |
|||
</rule><br/></code> |
|||
<pre> |
<pre> |
||
<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="<span span="color: red;">a_pos</span>"/> |
|||
<clip pos="2" side="tl" part="a_num"/> |
|||
<lit-tag v="4"/><!-- case --> |
|||
</lu> |
|||
</chunk> |
|||
</out> |
|||
</action> |
|||
</rule></pre></td> |
|||
⚫ | |||
</pre></td></tr> |
|||
<tr><td>relevant categories:</td><td></td></tr> |
<tr><td>relevant categories:</td><td></td></tr> |
||
<tr><td>relevant attributes:</td><td><pre> |
<tr><td>relevant attributes:</td><td><pre> |
||
<def-attr n="a_num"> |
|||
<attr-item tags="sg"/> |
|||
<attr-item tags="pl"/> |
|||
<attr-item tags="ND"/> |
|||
</def-attr></pre></td></tr> |
|||
</pre></td></tr> |
|||
⚫ | |||
</table> |
</table> |
Latest revision as of 15:04, 24 April 2019
Input text[edit]
- "I did not see the houses."
Output of tagger[edit]
Chunker[edit]
Determiner Noun[edit]
rule | property | information |
---|---|---|
<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="<span span="color: red;">a_pos</span>"/> <clip pos="2" side="tl" part="a_num"/> <lit-tag v="4"/><!-- case --> </lu> </chunk> </out> </action> </rule> |
pattern matches: | I did not see the houses. |
relevant categories: | ||
relevant attributes: | <def-attr n="a_num"> <attr-item tags="sg"/> <attr-item tags="pl"/> <attr-item tags="ND"/> </def-attr> |