Difference between revisions of "User:Firespeaker/Transfer rule example"
Jump to navigation
Jump to search
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> ...") |
Firespeaker (talk | contribs) |
||
Line 9: | Line 9: | ||
=== Determiner Noun === |
=== Determiner Noun === |
||
− | <table class="wikitable"> |
+ | <table class="wikitable" style="tab-size: 3;"> |
<th>rule</th><th></th><th></th> |
<th>rule</th><th></th><th></th> |
||
− | <tr><td> |
+ | <tr rowspan="4"><td> |
<pre> |
<pre> |
||
<rule comment="REGLA: det noun"> |
<rule comment="REGLA: det noun"> |
||
Line 24: | Line 24: | ||
<tag><lit-tag v="SN"/></tag> |
<tag><lit-tag v="SN"/></tag> |
||
<tag><lit-tag v="def"/></tag> |
<tag><lit-tag v="def"/></tag> |
||
⚫ | |||
<tag><lit-tag v="CD"/></tag> |
<tag><lit-tag v="CD"/></tag> |
||
</tags> |
</tags> |
||
Line 29: | Line 30: | ||
<clip pos="2" side="tl" part="lem"/> |
<clip pos="2" side="tl" part="lem"/> |
||
<clip pos="2" side="tl" part="pos"/> |
<clip pos="2" side="tl" part="pos"/> |
||
− | <clip pos="2" side="tl" part=" |
+ | <clip pos="2" side="tl" part="a_num"/> |
− | < |
+ | <lit-tag v="4"/><!-- case --> |
⚫ | |||
− | <lit-tag v="3"/><!-- case --> |
||
</lu> |
</lu> |
||
</chunk> |
</chunk> |
||
Line 39: | Line 38: | ||
</rule> |
</rule> |
||
</pre></td> |
</pre></td> |
||
− | <td> |
+ | <tr><td>relevant categories:</td><td></td></tr> |
+ | <tr><td>relevant attributes:</td><td><pre> |
||
− | |||
+ | <def-attr n="a_num"> |
||
− | </tr> |
||
+ | <attr-item tags="sg"/> |
||
+ | <attr-item tags="pl"/> |
||
+ | <attr-item tags="ND"/> |
||
+ | </def-attr> |
||
+ | </pre></td></tr> |
||
+ | <tr><td>pattern matches:</td><td>I did not see <b>the houses</b>.</td></tr> |
||
</table> |
</table> |
Revision as of 19:55, 11 April 2019
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><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="pos"/> <clip pos="2" side="tl" part="a_num"/> <lit-tag v="4"/><!-- case --> </lu> </chunk> </out> </action> </rule> |
||
relevant categories: | ||
relevant attributes: | <def-attr n="a_num"> <attr-item tags="sg"/> <attr-item tags="pl"/> <attr-item tags="ND"/> </def-attr> | |
pattern matches: | I did not see the houses. |