Skip to content

Commit

Permalink
[uk] disambiguation update
Browse files Browse the repository at this point in the history
  • Loading branch information
arysin committed Sep 20, 2017
1 parent 94e66e8 commit cc73c63
Showing 1 changed file with 40 additions and 9 deletions.
Expand Up @@ -144,8 +144,8 @@
</pattern>
<disambig action="remove" postag=".*:rare.*"/>
<example type="ambiguous"
inputform="Можна[можна/predic,можний/adj:f:v_kly:rare,можний/adj:f:v_naz:rare]"
outputform="Можна[можна/predic]"><marker>Можна</marker> поломати ногу.</example>
inputform="Можна[можна/noninfl:&amp;predic,можний/adj:f:v_kly:rare,можний/adj:f:v_naz:rare]"
outputform="Можна[можна/noninfl:&amp;predic]"><marker>Можна</marker> поломати ногу.</example>
<example type="untouched">Можний дядько.</example>
</rule>

Expand Down Expand Up @@ -247,6 +247,26 @@
</rule>
-->

<rule name="Номер_будинку" id="STREET_NUMBER">
<pattern>
<token regexp="yes" inflected="yes">вул.|вулиця|номер|№</token>
<token min="0" max="3">
<exception regexp="yes">[0-9]+-[а-еєґ]</exception>
</token>
<marker>
<token regexp="yes">[0-9]+-[а-еєґ]</token>
</marker>
</pattern>
<disambig action="add"><wd lemma="0-а" pos="number"/></disambig>
<example type="ambiguous"
inputform="17-а[17-й/adj:f:v_naz:&amp;numr]"
outputform="17-а[0-а/number,17-й/adj:f:v_naz:&amp;numr]">З № <marker>17-а</marker>.</example>
<example type="ambiguous"
inputform="17-а[17-й/adj:f:v_naz:&amp;numr]"
outputform="17-а[0-а/number,17-й/adj:f:v_naz:&amp;numr]">На вул. Рубчака <marker>17-а</marker>.</example>
<example type="untouched">17-а сторінка.</example>
</rule>

<rule name="Люба з великої літери в середині речення - ім'я" id="DIS_LUBA_INSIDE_SENTENCE">
<pattern case_sensitive="yes">
<and>
Expand Down Expand Up @@ -413,6 +433,20 @@
<example type="untouched">лютого морозу</example>
</rule>

<rule name="Чайна" id="chayna">
<pattern>
<marker>
<token inflected="yes">чайна</token>
</marker>
<token inflected="yes" regexp="yes">ложка|сервіз|церемонія|кущ|троянда|заварка|запарка</token>
</pattern>
<disambig><match no="1" postag="adj.*" postag_regexp="yes"/></disambig>
<example type="ambiguous"
inputform="чайній[чайна/noun:inanim:f:v_dav,чайна/noun:inanim:f:v_mis,чайний/adj:f:v_dav,чайний/adj:f:v_mis]"
outputform="чайній[чайний/adj:f:v_dav,чайний/adj:f:v_mis]">на <marker>чайній</marker> церемонії</example>
<example type="untouched">меню чайних і ресторанів</example>
</rule>

<rule name="Прикметники без порівняльного ступеня" id="NON_COMPARATIVE">
<pattern>
<marker>
Expand All @@ -431,21 +465,18 @@
<pattern>
<token><exception>,</exception><exception postag="SENT_START"/></token>
<marker>
<and>
<token postag_regexp="yes" postag="verb.*"/>
<token postag_regexp="yes" postag="insert"/>
</and>
<token postag_regexp="yes" postag="verb.*insert.*"/>
</marker>
<!--
<token><exception>,</exception><exception postag="SENT_END"/></token>
-->
</pattern>
<disambig><match no="1" postag="verb.*" postag_regexp="yes"/></disambig>
<disambig><match no="1" postag="(verb.*):&amp;insert(.*)" postag_regexp="yes" postag_replace="$1$2"/></disambig>
<example type="ambiguous"
inputform="бачиш[бачити/verb:imperf:pres:s:2,бачиш/insert]"
inputform="бачиш[бачити/verb:imperf:pres:s:2:&amp;insert]"
outputform="бачиш[бачити/verb:imperf:pres:s:2]">по <marker>бачиш</marker> його</example>
<example type="ambiguous"
inputform="сподіваюся[сподіватися/verb:rev:imperf:pres:s:1,сподіваюся/insert]"
inputform="сподіваюся[сподіватися/verb:rev:imperf:pres:s:1:&amp;insert]"
outputform="сподіваюся[сподіватися/verb:rev:imperf:pres:s:1]">тому варто <marker>сподіваюся</marker>, що так буде</example>
<example type="untouched">велике, бачиш, цабе</example>
</rule>
Expand Down

0 comments on commit cc73c63

Please sign in to comment.