Simple PML Diff Extension for TrEd

This extension provides the basic visual diffing interface. It works only on simple annotation schemas where the relation of tokens to nodes is 1:1 and the #ORDER role is defined.

The extension is still under development. You have to manually set up several things in order to get it work for your data:

  1. Open any pml file
  2. Click on Style name, select New From Current
  3. Enter diff as Name, click OK
  4. Click on the icon before diff, remove the context: line, click OK
  5. Close TrEd

Now, you should be able to run the diff just by

tred -t PML_Diff -s diff -p2 file1.pml file2.pml

If you prefer clicking to command line options, once the extension is prepared, you can also do everything in TrEd: open one file, split the window, open the second file, lock them together, adjust the mode and stylesheet (but it gets annoying if you plan to repeat it many times).

Use arrow icons to browse the trees (both files should advance simultaneously). Press = to view diff for the current trees. Press Ctrl + = to configure the attributes to compare. Use Alt + = to run diff on the whole file. Use Ctrl + Shift + = to view some statistics.