[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
pml-haters [2007/05/31 14:43]
pajas
pml-haters [2007/06/05 06:35] (current)
bojar jen formatovani
Line 14: Line 14:
  
 Please strongly prefer SAX-based tools to DOM-based tools. Please strongly prefer SAX-based tools to DOM-based tools.
 +
  
 ===== Validation ===== ===== Validation =====
  
-Given a PML file, how do I validate it? I always forget... Please provide me with the one-liner to do the validation.+Given a PML file, how do I validate it?
  
 For most purposes, a libxml2 (DOM) based validator For most purposes, a libxml2 (DOM) based validator
-<​code>/​f/​common/​exec/​validate_pml --pml-dir /​f/​common/​share/​pml --path /​f/​common/​share/​tred file_to_validate</​code>​should work fine and fast. For huge files, use<​code>/​f/​common/​exec/​validate_pml_stream --path /​f/​common/​share/​tred file_to_validate</​code>​which is based on Jing (SAX); Jing has no Zlib or stdin support, so some space in /tmp will be needed for temporary files.+<​code>/​f/​common/​exec/​validate_pml --pml-dir /​f/​common/​share/​pml --path /​f/​common/​share/​tred file_to_validate</​code>​should work fine and fast. 
 + 
 +For huge files, use<​code>/​f/​common/​exec/​validate_pml_stream --path /​f/​common/​share/​tred file_to_validate</​code>​which is based on Jing (SAX); Jing has no Zlib or stdin support, so some space in /tmp will be needed for temporary files.
 Both scripts have decent user documentation. See inside the scripts if interested in the implementation details. Both scripts have decent user documentation. See inside the scripts if interested in the implementation details.
  

[ Back to the navigation ] [ Back to the content ]