Difference between revisions of "Dictionary reader"

From Apertium
Jump to navigation Jump to search
m
m
Line 3: Line 3:
Reading elements in dictionaries
Reading elements in dictionaries


$ ./dictools dic-reader <action> [-url] <dic>
$ apertium-dixtools dic-reader <action> [-url] <dic>


You can also use a URL as a filename (with <code>-url</code> before the dictionary filename)
You can also use a URL as a filename (with <code>-url</code> before the dictionary filename)
Line 9: Line 9:
Example:
Example:


$ ./dictools dic-reader list-lemmas -url http://xixona.dlsi.ua.es/~ebenimeli/files/mydic.dix
$ apertium-dixtools dic-reader list-lemmas -url http://xixona.dlsi.ua.es/~ebenimeli/files/mydic.dix


== Getting a simple list of elements ==
== Getting a simple list of elements ==
=== List of paradigms ===
=== List of paradigms ===


$ ./dictools dic-reader list-paradigms <dic>
$ apertium-dixtools dic-reader list-paradigms <dic>


=== List of lemmas ===
=== List of lemmas ===


$ ./dictools dic-reader list-lemmas <dic>
$ apertium-dixtools dic-reader list-lemmas <dic>


=== List of definitions ===
=== List of definitions ===


$ ./dictools dic-reader list-definitions <dic>
$ apertium-dixtools dic-reader list-definitions <dic>


=== List pairs ===
=== List pairs ===

Revision as of 14:05, 17 March 2008

Reading elements

Reading elements in dictionaries

$ apertium-dixtools dic-reader <action> [-url] <dic>

You can also use a URL as a filename (with -url before the dictionary filename)

Example:

$ apertium-dixtools dic-reader list-lemmas -url http://xixona.dlsi.ua.es/~ebenimeli/files/mydic.dix

Getting a simple list of elements

List of paradigms

$ apertium-dixtools dic-reader list-paradigms <dic>

List of lemmas

$ apertium-dixtools dic-reader list-lemmas <dic>

List of definitions

$ apertium-dixtools dic-reader list-definitions <dic>

List pairs

$ ./dictools dic-reader list-pairs <bil-dic>