Difference between revisions of "Fijian and English/Structural transfer"

From LING073
Jump to: navigation, search
(Post-evaluation)
(fij → eng)
Line 70: Line 70:
 
*Interchunk:<code>^nom_adj_dem<SN><sg>{^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$}$^sent<SENT>{^.<sent>$}$</code>
 
*Interchunk:<code>^nom_adj_dem<SN><sg>{^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$}$^sent<SENT>{^.<sent>$}$</code>
 
*Postchunk:<code>^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$^.<sent>$</code>
 
*Postchunk:<code>^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$^.<sent>$</code>
*Note: Before this I tried to add number tags by writing <code><clip pos="2" side="tl" part="a_num"></code> in the lexical unit section, but since Fijian nouns do not change for numbers (e.g. ’oro can be translated as both 'village' and 'villages'), the English noun still did not what number tag to take and thus the number tag never showed up in the chunk. Instead, I added the number tag manually to the noun and demonstrative in the English translation by <lit-tag>, setting it to be "sg" in this pattern. It seems to work in this case, but in patterns with contexts indicating that the nouns are plural, e.g. the occurrence of numbers or "a lot of" around, I will need to write a separate rule with "pl" set to the lit-tag.
+
*Note: Before this I tried to add number tags by writing <code><clip pos="2" side="tl" part="a_num"></code> in the lexical unit section, but since Fijian nouns do not change for numbers (e.g. ’oro can be translated as both 'village' and 'villages'), the English noun still did not what number tag to take and thus the number tag never showed up in the chunk. Instead, I added the number tag manually to the noun and demonstrative in the English translation by <lit-tag>, setting it to be "sg" in this pattern. It seems to work in this case, but in fact without contexts of the sentence, it is inaccurate to translate the phrase "a ’oro levu yai" as "this big village" (e.g. {{transfterTest|fij|eng|Au raica koya a ’oro levu yai|I saw this big village.}} and {{transfterTest|fij|eng|Au raica ira a ’oro levu yai|I saw these big villages.}}). So I need to change my example from a phrase to a sentence with enough contexts and write a rule for that pattern instead.
  
 
==Post-evaluation==
 
==Post-evaluation==

Revision as of 11:58, 15 April 2018

Initial Evaluation

  • eng → fij
-WER:75.81%
-PER:70.97%
  • fij → eng
-WER:82.14%
-PER:76.79%

eng → fij

I am working on the first contrastive grammar point--word orders within NPs. An English NP has the demonstrative and adjectives preceding the head noun, while Fijian has all of the modifiers following the head noun. Besides, the article in front of the head noun is obligatory even if a demonstrative is present, but its corresponding translation in English--the determiner the--is not allowed to occur when there is a demonstrative in the NP. In terms of tags, Fijian does not have number tags on either nouns or demonstratives.

  • Example phrase: (eng) this big village → (fij) a ’oro levu yai
  • Current translation to Fijian:#yai levu #’oro
  • Taggers: ^this/this<det><dem><sg>$ ^big/big<adj><sint>$ ^village/village<n><sg>$^./.<sent>$
  • Biltrans: ^this<det><dem><sg>/yai<det><dem><sg>$ ^big<adj><sint>/levu<adj>$ ^village<n><sg>/’oro<n><sg>$^.<sent>/.<sent>$

Step 1: remove number tags and add a<art> in the nom chunk:

  • Chunker: ^dem<det><dem>{^yai<det><dem>$}$ ^adj<adj><sint>{^levu<adj>$}$ ^nom<n>{^a<art> ^’oro<n>$}$^sent<SENT>{^.<sent>$}$

Step 2: change word orders:

  • Interchunk: ^nom<n>{^a<art> ^’oro<n>$}$ ^adj<adj><sint>{^levu<adj>$}$ ^dem<det><dem>{^yai<det><dem>$}$^sent<SENT>{^.<sent>$}$
  • Postchunk: ^a<art>$ ^’oro<n>$ ^levu<adj>$ ^yai<det><dem>$^.<sent>$
  • Translation: a ’oro levu yai

fij → eng

Same grammar point as above.

The relationship between the Fijian article a and the English definite determiner the was complicated to implement. For now, I set the article a to translate to null all the time in the bilingual dictionary. This works here and for most complex NPs such as those with demonstratives and possessives, but not for NPs without any <det>, such as a ’oro levu (ART village big) or a ’oro (ART village); for these simple NPs, I will need to write separate rules with the two patterns in the fij-eng.t1x file.

  • Example phrase: (fij) a ’oro levu yai → (eng) this big village
  • Current translation from Fijian to English: #village big #this
  • Taggers:
-Fijian:^a/a<art>$ ^’oro/’oro<n>$ ^levu/levu<adj>$ ^yai/yai<det><dem>$^./.<sent>$
-English(desired):^this/this<det><dem><sg>$ ^big/big<adj><sint>$ ^village/village<n><sg>$^./.<sent>$
  • Biltrans:^a<art>/$ ^’oro<n>/village<n>$ ^levu<adj>/big<adj><sint>$ ^yai<det><dem>/this<det><dem>$^.<sent>/.<sent>$

Fijian nouns and demonstratives do not distinguish numbers, so I want to add a number tag for the English noun and the demonstrative this, and then change the word order from head first in Fijian to head final in English:

<rule comment="REGLA: NPs with demonstratives">
      <pattern>
        <pattern-item n="article"/>
        <pattern-item n="noun_reg"/>
        <pattern-item n="adj"/>
        <pattern-item n="dem"/>
      </pattern>
      <action>
        <out>
          <chunk name="nom_adj_dem" case="caseFirstWord">
            <tags>
              <tag><lit-tag v="SN"/></tag>
              <tag><lit-tag v="sg"/></tag>
            </tags>
            <lu>
              <clip pos="4" side="tl" part="lem"/>
              <clip pos="4" side="tl" part="a_pos"/>
              <clip pos="4" side="tl" part="subcategories"/>
              <lit-tag v="sg"/>
            </lu>
            <b/>
            <lu>
              <clip pos="3" side="tl" part="whole"/>
            </lu>
            <b/>
            <lu>
              <clip pos="2" side="tl" part="lem"/>
              <clip pos="2" side="tl" part="a_pos"/>
              <lit-tag v="sg"/>
            </lu>
          </chunk>
        </out>
      </action>
    </rule>
  • Chunker:^nom_adj_dem<SN><sg>{^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$}$^sent<SENT>{^.<sent>$}$
  • Interchunk:^nom_adj_dem<SN><sg>{^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$}$^sent<SENT>{^.<sent>$}$
  • Postchunk:^this<det><dem><sg>$ ^big<adj><sint>$ ^village<n><sg>$^.<sent>$
  • Note: Before this I tried to add number tags by writing <clip pos="2" side="tl" part="a_num"> in the lexical unit section, but since Fijian nouns do not change for numbers (e.g. ’oro can be translated as both 'village' and 'villages'), the English noun still did not what number tag to take and thus the number tag never showed up in the chunk. Instead, I added the number tag manually to the noun and demonstrative in the English translation by <lit-tag>, setting it to be "sg" in this pattern. It seems to work in this case, but in fact without contexts of the sentence, it is inaccurate to translate the phrase "a ’oro levu yai" as "this big village" (e.g. Template:TransfterTest and Template:TransfterTest). So I need to change my example from a phrase to a sentence with enough contexts and write a rule for that pattern instead.

Post-evaluation

  • eng → fij
-WER: 66.13%
-PER: 61.29%
  • fij → eng
-WER: 75.00%
-PER: 75.00%