LiLFeS modules

Japanese version

The Enju package includes some useful LiLFeS modules. Specify the name of a module with the option "-l" of the "enju" command (see How to use Enju).


Output dependencies of words

"enju/outputdep.lil" is a LiLFeS module to output dependencies of words (predicate-argument relations) in a text format. When you run enju without arguments, this module will be loaded and the predicate output_dependency_file will automatically be executed.

In this module, the following predicates are available. See How to use Enju for the details of the output format.

output_dependency(+$Sentence, +$Stream)
$SentenceInput sentence (string)
$StreamOutput stream (lilfes_stream)
Parse input sentence $Sentence, and output predicate-argument relations into output stream $Stream. If parsing fails, the string "Parsing failure" is output.
output_dependency(+$Sentence)
$SentenceInput sentence (string)
Parse input sentence $Sentence, and output predicate-argument relations into the standard output. If parsing fails, the string "Parsing failure" is output.
output_dependency_file(+$Input, +$Output)
$InputName of input file
$OutputName of output file
Parse each line of the input file, and output the results in the output file.
output_dependency_file(+$Input)
$InputName of input file
Parse each line of the input file, and output the results in the standard output.
output_dependency_file
Parse each line of the standard input, and output the results in the standard output.
output_summary_file(+$Input, +$Output)
$InputName of input file
$OutputName of output file
Parse each line of the input file, and output the results in the output file in a simple format.
output_summary_file(+$Input)
$InputName of input file
Parse each line of the input file, and output the results in the standard output in a simple format.
output_summary_file
Parse each line of the standard input, and output the results in the standard output in a simple format.

Output parse results in XML

"enju/outputxml.lil" is a LiLFeS module to output parse results in the XML format. When you run enju with "-xml" option output_xml_file will be executed, wile output_so_file is executed with "-so" option.

In this module, the following predicates are available. See How to use Enju for the details of the output format.

output_xml_file(+$Input, +$Output)
$InputName of input file
$OutputName of output file
Parse each line of the input file $Input, and output the results in the output file $Output in the XML format.
output_xml_file(+$Input)
$InputName of input file
Parse each line of the input file $Input, and output the results in the standard output in the XML format.
output_xml_file
Parse each line of the standard input, and output the results in the standard output in the XML format.
output_so_file(+$Input, +$Output)
$InputName of input file
$OutputName of output file
Parse each line of the input file $Input, and output the parse results into the output file $Output in the stand-off format.
output_so_file(+$Input)
$InputName of input file
Parse each line of the input file $Input, and output the parse results into the standard output in the stand-off format.
output_so_file
Parse each line of the standard input, and output the parse results into the standard output in the stand-off format.

Browsing parse results with GUI

"enju/moriv.lil" is a LiLFeS module to browse parse results with MoriV. You can browse parse trees and feature structures graphically. Web browsers that support xhtml and xslt (Firefox etc.) can also show parse results.

When running Enju, specify the "-moriv" option to run the MoriV server, and the "-cgi" option to start the server for web browsers.

% enju -moriv

Next, access to "/cgi-lilfes/moriv?" at the 27109 port of the server you are running Enju. For example, when you run Enju on "localhost", access to the following URL.

http://localhost:27109/cgi-lilfes/moriv?

MoriV shows a start page for browsing parse results. Enter a sentence in the form in the top of the page and press the "Parse" button, and you will get the overview (sentence length, the number of edges, parsing time, etc.) of the parse results and the menu in the lower left side. By clicking links in the menu, you can browse parse results in various formats.

"Sign/Tree/Tree (with prob.)" shows the sign of the root node, the parse tree, and the parse tree with figure-of-merit (FOM). "Word lattice" shows the list of input words. "Node list" shows nodes in the parse tree, and you can see a sign of each node. "Semantics" shows predicate-argument dependencies of words. It is represented with Prolog-like term representation, and also with highlighting argument phrases by pointing a predicate word by a mouse cursor.

You can browse other data of a parser and a grammar by clicking links in the top of the page.

Parser
As described above, a page for browsing parser outputs is shown.
Chart
A chart for parsing is shown. You can browse edges stored in each cell in the chart. By entering a sentence, a chart is shown in the lower left side in the page. Each cell shows the number of edges in the cell. By clicking the number, a list of edges in the cell is shown in the right of the page. The list shows symbols of edges signs (VP, NP, etc.), FOMs, the ID numbers of the daughters, etc. By clicking links, you can see the sign of an edge.
Grammar
A page for browsing lexical signs assigned to words is shown. By inputting a word and a POS (tied with a slash) in the first form, a list of lexical entries are shown in the lower left side in the page. The numbers show the FOM of the lexical entry. By clicking a link, the right frame shows a sign of the lexical entry. By inputting the name of a lexeme in the second form, the sign of the lexeme is shown in the right frame. "List of all templates" shows a list of all lexical entry templates. If the number of templates is large, it might take a while.
Console
Show a LiLFeS console in a new page.
Reset
Return to the top page.
Manual
Show the manual of Enju in a new page.
Enju Home Page
Show Enju Home Page in a new page.
Exit
Quit browsing.

You can browse the following examples with MoriV or web browsers such as Firefox.


Enju Manual Enju Home Page Tsujii Laboratory
MIYAO Yusuke (yusuke@is.s.u-tokyo.ac.jp)