4.6 Alphabetic list of commands

up next previous
[ Guide contents | Chapter contents | Next section: 4.7 File Formats | Previous section: 4.5 Command Reference ]

This section documents each command, arranged alphabetically, of the PC-KIMMO system. Square brackets in the command line summaries indicate optional elements. The notation {x | y} means either x or y (but not both). Command keywords and arguments in boldface are typed literally; for instance, the command summary set tracing {on | off} means to type either set tracing on or set tracing off. Command arguments in italics are replaced by elements of the specified type; for instance, the command summary show rule number means to replace number with a rule number, such as show rule 3.

! [system-command]

Executes an operating system command or invoke a new command processor shell (same as system).

?

Displays a list of command names.

cd pathname

Changes default subdirectory. This command is available only for the Macintosh version only.

close

Turns logging off and closes the log file.

edit filespec

Edits filespec using the editing program specified by the operating system environment variable EDITOR. This command is available only for the MS-DOS and UNIX versions of PC-KIMMO.

exit

Exits PC-KIMMO and returns to the operating system.

[file] compare generate [filespec]

Reads lexical forms from filespec, submits them to the generator, and compares the resulting surface form(s) with the expected results listed in filespec.

[file] compare recognize [filespec]

Reads surface forms from filespec, submits them to the recognizer, and compares the resulting lexical form(s) with the expected results listed in filespec.

[file] compare synthesize [filespec]

Reads morphological forms (a sequence of morpheme glosses separated by spaces) from filespec, submits them to the synthesizer, and compares the resulting surface form(s) with the expected results listed in filespec.

[file] compare pairs [filespec]

Reads pairs of lexical and surface forms from filespec and analyzes them to see if the surface form can generated from the lexical form and the lexical form can be recognized from the surface form.

file generate input-filespec [output-filespec]

Reads a list of lexical forms from input-filespec, submits them to the generator, and returns each lexical form followed by the resulting surface form(s).

file recognize input-filespec [output-filespec]

Reads a list of surface forms from input-filespec, submits them to the recognizer, and returns each surface form followed by the resulting lexical form(s).

file synthesize input-filespec [output-filespec]

Reads a list of morphological forms (a sequence of morpheme glosses separated by spaces) from input-filespec, submits them to the synthesizer, and returns each morphological form followed by the resulting surface form(s).

generate [lexical-form]

Accepts as input a lexical form and returns one or more surface forms.

help [command-name]

Without a command name argument, displays a list of commands with a brief explanation of each. With a command name argument, displays a usage summary for the command.

list lexicon

Displays on the screen the names of the sublexicons of the lexicon currently in use.

list pairs

Displays the set of feasible pairs specified by the set of rules currently turned on.

list rules

Displays the current state of the rules that are loaded.

load grammar [filespec]

Loads grammar from filespec.

load lexicon [filespec]

Loads lexicon from filespec.

load rules [filespec]

Loads rules from filespec.

load synthesis-lexicon [filespec]

Loads synthesis-lexicon from filespec.

log [filespec]

Turns the logging mechanism on.

clear

Clears the rules, lexicon, synthesis-lexicon, and grammar currently loaded.

quit

Same as exit.

recognize [surface-form]

Accepts as input a surface form and returns one or more lexical forms.

save [filespec]

Save the current settings to a "take" file named filespec.

set alignment {on | off}

Turns alignment mode on or off.

set ambiguities number

Limits the number of analyses produced by the word grammar to number.

set failures {on | off}

Turns grammar failure mode on or off.

set features {top | all | off}

set features {full | flat}

Determines how feature structures are displayed.

set grammar {on | off}

Turns the loaded word grammar on or off.

set limit {on | off}

Limits the result of a generation or recognition function to one form.

set rules {on | off} {list of numbers | all}

Turns selected rules on or off.

set timing {on | off}

Times the execution of generation and recognition functions and displays the result.

set tracing {on | off | level}

Turns the tracing mechanism on or off.

set tree {full | flat | indented | off}

Determines how tree structures are displayed.

set trim-empty-features {on | off}

Determines how empty features are displayed.

set unification {on | off}

Turns feature unification in the word grammar on or off.

set verbose {on | off}

Determines the amount of information shown on the screen during a file comparison operation.

set warnings {on | off}

Turns warning mode on or off.

show [status]

Same as status.

show lexicon sublexicon-name

Displays the contents of the named sublexicon. For each lexical entry it shows the lexical form, gloss, and continuation class.

show rule rule-number

Displays the number, on/off status, and name of the rule (similar to the list rules command). If the rule is turned on, it then displays each column header of the state table for that rule with the set of feasible pairs that it specifies.

status

Displays the names of the rules, lexicon and grammar files currently loaded, the name of the log file (if logging is on), the comment delimiter character, and the status of the processing options controlled by the set command. Obeys the synonyms show status and show.

synthesize [morphological-form]

Accepts as input a morphological form (a sequence of morpheme glosses separated by spaces) and returns one or more surface forms.

system [system-command]

Executes an operating system command or invokes a new command processor shell. See also !. This command is available only for the MS-DOS and UNIX versions of PC-KIMMO.

take [filespec]

Reads and executes commands from filespec.


up next previous
[ Guide contents | Chapter contents | Next section: 4.7 File Formats | Previous section: 4.5 Command Reference ]