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 :() |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
=== Determiner Noun === |
=== Determiner Noun === |
||
− | <table class="wikitable" style="tab-size: 2 |
+ | <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" |
+ | <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> |
||
<rule comment="REGLA: det noun"> |
<rule comment="REGLA: det noun"> |
||
<pattern> |
<pattern> |
||
Line 28: | Line 53: | ||
<lu> |
<lu> |
||
<clip pos="2" side="tl" part="lem"/> |
<clip pos="2" side="tl" part="lem"/> |
||
− | <clip pos="2" side="tl" part=" |
+ | <clip pos="2" side="tl" part="<span span="color: red;">a_pos</span>"/> |
<clip pos="2" side="tl" part="a_num"/> |
<clip pos="2" side="tl" part="a_num"/> |
||
<lit-tag v="4"/><!-- case --> |
<lit-tag v="4"/><!-- case --> |
||
Line 35: | Line 60: | ||
</out> |
</out> |
||
</action> |
</action> |
||
− | </rule></pre></td |
+ | </rule></pre></td> |
⚫ | |||
<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> |
||
Line 43: | Line 69: | ||
<attr-item tags="ND"/> |
<attr-item tags="ND"/> |
||
</def-attr></pre></td></tr> |
</def-attr></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> |