Difference between revisions of "Cleanstream"

From Apertium
Jump to navigation Jump to search
(Created page with 'apertium-cleanstream removes superblanks and such from the Apertium Stream Format, and with the <code>-n</code> option puts each lexical unit on one line, so <code>^foo/bar&l…')
 
Line 9: Line 9:
 
$ sudo cp apertium-cleanstream /usr/local/bin
 
$ sudo cp apertium-cleanstream /usr/local/bin
 
</pre>
 
</pre>
  +
  +
[[Category:Documentation]]
  +
[[Category:Formats]]
  +
[[Category:Documentation in English]]

Revision as of 07:12, 23 September 2013

apertium-cleanstream removes superblanks and such from the Apertium Stream Format, and with the -n option puts each lexical unit on one line, so ^foo/bar<n>$[<b>]^fie/fum<vblex>$ ^./.<sent>$ sent through apertium-cleanstream -n turns into

^foo/bar<n>$
^fie/fum<vblex>$
^./.<sent>$

Check out, compile and install like this (no prerequisites apart from g++):

$ svn co https://svn.code.sf.net/p/apertium/svn/trunk/apertium-tools/apertium-cleanstream
$ make
$ sudo cp apertium-cleanstream /usr/local/bin