Difference between revisions of "Dixtools: Grep"

From Apertium
Jump to navigation Jump to search
(Created page with "==Usage== <pre> apertium-dixtools grep [--section section-id] [--lemma lemma-name] [--par paradigm-name] [input.dix] [output.dix] </pre>")
 
 
Line 1: Line 1:

==Usage==
==Usage==
<pre>
<pre>
apertium-dixtools grep [--section section-id] [--lemma lemma-name] [--par paradigm-name] [input.dix] [output.dix]
apertium-dixtools grep [--section section-id] [--lemma lemma-name] [--par paradigm-name] [input.dix] [output.dix]
</pre>

===Examples===
* This command will filter lemmas with "abeja__n" paradigm and then print inflections of them.

<pre>
$ apertium-dixtools grep --par abeja__n apertium-en-es.es.dix | lt-expand-j -
</pre>

* This command will filter all nouns and print a dictionary as output.

<pre>
$ apertium-dixtools grep --par '.*__n' apertium-eo-es.es.dix
</pre>
</pre>

Latest revision as of 08:20, 25 March 2015

Usage[edit]

apertium-dixtools grep [--section section-id] [--lemma lemma-name] [--par paradigm-name] [input.dix] [output.dix]

Examples[edit]

  • This command will filter lemmas with "abeja__n" paradigm and then print inflections of them.
$ apertium-dixtools grep --par abeja__n apertium-en-es.es.dix | lt-expand-j -
  • This command will filter all nouns and print a dictionary as output.
$ apertium-dixtools grep --par '.*__n' apertium-eo-es.es.dix