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

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

Using the command sa-file, you can analyse files that contain sentence lists. In a sentence list, each sentence stands in a line on its own; empty lines are permitted. Here is an example, a sentence list named `` sentence-list'':

He sleeps.
He slept.
He has slept.
He had slept.

To analyse this sentence list, enter:

sa-file sentence-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 `` sentence-list'', its name will be ``sentence-list.cat''.

1: "He sleeps.": [functor: [syn: <S3>, sem: <"sleep">], 
                  arguments: <[syn: S3, sem: "definite pronoun"]>]
2: "He slept.": [functor: [syn: <S3>, sem: <"sleep">], 
                 arguments: <[syn: S3, sem: "definite pronoun"]>]
3: "He has slept.": [functor: [syn: <S3>, sem: <"have", "sleep">], 
                     arguments: <[syn: S3, sem: "definite pronoun"]>]
4: "He had slept.": [functor: [syn: <S3>, sem: <"have", "sleep">], 
                     arguments: <[syn: S3, sem: "definite pronoun"]>]

The number at the line start represents the line number of the analysed original sentence. 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 sentence, the error message will be inserted into the result file, and the next sentence will be processed.

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


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