next up previous contents
Next: The Command ``mg'' (malaga) Up: The Commands of ``malaga'' Previous: The Command ``ma'' (malaga)   Contents

The Command ``ma-file'' (malaga)

The command ma-file can be used to analyse files that contain word lists. A word list consists of a number of word forms, each word form on a line on its own. There may be empty lines in a word list. The following example is a word list called ``word-list'':

table
men's
blue
handicap

To analyse this word list, enter:

ma-file word-list result

This will produce a file ``result'' that contains the analysis results. If the second argument is missing, the result will be written to a file whose name ends in ``.cat'' (for categories); for ``word-list'', its name will be ``word-list.cat'':

1: "table": [class: noun, ...]
2: "men's": [class: noun, ...]
3: "blue": [class: noun, ...]
3: "blue": [class: adjective, ...]
3: "blue": [class: name, ...]
4: "handicap: unknown

The number at the line start represents the line number of the analysed original word form. The output format can be changed by using the commands output-format and unknown-format.

If a runtime error occurs during the analysis of a word, the error message will be inserted into the result file, and the next word will be processed.

After the analysis, some statistics will be printed: The number of analysed and recognised word forms, the average number of results per word form, and the average number of word forms that have been analysed per second (if the analysis took long enough).


next up previous contents
Next: The Command ``mg'' (malaga) Up: The Commands of ``malaga'' Previous: The Command ``ma'' (malaga)   Contents
Bjoern Beutel