Apertium has moved from SourceForge to GitHub.
If you have any questions, please come and talk to us on #apertium on irc.freenode.net or contact the GitHub migration team.

Cleanstream

From Apertium
(Difference between revisions)
Jump to: navigation, search
m
 
Line 1: Line 1:
  +
{{Github-unmigrated-tool}}
  +
 
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&lt;n&gt;$[&lt;b&gt;]^fie/fum&lt;vblex&gt;$ ^./.&lt;sent&gt;$</code> sent through <code>apertium-cleanstream -n</code> turns into <pre>^foo/bar<n>$
 
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&lt;n&gt;$[&lt;b&gt;]^fie/fum&lt;vblex&gt;$ ^./.&lt;sent&gt;$</code> sent through <code>apertium-cleanstream -n</code> turns into <pre>^foo/bar<n>$
 
^fie/fum<vblex>$
 
^fie/fum<vblex>$

Latest revision as of 05:57, 27 April 2018

Note: After Apertium's migration to GitHub, this tool is read-only on the SourceForge repository and does not exist on GitHub. If you are interested in migrating this tool to GitHub, see Migrating tools to GitHub.
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
Personal tools