ChartDisplay- Parsing chart printing and dumping
[Syntactic tools level]

Functions that allow to print and dump parsing charts under various formats. More...

Functions

void parsingChartDisplayParsing (const ParsingChart *chart, int(*print)(const char *,...), const gboolean only_top_nt)
void parsingChartDisplayForestFromElement (const ParsingChart *chart, const unsigned int row, const unsigned int column, int(*print)(const char *,...), const gboolean only_top_nt)
void parsingChartDumpCNF (const ParsingChart *chart, int(*print)(const char *,...))
void parsingChartDumpCFG (const ParsingChart *chart, int(*print)(const char *,...))
void parsingChartDumpNbItems (const ParsingChart *chart, int(*print)(const char *,...))
void parsingChartDisplayCellStat (const ParsingChart *chart, const unsigned int row, const unsigned int column, int(*print)(const char *,...), const gboolean only_top_nt)
void parsingChartDisplayCoverage (const ParsingChart *chart, int(*print)(const char *,...), const gboolean details)
void parsingChartDump (const ParsingChart *chart, int(*print)(const char *,...), const gboolean show_prefix_item_list)
void parsingChartDumpSpellCorrection (const ParsingChart *chart)

Detailed Description

Functions that allow to print and dump parsing charts under various formats.

SlpTK Library 0.6.0

Required header
<chartdisplay.h>
Author:
Jean-Cedric Chappelier (creation on 11.04.1997)

Antonin Merçay (revision on 25.01.2005)

Date:
2 March 2005
Version:
0.6.0

Function Documentation

void parsingChartDisplayCellStat ( const ParsingChart chart,
const unsigned int  row,
const unsigned int  column,
int(*)(const char *,...)  print,
const gboolean  only_top_nt 
)

Display the statistics about the non-terminal stored by a particular parsing chart cell, i.e. the total number of interpretations, the maximal and total probabilities, etc ...

Parameters:
[in] chart The parsing chart to consider
[in] row The index of the line of the chart (from 1 to size)
[in] column The index of the column of the chart (from 1 to size - row + 1)
[in] print The print function
[in] only_top_nt A flag the set if we consider all derivations (FALSE), or only the derivations from the top level non-terminal (TRUE)
Former(s) function(s):
Affiche_Stat_Case_Cyk

void parsingChartDisplayCoverage ( const ParsingChart chart,
int(*)(const char *,...)  print,
const gboolean  details 
)

Display the coverage of a parsing chart, i.e. the number of top level non- terminal interpretations, the total number of interpretations, the number of interpretations in the higher not empty line, the height of this line, the number of lines of the chart

Parameters:
[in] chart The parsing chart to consider
[in] print The print function
[in] details A flag that set if the details of each treated chart cells must be displayed too
Former(s) function(s):
Affiche_Couverture_Cyk

void parsingChartDisplayForestFromElement ( const ParsingChart chart,
const unsigned int  row,
const unsigned int  column,
int(*)(const char *,...)  print,
const gboolean  only_top_nt 
)

Display all the grammatical analysis available from a given parsing chart cell and where each solutions are dumped as a syntactical condensed tree.

Parameters:
[in] chart The parsing chart to consider
[in] row The parsing chart row (from 1 to size)
[in] column The parsing chart column (from 1 to size - row + 1)
[in] print The printing function
[in] only_top_nt A flag the set if we consider all derivations (FALSE), or only the derivations from the top level non-terminal (TRUE)
See also:
parsingChartDisplayParsing()
Former(s) function(s):
Affiche_Arbre_Case_Cyk

void parsingChartDisplayParsing ( const ParsingChart chart,
int(*)(const char *,...)  print,
const gboolean  only_top_nt 
)

Display all the complete grammatical analysis stored in a parsing chart where each solutions are dumped as a syntactical condensed tree.

Parameters:
[in] chart The parsing chart to display
[in] print The printing function
[in] only_top_nt A flag the set if we consider all derivations (FALSE), or only the derivations from the top level non-terminal (TRUE)
See also:
parsingChartDisplayForestFromElement()
Former(s) function(s):
Affiche_Resultat_Analyse_Syntaxique & Affiche_Arbre_Table_Cyk

void parsingChartDump ( const ParsingChart chart,
int(*)(const char *,...)  print,
const gboolean  show_prefix_item_list 
)

Dump the content of a parsing chart in a raw format

Parameters:
[in] chart The parsing chart to consider
[in] print The print function
[in] show_prefix_item_list A flag indicating if prefix item list must be also dumped
Former(s) function(s):
Dump_Table_CYK

void parsingChartDumpCFG ( const ParsingChart chart,
int(*)(const char *,...)  print 
)

Dump the the contents of the non-terminal item cells of a Context Free Grammar (CFG) based parsing chart

Parameters:
[in] chart The parsing chart to consider
[in] print The print function
See also:
parsingChartDumpCNF()
Former(s) function(s):
Dump_CFG

void parsingChartDumpCNF ( const ParsingChart chart,
int(*)(const char *,...)  print 
)

Dump the the contents of the non-terminal item cells of a Chomsky Normal Form (CNF) grammar based parsing chart

Parameters:
[in] chart The parsing chart to consider
[in] print The print function
See also:
parsingChartDumpCFG()
Former(s) function(s):
Dump_CNF

void parsingChartDumpNbItems ( const ParsingChart chart,
int(*)(const char *,...)  print 
)

Display the size a parsing chart (the number of row and column), and the number of non-terminal items and prefix items for each chart cell

Parameters:
[in] chart The parsing chart to consider
[in] print The print function
Former(s) function(s):
Dump_nb_L1_L2

void parsingChartDumpSpellCorrection ( const ParsingChart chart  ) 

Dump the content of a parsing chart resulting from a lexical correction

Todo:
to debug
Parameters:
[in] chart The considered parsing chart
See also:
spellCorrectChart()
Former(s) function(s):
Affiche_Correction_Table_CYK_Ancree (Christophe de Benoit’s project)


Generated on Thu Mar 22 17:46:31 2007 for SlpTk by  doxygen 1.4.7