Difference between revisions of "Berik and English/Structural Transfer"

From LING073
Jump to: navigation, search
(Copulas)
(Copulas)
Line 9: Line 9:
 
* {{transferTest|bkl|eng|Ai taneyan.|I am not a child.}} ("I am not a child.")
 
* {{transferTest|bkl|eng|Ai taneyan.|I am not a child.}} ("I am not a child.")
 
*: {{transferMorphTest|bkl|eng|ai{{tag|prn}}{{tag|subj}} tane{{tag|n}}+yan{{tag|neg}}|prpers{{tag|prn}}{{tag|subj}}{{tag|p1}}{{tag|mf}}{{tag|sg}} be{{tag|vbser}}{{tag|pres}}{{tag|p1}}{{tag|sg}} not{{tag|adv}} a{{tag|det}}{{tag|ind}}{{tag|sg}} child{{tag|n}}{{tag|sg}}}}
 
*: {{transferMorphTest|bkl|eng|ai{{tag|prn}}{{tag|subj}} tane{{tag|n}}+yan{{tag|neg}}|prpers{{tag|prn}}{{tag|subj}}{{tag|p1}}{{tag|mf}}{{tag|sg}} be{{tag|vbser}}{{tag|pres}}{{tag|p1}}{{tag|sg}} not{{tag|adv}} a{{tag|det}}{{tag|ind}}{{tag|sg}} child{{tag|n}}{{tag|sg}}}}
 +
 +
<code>echo "Ai taneyan." | apertium -d ../ling073-bkl bkl-tagger
 +
^Ai<prn><subj>$ ^tane<n>+yan<neg>$^..<sent>$</code>
 +
 +
<code>echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-biltrans
 +
^Ai<prn><subj>/Prpers<prn><p1><mf><sg><subj>$ ^tane<n>/child<n>$ ^yan<neg>/not<adv>$^.<sent>/.<sent>$^.<sent>/.<sent>$</code>
 +
 +
<code>echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-chunker
 +
 +
apertium-transfer: Rule 6 Ai<prn><subj>/Prpers<prn><p1><mf><sg><subj>
 +
 +
apertium-transfer: Rule 3 tane<n>/child<n>
 +
 +
apertium-transfer: Rule 4 yan<neg>/not<adv>
 +
 +
apertium-transfer: Rule 1 .<sent>/.<sent>
 +
 +
apertium-transfer: Rule 1 .<sent>/.<sent>
 +
^prn<PRN><p1><sg>{^Prpers<prn><p1><mf><sg><subj>$}$ ^n<SN><sg>{^child<n><2>$}$ ^neg<NEG>{^not<adv>$}$^sent<SENT>{^.<sent>$}$^sent<SENT>{^.<sent>$}$</code>
 +
 +
<code>echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-interchunk
 +
 +
apertium-interchunk: Rule 2 prn<PRN><p1><sg>{^Prpers<prn><p1><mf><sg><subj>$} n<SN><sg>{^child<n><2>$} neg<NEG>{^not<adv>$}
 +
^prn<PRN><p1><sg>{^Prpers<prn><p1><mf><sg><subj>$}$ ^be<V><p1><sg>{^be<vbser><pres><2><3>$}$ ^neg<NEG>{^not<adv>$}$ ^n<SN><sg>{^child<n><2>$}$^sent<SENT>{^.<sent>$}$^sent<SENT>{^.<sent>$}$</code>
 +
 +
<code>echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-postchunk
 +
^Prpers<prn><p1><mf><sg><subj>$ ^be<vbser><pres><p1><sg>$ ^not<adv>$ ^child<n><sg>$^.<sent>$^.<sent>$</code>
 +
 +
<code>echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng
 +
I am not child.</code>

Revision as of 10:48, 12 April 2018

Pre-Evaluation

  • Edit distance: 61
  • Word Error Rate (WER): 89.71 %
  • Number of position-independent correct words: 8
  • Position-independent word error rate (PER): 88.24 %

Copulas

  • (bkl) Ai taneyan. → (eng) I am not a child. ("I am not a child.")
    (bkl) ai<prn><subj> tane<n>+yan<neg> → (eng) prpers<prn><subj><p1><mf><sg> be<vbser><pres><p1><sg> not<adv> a<det><ind><sg> child<n><sg>

echo "Ai taneyan." | apertium -d ../ling073-bkl bkl-tagger ^Ai<prn><subj>$ ^tane<n>+yan<neg>$^..<sent>$

echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-biltrans ^Ai<prn><subj>/Prpers<prn><p1><mf><sg><subj>$ ^tane<n>/child<n>$ ^yan<neg>/not<adv>$^.<sent>/.<sent>$^.<sent>/.<sent>$

echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-chunker

apertium-transfer: Rule 6 Ai<prn><subj>/Prpers<prn><p1><mf><sg><subj>

apertium-transfer: Rule 3 tane<n>/child<n>

apertium-transfer: Rule 4 yan<neg>/not<adv>

apertium-transfer: Rule 1 .<sent>/.<sent>

apertium-transfer: Rule 1 .<sent>/.<sent> ^prn<PRN><p1><sg>{^Prpers<prn><p1><mf><sg><subj>$}$ ^n<SN><sg>{^child<n><2>$}$ ^neg<NEG>{^not<adv>$}$^sent<SENT>{^.<sent>$}$^sent<SENT>{^.<sent>$}$

echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-interchunk

apertium-interchunk: Rule 2 prn<PRN><p1><sg>{^Prpers<prn><p1><mf><sg><subj>$} n<SN><sg>{^child<n><2>$} neg<NEG>{^not<adv>$} ^prn<PRN><p1><sg>{^Prpers<prn><p1><mf><sg><subj>$}$ ^be<V><p1><sg>{^be<vbser><pres><2><3>$}$ ^neg<NEG>{^not<adv>$}$ ^n<SN><sg>{^child<n><2>$}$^sent<SENT>{^.<sent>$}$^sent<SENT>{^.<sent>$}$

echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng-postchunk ^Prpers<prn><p1><mf><sg><subj>$ ^be<vbser><pres><p1><sg>$ ^not<adv>$ ^child<n><sg>$^.<sent>$^.<sent>$

echo "Ai taneyan." | apertium -d ../ling073-bkl-eng bkl-eng I am not child.