ErwinKomen / FoliaParse

C# command-line application that converts 'basic' FoLiA + Alpino into syntactically parsed FoLiA (includes 'surfacing')
0 stars 0 forks source link

scrambling #2

Open ErwinKomen opened 6 years ago

ErwinKomen commented 6 years ago

Two problems:

  1. Look at Digitaal_Klimaat0014.p.4.s.1: the first correctly points to w.1 (maar), but its @t attribute contains the wrong word ( vanaf ).
  2. There is an empty <t class="eng"/>, there is a correct <t> without @class attribute, and there is a faulty <t class="original">
ErwinKomen commented 6 years ago

There was a problem in AlpinoToPsdx.cs, function OneAlpinoToPsdxForest(). The words marked 'later' were not treated correctly. My changes:

  1. Regard ndxBef as empty if intN=1
  2. Prepend the node to the first 'real' grandchild in situation (1)

TODO: check if the grandchild idea should also be followed for situations where the 'later' node is the last one under a forest