Home
[incr tsdb()]
Contents
1. error e int complete_run int run_id char custom with parameters run_id name of the test suite instance to be processed custom similar to custom parameter in create_run an optional piece of system specific information supplied in the client definition as of June 1999 complete_run does not return any information to incr tsdb 6 4 Common Lisp Clients 6 5 Using incr tsdb Distributed Mode As of June 1999 there is no explicit support for incr tsdb distributed mode in the graphical user interface although the regular test run functionally will transparently work on top of a set of client processors connected in distributed mode the configuration and creation of client processes still has to be achived manually i e on the Common Lisp side The discussion of user interaction with incr tsdb will build on the following concepts e cpu the term cpu is used to refer to the specification of client processors each cpu is usually described in terms of a host node in the PVM virtual machine that is used to run the client the command to start the client i e a binary executed on the remote machine optional startup options and one or more class identifier s used to refer to individual cpus or cpu groups incr tsdb cpu descriptions can include additional information like the CUSTOM data passed to the client on test run creation and completion see above e client a new inc
2. DRAFT OF OCTOBER 15 1999 INSTALLATION AND STARTUP 9 variable is set correctly the value seen by Lisp can be queried using the Allegro specific function call system getenv DISPLAY in turn the host running the Lisp process which will create the Tcl TK process on the same machine needs to be authorized to connect to the X server specified by the DISPLAY variable see xauth 1 or xhost 1 Secondly verify that the platform specific binaries have been installed correctly and are compatible to the local operating system and version once more assuming itsdb as the incr tsdb directory root it must be possible to execute the Tcl TK interpreter from a shell as for example itsdb bin solaris swish which should pop up an empty Tcl TK window SFor the Linux x86 and OSF DEC Alpha platforms use linux and osf as the last directory component respectively DRAFT OF OCTOBER 15 1999 DRAFT OF OCTOBER 15 1999 TERMINOLOGY 11 3 Profiling Terminology This section introduces some basic terminology that will be used throughout the discussion of the incr tsdb approach Host Platform Earlier versions of incr tsdb were always embedded into Lisp based grammar development environments viz the LKB or PAGE systems in this setup the underlying grammar development and processing environment sharing the same Lisp universe with incr tsdb is referred to as the host platfor
3. 5 7 Data Selection and Aggregation 5 8 TSQL syntax 5 9 Importing Data 5 10 Customization podiumrc and tsdbrc 5 11 Known Problems and Caveats Following is a list of known incr tsdb problems that for various reasons have not been solved where appropriate instructions on how to avoid or handle a specific problem are supplied 1 Allegro CL incr tsdb communication once in a while the incr tsdb podium may freeze usually while processing a user request and displaying the busy cursor small wristwatch here frozen really means that over some unusual period of time nothing except maybe the display of the current date and time changes in the podium window Another symptom is that the incr tsdb Lisp process claims to be idle e g as part of the minibuffer status line at the same time The problem in this situation seems to be that the Lisp process fails to notice an event a request to perform some task that was generated by the incr tsdb podium Typing something e g a single key into the Lisp interpreter usually seems to be sufficient to wake up the Lisp process and make it process pending events 2 Tcl Tk background errors under rare circumstances the Tcl Tk interpreter the pro cess displaying the incr tsdb podium window s may fail to handle asynchronous events properly Asynchronous events are generated for example whenever the incr tsdb Lisp process enters a garbage
4. Size Number of Test tems ive reses parser Tota overall Aggregale Size Ava Phenomenon Poms lame analyses results coverage re ee Moe Nos ages IC IA S_Types 28 03 ves 125 EN C_Agreement 17 86 145 857 200 C_Complementation 1 2027 297 907 100 C_Negation 4 17 45 1 52 90 9 0 E Generated by ner tsdb at 14 nov 96 18 01 oe coliuni sb de Ne Mosnentioe e id kad a ae generate by ner tsdbc tat 14 nov 86 18 00 o colluni sb de 7 r 7 r x 1 NP_Coordination 507 1468 132 706 3 f 2 4 6 8 10 2 4 Taal zal a 7 6 8 10 12 14 String Length i length AA String Length i length lincr tsdb Competence and Performance Laboratory User amp Reference Manual Stephan Oepen Computational Linguistics Saarland University PREFACE i Preface we view the discovery of parsing strategies as a largely experimental process of incremental optimization Erbach 1991 the study and optimisation of unification based parsing must rely on empirical data until complexity theory can more accurately predict the prac tical behaviour of such parsers It seems likely that implementational decisions and optimisations based on subtle properties of specific grammars can be more important than worst case complexity Carroll 1994 Contemporary lexicalized constraint based grammars e g within the HPSG framework
5. cessing in interactive mode the client should activate all available debugging tools like chart and result structure displays for example again sample output produced by the LKB others 367136 symbols 0 conses 158480 first 60 total 60 treal 93 tcpu 90 tgc 0 words 5 l stasks 2 Teo ie 0 p ftasks 825 p etasks 55 p stasks 31 pedges 14 rpedges 4 2 Though this mode of communication enables the client to relay processing results to the incr tsdb server without much effort i e using the regular printing routines available in all programming environ ments it is at the same time not especially robust since the client output is forwarded to the incr tsdb server without further verification or format validation failure to obey the surface format required in the interface can easily break the server side of the interface often resulting in mysterious system malfunctioning Therefore it is expected to add an alternative mode of return parameter passing using structured C objects in the near future DRAFT OF OCTOBER 15 1999 APPLICATION PROGRAM INTERFACE 43 readings 1 results result id 0 time 60 r redges 4 size 147 derivation root_cl 0 2 subjh 0 2 no affix_infl_rule 0 1 abrams 0 1 abrams O 1 third_sg_fin_verb_infl_rule 1 2 work_vi 1 2 work 1 2
6. o sooo ee ee 35 5 8 MESOL Syntax m cocked a Peek in EG ee ae Ea a ao PR 35 5 9 Importing Data ria Gok aloes a ea ee a g 35 5 10 Customization podiumre and tsdbrC o ooo 35 5 11 Known Problems and Caveats ooo a a a e 35 5 12 Options and Parameters e 36 5 13 incr tsdb Command Line Interface 2 o o e 36 5 14 tsdb Database Format 2 2 20 0 0202 ee ee 36 6 Application Program Interface 37 6 1 Connecting incr tsdb to Another Processor 37 6 2 Parallel Virtual Machine o e 0200000007 38 63 ANSEO Clients cas each A Boo tt da de a ed 40 6 4 Common Lisp Clients 0 00 0 ee ee 43 6 5 Using incr tsdb Distributed Mode ooo o 43 DRAFT OF OCTOBER 15 1999 iv incr tsdb COMPETENCE AND PERFORMANCE LABORATORY 6 6 Debugging incr tsdb Distributed Mode o o o o A Contents of the incr tsdb Distribution References DRAFT OF OCTOBER 15 1999 OVERVIEW 1 1 Overview This manual documents incr tsdb an integrated package for diagnostics evaluation and benchmarking in practical grammar and system engineering incr tsdb builds on the following components and modules e test and reference data stored with annotations in a structured database annotations can range from minimal information unique test item identifier item origin length et al to fine grai
7. with wide grammatical and lexical coverage exhibit immense conceptual and computa tional complexity as the grammatical framework aims to eliminate redundancy and factor out generalizations the interaction of lexicon and phrase structure apparatus can be sub tle and make it hard to predict how even modest changes to the grammar affect system behaviour Additionally in a distributed grammar engineering setup i e for a project where several people or even sites contribute to a single grammatical resource it becomes necessary to assess the impact of individual contributions regularly evaluate the quality of the overall grammar and compare it to previous versions Besides concise coverage i e competence judgments in most application scenarios efficiency and resource consumption play an increasingly important role hence process ing components typically provide a potentially large inventory of control parameters and preference settings When tuning the analysis component to improve system per formance grammar writers often rely on introspection knowledge of the grammar and personal experience yet without systematic profiling and performance analysis processor optimization amounts to guessing parameter settings and constant experimentation This user manual documents incr tsdb an integrated package for diagnostics eval uation and benchmarking in practical grammar and system engineering The software implements an approach to gra
8. Guide and Tutorial for Networked Parallel Computing Scientific and Engineering Computation Cambridge Massachusetts The MIT Press Lehmann Sabine Stephan Oepen Sylvie Regnier Prost Klaus Netter Veronika Lux Judith Klein Kirsten Falkedal Frederik Fouvry Dominique Estival Eva Dauphin Herv Compagnion Ju dith Baur Lorna Balkan and Doug Arnold 1996 TSNLP Test Suites for Natural Language Processing In Proceedings of COLING 1996 711 716 Kopenhagen D nemark Oepen Stephan and Daniel P Flickinger 1998 Towards Systematic Grammar Profiling Test Suite Technology Ten Years After Journal of Computer Speech and Language 12 4 Special Issue on Evaluation 411 436 Oepen Stephan Klaus Netter and Judith Klein 1997 TsSNLP Test Suites for Natural Language Processing In Linguistic Databases ed John Nerbonne CSLI Lecture Notes Center for the Study of Language and Information Ousterhout John K 1994 Tel and the Tk Toolkit Reading MA Addison Wesley Publishing Company Uszkoreit Hans Rolf Backofen Stephan Busemann Abdel Kader Diagne Elizabeth A Hinkelman Walter Kasper Bernd Kiefer Hans Ulrich Krieger Klaus Netter G nter Neumann Stephan Oepen and Stephen P Spackman 1994 DISCO An HPSG based NLP System and its Application for Appointment Scheduling In Proceedings COLING 1994 Kyoto DRAFT OF OCTOBER 15 1999
9. is going the right direction as should be expected Oepen and Flickinger 1998 present a more detailed discussion of the interpretation of individual and constrastive profiles and the use of multiple test sets For grammars that can be processed on multiple platforms the comparison of com petence can serve an additional purpose When comparing platforms or debugging it is essential to obtain a precise account of how the same version of a grammar behaves on either system such comparison typically greatly helps in the understanding of formal or practical differences between platforms The complementary comparison of performance profiles tyically proofs useful in system optimization i e tuning it to improved run time behaviour and again contrastive com parison between platforms While it remains to be seen whether and which insights can be obtained from comparing across grammar and systems simultaneously clearly the com parative table in figure 10 top contrasting salient performance characteristics of LKB 12As of January 1999 the LinGO ERG loads into both LKB and PAGE at least two other systems viz the abstract machines developed at Tokyo University and DFKI Saarbrticken are expected to use it in the near future DRAFT OF OCTOBER 15 1999 26 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY lingo oct 97 csli 97 11 26 page vs lingo nov 98 csli 98 11 20 page October 1997 November 1998 Pheno
10. is that the compiler was there at image creation time such that the procedures dumped into the image assume a different configuration from what is ultimately available Both requirements can be satisfied using either the LKB source distribution see above or the incr tsdb archive file 9 supplied for stand alone incr tsdb installation Users who are concerned about disk space may prefer archive 9 over the complete LKB source code since only a few of the files are required to activate the loadup environment on the other hand LKB source code availability may be useful for reference purposes even for sites that only use the ready to run binaries Either way unpacking the LKB source code or the incr tsdb stand alone archive file 9 creates among others the file loadup lisp in the src general subdirectory of the incr tsdb root directory To load incr tsdb into a running LKB image evaluate the following from the Lisp prompt assuming that itsdb is the directory root load itsdb src general loadup load itsdb src general defsystem load system tsdb Loading of incr tsdb into a LKB runtime binary could be automated by putting these three Lisp operations into the user specific Allegro CL start up file clinit cl or a separate file that can be loaded by means of the L command line option However automated creation of the incr tsdb podium window i e the last st
11. or has direct beach access 6 1 Connecting incr tsdb to Another Processor Integrating the incr tsdb profiler with a new processor typically a grammar based parsing system requires two basic steps e interface setup a set of interface functions as specified in the incr tsdb appli cation program interface see below has to be provided then the processor can be linked with the incr tsdb side of the interface called the client library and on re quest go into client mode this mode blocks the client application until a processing request is received from the incr tsdb controller the application program interface then executes the corresponding client function and relays the result returned by the processor to incr tsdb e parameter identification and adaption though the incr tsdb data model aims to record system competence and performance in generalized non system specific DRAFT OF OCTOBER 15 1999 38 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY terms typically not all parameters foreseen in incr tsdb profiles see section 5 2 will be applicable or available for all processors likewise applications may want to record additional system specific information or request application specific for mats It can sometimes require more effort to extract the relevant information from the processor say if the system did not record processing statistics already than to establish the int
12. tsdbrc file the class names chosen at least in some cases reflect the client type as well as the node used to run the client Usually users will have a set of incr tsdb cpus to choose from when preparing for a test run a selection from the set of available cpus is made to create clients as needed The per user configuration file tsdbrce see section 5 10 can be used to enumerate a list of cpus similar to the PVM node listing in the pvm_hosts file 6 6 Debugging incr tsdb Distributed Mode DRAFT OF OCTOBER 15 1999 APPENDIX I A Contents of the incr tsdb Distribution DRAFT OF OCTOBER 15 1999 DRAFT OF OCTOBER 15 1999 BIBLIOGRAPHY III References Carroll John 1994 Relating Complexity to Practical Performance in Parsing with Wide Coverage Unification Grammars In Proceedings of the 31st Meeting of the ACL 287 294 Las Cruces New Mexico Copestake Ann 1992 The ACQUILEX LKB Representation Issues in Semi Automatic Acquisi tion of Large Lexicons In Proceedings of ANLP 1992 88 96 Trento Italy Erbach Karl Gregor 1991 An Environment for Experimenting with Parsing Strategies In Pro ceedings of IJCAI 1991 ed John Mylopoulos and Ray Reiter 931 937 San Mateo California Morgan Kaufmann Publishers Geist Al Adam Bequelin Jack Dongarra Weicheng Jiang Robert Manchek and Vaidy Sunderam ed 1994 PVM Parallel Virtual Machine A Users
13. 60890 install gc strategy disabling tenure global garbage collection largest parse id largest parse id for run id 1 is 0 1 Abrams works 0 1 1 110 4 1 0 s lt 5 38 gt 13 8M 0 2 Abrams hired Browne 0 1 0 8 0 3 0 6 s lt 5 63 gt 6 4M 0 3 Abrams showed the office to Browne 0 1 5 1 0 512 2 3 9 s lt 24 218 gt 45 1M 0 4 Abrams showed Browne the office 0 1 1 8 0 5 1 4 s lt 16 177 gt 8 3M 0 1347 The person to know is Kim 0 5 2 7 0 8 2 2 s lt 18 267 gt 10 4M 0 1348 The person whether to know is Kim 0 2 512 0 s lt 20 202 gt 9 5M 0 flush cache tsdb 1 cache for lingo nov 98 cs1li 98 11 20 pageq flushed Figure 4 Excerpt of printout produced from the Process All Items command After loading and expansion of the necessary lexical entries the parser log format aims to give a compact summary of some of the information gathered besides the item identifier input string and an upper limit for chart edges given in square brackets if available the information following the triple dash is the number of readings obtained the time used to find the first reading and overall exhaustive search processing time in parentheses the number of lexical items involved and total number of edges in the chart angle brackets the amount of memory used and the number of global garb
14. a new test suite DRAFT OF OCTOBER 15 1999 12 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY instance The incr tsdb podium body see section 4 displays the list of available test suite instances sometimes called the current working set together with size and status information Right after the creation of a new test suite instance the database contains all information copied from the test suite skeleton that was instantiated and is then available to store new data obtained by processing the test material To simplify data organization and result analysis incr tsdb typically assumes a one to one correspondence between test runs and test suite instances when processing an already existing test suite instance by default all non skeleton data will be deleted Test Run The process of batch processing a set of test items obtaining competence and performance parameters for the application system used and storing these re sults into the active test suite instance is referred to as a test run Each test run is described in terms of the environment used for processing like the application system and grammar versions employed size of grammar and lexicon current user and machine start and end time and others and can have a descriptive comment associated with it The completion of a test run fills in the system specific sections in a test suite instance i e the run parse and result relations Compent
15. basic loading and start up commands stand alone or embedded mode with the LKB or PAGE host platforms Distribution details are likely to change in the near future when the package and up to date information become available for InterNet download 2 1 Distribution Policy Copyleft Aiming for a commonly accepted pre standard diagnostic and evaluation methodology and technology wide dissemination and assessment of the incr tsdb package is most desirable Thus the software in source code and data are made available to the general public free of royalties for academic or other non commercial use including deployment in corporate environments Though there is no principled obstacle to license commercial use of the package prior consultation with the author and a written license agreement will be required All copyright and intellectual property rights remain with the author To provide feedback on the distribution of the package incr tsdb users are encouraged to register see below and relay comments bug reports or suggestions for improvement to the contact address given in the section PREFACE above While unregistered the package is fully functional but after several minutes of continuous use a log message is generated and sent to a central protocol server at Saarbr cken University This notification message only contains information about the version of incr tsdb used and the name of the machine on which it is currently r
16. make the entry points to the client side functions known as function pointers and notify the incr tsdb server of the availability of the new client iii go into client mode call the slave function supplied in itsdb a that blocks the application until a task request is received executes the requested task i e calls back into the client using one of the interface functions and relays the information returned to the incr tsdb server The slave function runs in an infinite loop and only returns to the client when the server requests client termination which is caused implicitly when the server becomes 24 To validate that these conditions for PVM startup are met it may be helpful to verify that a command like rsh perl coli uni sb de date substituting the name of an actual remote node naturally can be completed successfully For improved system security it may be desirable to designate a single trusted machine in the network as the host that is used to start PVM then other nodes in the virtual machine only have to allow rsh 1 access to this one machine 25Please note that the incr tsdb process becomes part of the virtual machine the first time the appli cation program interface is used thus killing off all PvM processes may terminate the incr tsdb session too DRAFT OF OCTOBER 15 1999 APPLICATION PROGRAM INTERFACE 41 unavailable or an error in PVM communcation is encountered the client
17. output generated by a recent LKB version when run in incr tsdb distributed mode lt platform Allegro CL 5 0 beta Linux X86 1 1 90 0 56 application LKB version Date 1999 05 14 04 10 18 grammar LinGO may 99 avms 3144 sorts 0 templates 11 lexicon 588 lrules 27 rules 36 e int process_item int i_id char i_input int parse_id int edges int exhaustivep int derivationp int interactivep with parameters iid identifier for this test item gt iinput actual string for this item parse_id identifier for this process request gt edges upper limit for the number of edges successful rule applications to be built by the parser 1 for no limit l exhaustivep flag requesting exhaustive complete search 1 by default neg ative numbers encode an upper limit on the number of analyses to compute where 0 is interpreted equivalent to 1 derivationp flag asking the client to return not only the derivations for the analyses that were found but to append the complete list of all passive edges built to the results field see section 5 3 and the example output below gt interactivep similar to interactivep parameter in create_run incr tsdb users can request interactive processing of individual items e g by double clicking on the i input field in most analysis tables see section 4 while pro
18. parser return when a first analysis was found which can speed up processing a test run significantly however remember that non exhaustive profiles only contain partial information and should not be compared to complete data sets e Switches Overwrite Test Run makes incr tsdb overwrite existing test run infor mation if any in the current profile or preserve it and append to the profile when enabled the default incr tsdb performs the equivalent of the File Purge oper ation before the start of a new test run cumulative profiles are rarely useful since they require the use of TSQL conditions to distinguish between the various test runs represented in the data set DRAFT OF OCTOBER 15 1999 34 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY e Switches Autoload Vocabulary finally toggles the autoloading of vocabulary prior to starting a new test run on by default disabling this switch can save time when the necessary vocabulary is known to be loaded e g from a previous test run or when it is desirable to include lexical access time in the accounting 4 9 Recommendations for Future Experimentation DRAFT OF OCTOBER 15 1999 REFERENCE MANUAL 35 5 Reference Manual 5 1 incr tsdb Architecture 5 2 Contents of incr tsdb Profiles 5 3 Storage and Reconstruction of Derivations 5 4 The Menu Structure 5 5 Visualization and Analysis of Profiles 5 6 Comparison among Profiles
19. should then ter minate gracefully Typically a command line option should be used to turn the processor into incr tsdb client mode which will then be supplied by the incr tsdb server in process creation that in turn makes the client execute a code fragment like include itsdb h if capi_register create_run process_item int char NULL complete_test_run slave if exit 0 The interface functions supplied by the client are instantiated as follows in the ANSI C application program interface 7 e int create_run char data int run_id char comment int interactivep char custom with parameters data name of the test suite instance to be processed run_id identifier for this test run comment descriptive comment supplied by the user de Ale ql interactivep flag indicating whether the test run is to be processed in batch mode regular incr tsdb mode or interactively see below ii custom an application specific string that was optionally supplied in the client definition when supplied the client may take an appropriate action on this parameter e g re load a script file or similar since the interface functions need to return more information to incr tsdb than just a simple function return value while executing the client side of the interface e g the create_run function the standard output stream is redirected to the incr tsdb server th
20. the incr tsdb context this notion is generalized somewhat to include both manually constructed data sets typically containing systematically chosen gram matical as well as ungrammatical test items and aiming to present distinct phe nomena in isolation or controlled interaction and sequences of test items extracted from actual text corpora typically excluding negative test items but demonstrating a richer combination of phenomena interaction and ambiguity incr tsdb makes a technical test suite subdivision according to processing state see the discussion of test suite skeletons vs instances below Test Suite Skeleton Analogous to the material vs data distinction assumed in many experimental paradigms incr tsdb reserves the term test suite skeleton to refer to pure collections of test material i e sets of test items and associated annotations that have not yet been enriched with processing results or data in this respect Test suite skeletons are stored as partial databases that contain all empty relations for those parts of the database schema see section 5 2 for details that are used for application specific parameters obtained from a test run see below Test suite skeletons are read only databases that without profound incr tsdb knowledge cannot be modified Test Suite Instance When preparing for a test run see below one of the available test suite skeletons is selected and subsequently instantiated to yield
21. the pvm 1 conf and ps commands The pvm 1 command halt can be used to shutdown the virtual machine on all active nodes 2 However it is often more convenient to leave an existing virtual machine alive even when it is not in active use PVM daemons on the individual nodes can continue to run for weeks or months without user interaction Only after explicit halt or kill in pvm 1 or implicit node failure daemon termination users should have to restart the virtual machine 6 3 ANSI C Clients The incr tsdb distribution contains a function library libitsdb a or libitsdb so precompiled libraries are available for common incr tsdb platforms see appendix A for the exact content of the current distribution and the location of the library files that clients should use to connect to the ANSI C application program interface Prototypes for the functions used by the application to establish an incr tsdb client side binding are supplied in the header file itsdb h In incr tsdb mode basically a client has to i supply the four interface functions according to the function prototypes given below such that they can be called following the C calling conventions thus the functions need not be implemented in C as long as they obey the argument passing and return value specification ii register these functions with the incr tsdb side of the application program interface i e
22. 4 3 or 5 0 and will only work on the Solaris Sparc Linux x86 and OSF DEC Alpha platforms The current pre release version should be compatible with LKB versions 5 1 and 5 2 and the October 1999 incarnation of PAGE Besides incr tsdb can be configured as a stand alone application that allows off line data inspection and interfacing to external processors see section 6 Depending on the target system e g Solaris vs Linux and type of host platform available e g LKB source vs image distributions different subsets of the available incr tsdb archives need to be obtained and installed All archive files comprising the incr tsdb distribution are in gzip 1 ed tar 1 format they contain subdirectories and files in such a way that they must be unpacked into the same target directory This target directory is often referred to as the directory root for the incr tsdb installation It should either be created as a new directory prior to unpacking the archive files for stand alone incr tsdb installation see below or be an existing directory that already serves as the root directory for an installation of the LKB host platform embedded incr tsdb installation see below When unpacking archive files the target directory should be the current working di rectory then commands like for example gzip d c source tar gz tar xvf 3For access to and download instructions for LKB and PAGE see e http www csli stanford
23. 5 Profile Analysis The incr tsdb podium offers a number of pre configured views on a data set Addi tional configuration options allow the flexible adjustment of the analysis perspective and granularity additionally incr tsdb provides tools to visualize processing results on a per item basis All analysis commands use the currently active test suite instance the one highlighted in the podium body as the base data set the selection can be changed by single clicking the left mouse button on another profile The most common queries to a profile are implemented through the Coverage Over generation and Performance commands in the Analyze menu Either of the three com mands will select the neccesary data from the selected test suite instance compute the DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 19 retrieve found 1348 items merge with output specifications found 0 output specifications l 23 reference s lexical entrie s l 6 reference s To lexical entrie s 6 reference s 0 0 lexical entrie s 28 reference s 1 lexical entrie s 1 reference s 1 lexical entrie s 23 reference s 1 lexical entrie s 2 reference s 1 lexical entrie s would years you yourselves largest run id largest run id is 0 retrieve found 1348 items merge with output specifications found 0 output specifications create cache tsdb 1 write cache in tmp tsdb cache oe
24. E AND PERFORMANCE LABORATORY confirming the registration and the license key currently in use or notify the user about the pending protocol message that will be generated after several minutes of continuous use see section 2 1 above 2 5 Loading and Re Starting incr tsdb Once incr tsdb has been installed and compiled where necessary successfully requiring the tsdb system should be sufficient in future sessions Thus after loading the host platform or the file loadup lisp for stand alone installations see above respectively evaluating the form load system tsdb should result in loading the incr tsdb Common Lisp code from the src tsdb lisp subdirectory of the source tree into the current environment if necessary the system will suggest to re compile some or all of the source files first and ask for confirmation Once loading has completed the incr tsdb main interaction window called the incr tsdb podium see figure 2 for a screen shot will be displayed From here on continue through the sample session sketched in section 4 below If for some reason loading the system code completes but fails to create the podium window or if the podium window has been closed or destroyed accidentally the following Common Lisp form can be used to request creation of the podium tsdb tsdb podium The same command can be used to shutdown a running incr tsdb instance and creat
25. KB is most likely an effect of better unifier throughput especially noticeable in the 55 difference in memory consumption that overcompensates a less efficient parsing strategy as there is no principled obstacle to combining the two approaches or even modules the perfor mance profiling suggests there is room for a significant improvement in processing efficiency From this very detailed and maybe sometimes longish example of performance profile analysis and comparison at least two conclusions should become clear i the in depth study and correlation of several parameters can greatly help in the identification of relevant system properties and guide developers to ways of tuning a system and ii the contrastive Strictly speaking the grammaticality annotation does not necessarily imply that an item can actually be parsed An aggregate on the basis of readings gt 1 at least one analysis was obtained would therefore be the correct reference set see section 4 7 below on how to restrict the data set accordingly Both systems deploy a mechanism to avoid parser actions i e expensive unification that can be predicted to fail while in the November 1998 version LKB maintains vectors of feature values embedded at paths that are known to have the highests failure potential and validates compatibility of those vectors before doing the actual unification PAGE uses a table of rule incompatibility information compiled off line fro
26. S Abrams works Abrams hired Browne Abrams showed the office to Browne Abrams showed Browne the office Abrams bet Browne five dollars that Chiang hired Devito Abrams became competent Abrams became a manager Abrams became in the office Abrams became working Abrams is interviewing an applicant 1 2 3 4 5 6 7 8 9 FPOOrRrFPHE HEHEHE HE UN UN Mm mM UM UM UU UN UN UN m o Other means to browse the data selectively and identify meaningful subsets are the Browse Custom Query and Options TSQL Condition menues they will be presented by example in section 4 7 below From the Browse Test Items table and all similar tables that contain the id and i input fields it is possible to feed individual test items to the processor e g to verify the parser well functioning by double clicking any mouse button on the i input field Interactive processing will not disable the trace and result displays or write new data to the currently active profile see below 4 4 Obtaining a Competence and Performance Profile While most of the incr tsdb functionality is independent of the underlying platform and in fact can be loaded and used without either LKB or PAGE processing a set of test items and obtaining a new competence and performance profile obviously presupposes that the host platform is configured and fully operational i e can parse sentences interactively and produces the exp
27. Typically this problem will only af fect users of the LKB image distribution that want to take advantage of the short cut procedure described in section 2 5 Options and Parameters incr tsdb Command Line Interface tsdb Database Format DRAFT OF OCTOBER 15 1999 APPLICATION PROGRAM INTERFACE 37 6 Application Program Interface Initially the incr tsdb package was developed as an extension to grammar development platforms viz the PAGE and LKB systems implemented in Common Lisp therefore ear lier versions of the profiler were loaded into the same Lisp universe as the grammar devel opment system called the host platform see section 3 This setup sometimes referred to as integrated or embedded mode allows incr tsdb to call a set of Lisp functions to interact with the host platform directly Though incr tsdb embedded mode still is the default setup for LKB and PAGE it is not suited to connect the profiler to non Lisp systems like CHiC and LiLFeS both implemented in ANSI C To simplify integration with additional platforms the incr tsdb distributed mode was devised building on a clean and simple ANSI C application program inter face processing systems run as clients to a a stand alone incr tsdb server process and communicate by means of a general interprocess protocol The Parallel Virtual Machine PVM model see below was chosen for interprocess communication in distributed mode this not
28. achine list machines accessible to PVM option fields are see pvmd 8 dx path to pvmd3 executable on remote host ep colon separated PATH used by pvmd 8 to locate executables wd working directory for remote pvmd 8 ip alternate or normalized name to use in host lookup amp teej is s u tokyo ac jp dx home users oe src itsdb bin osf pvmd3 wd tmp amp eo stanford edu dx user oe src itsdb bin solaris pvmd3 wd tmp amp eoan stanford edu dx user oe src itsdb bin solaris pvmd3 wd tmp top coli uni sb de dx proj perform itsdb bin solaris pvmd3 wd tmp cpio coli uni sb de dx proj perform itsdb bin linux pvmd3 wd tmp perl coli uni sb de dx proj perform itsdb bin linux pvmd3 wd tmp limit dfki uni sb de dx proj perform itsdb bin solaris pvmd3 wd tmp let dfki uni sb de dx proj perform itsdb bin solaris pvmd3 wd tmp The pvm_hosts file contains one host per line together with optional information about the location of the pvmd 8 executable on the target host the working directory and search PATH environment variable to be used and other configuration options see the example file and the PvM documentation A leading amp character can be used to indicate that a particular machine is not to be activated by default still the pvm_hosts entry makes configuration data for that host available to PVM such that it can be added dynamically on user request 23The amount o
29. age collections while parsing square brackets DRAFT OF OCTOBER 15 1999 20 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY positive word lexical parser total overall Phenomenon i items string items analyses results coverage S_ Types C_Agreement C_Complementation C_Diathesis Active C_Diathesis Passive C_Tense Aspect Modality C_Negation C_Coordination C_Modification NP_Agreement NP_Modification NP_Coordination generated by incr tsdb at 26 nov 98 19 03 c oe coli uni sb de Figure 5 Coverage Profile for the LinGO ERG on an instance of the CSLI test suite Columns are from left to right TSNLP phenomenon name total number of test items number of grammatical test items average test item length average number of lexical entries per test item average number of readings per test item total number of test items successfully parsed and percentage of grammatical items parsed comparing columns 4 and 5 provides a measure of lexical ambiguity while column 6 indicates syntactic ambiguity for example passive test items exhibit significant lexical ambiguity because of multiple lexical entries for the copula and the passive participle the latter also contributes to the higher measure of syntactic ambiguity for passives requested information and present it in a new window Most of the incr tsdb analysis windows have several export buttons e g labeled and ATEX that allow
30. al cpu time o gc time ie om ened incr tsdb 1 at 20 nov 1998 21 20 h c oe coli uni sb de 7 9 11 13 15 String Length i length Figure 8 Graphical view of various parsing time metrics in incr tsdb encapsulated PostScript top and P CT X bottom formats both formats are fully scalable in size as of January 1999 only the PostScript output mode allows logarithmic scaling of axes though DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 25 variation of parsing complexity throughout the test run obtained from changes to both Graph By and Graph Values additionally note that any upper limit imposed on x axis values 15 for string length in the above examples has to be reset in Graph Parameters 4 6 Comparison to Earlier Test Runs As errors are diagnosed and corrected or as the grammar is modified to extend coverage to additional phenomena it is often necessary to see how the current version of the grammar or system compares to a previous instance This evaluation of progress in grammar and system development is facilitated by the commands from the Compare menu allowing developers to construct summary reports that concisely contrast salient characteristics for two test suite instances To obtain a contrastive summary the two test suite instances to be compared have to be selected out of the current working set In addition to the active profile selection with left mouse button
31. collection and requests that the podium cursor be changed into the gc cursor skull and bones It seems that Tcl TK internal state is sometimes corrupted if an external event is delivered while the Tcl Tk already has a substantial event queue to process the problem may result in a pop up dia logue window reporting some spurious Tcl Tk background error It seems safe to acknowledge and ignore these background errors by clicking the button on the left of the pop up dialogue typically the podium can then resume normal operation 3 Start up problems running Allegro CL from a shell rather than through the far more comfortable emacs 1 interface and using the user specific start up file clinit cl or the L or e command line arguments to load and start incr tsdb can freeze the Tcl TK process running the incr tsdb podium Apparently the Allegro CL DRAFT OF OCTOBER 15 1999 36 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY 5 12 5 13 5 14 standard io system is not completely initialized during command line processing such that the environment inherited from the shell from which the Lisp is started inter acts very badly with the creation of the podium process during Allegro CL start up Until the problem can be resolved it can be avoided by a using the Allegro CL emacs 1 interface or b loading and starting incr tsdb interactively after the Lisp start up has completed see section 2 5
32. does not require the re load of defsystem lisp as it would normally 5For sites that do not have access to a suitable Common Lisp environment using the self contained LKB image distributions for Solaris or Linux see above may be an option even if the LKB functionality is not required Alternatively a fully functional trial version of Allegro CL for Linux can be downloaded free of charge from http www franz com DRAFT OF OCTOBER 15 1999 INSTALLATION AND STARTUP 7 Target directories for the compiled object files like src fas1 or src 1as1 should have been created as part of the platform specific binaries archive s already if compi lation fails because of missing object file directories those need to be created manually using mkdir 1 2 4 Registration As part of the installation or at a later time e g once you found the package to be useful for your purposes it is recommended that you register with the author Registration is not intended to restrict distribution or application of the software to charge users a license fee or turn a profit from the sale of a large customer database The main and only purpose of voluntary registration is to provide feedback to the author and to allow occasional relaying of information to the actual users unless otherwise requested registered users will be added to the incr tsdb maling list The maling list is used by the author to announce major version
33. e LKB or PAGE Lisp listener The Browse Test Items and Browse Phenomena menus can be used to view part of the raw data as a table presenting a selection of database fields attributes for all or a subset of the records from the active test suite instance Since computing the table layout and geometry for larger databases can take substantially more time than it should i e from a few seconds to around one minute on an average cpu it is in general wise to restrict the selection of the data to what is actually needed A common way to select subsets of test items is by means of a classification of gross syn tactic phenomena Both the CSLI and TSNLP test suites deploy the classification scheme developed in the TSNLP project see Lehmann et al 1996 for details Browse Phenomena on the CSLI data set yields the display shown in figure 3 The Browse Test Items menu in turn allows a selection from all available test items by phenomenon Browse Test Items C_Complementation for example displays all test items their unique identifiers actual input string wellformedness code where 1 is grammatical and 0 ungrammatical and root category as follows The value of grammar version typically is determined from the matrix load file for a token grammar for the November 1998 version of the LinGO ERG for example the files script LKB version and english tdl PAGE version contain the state
34. e a fresh interaction window e g to recover from a system error or a misbehaving incr tsdb status please remember to submit problem reports where unexpected behaviour occurs If the system reports an error in creating the podium window or just fails silently see section 2 6 below 2 6 Troubleshooting Something Went Wrong Many things can go wrong Following is a list of problems related to incr tsdb in stallation that have been encountered by other users please check the list before seeking support from the author 1 Failure to Create Podium Window If after loading the incr tsdb code evaluating the form tsdb tsdb podium fails to create a new window presenting a view similar to figure 2 there is a problem in creating the external from the Lisp perspective Tcl TK process First make sure the DISPLAY environment STf you find yourself using the incr tsdb package regularly you can in fact use the same single command to load both the host platform and the incr tsdb code thus load system tsdb will automatically trigger the load system 1kb or equivalent for PAGE that is usually required to load the host platform from a source distribution Should the compilation and loading of the incr tsdb Common Lisp code fail this may indicate a problem in the installation of the underlying host platform i e LKB or PAGE see the appropriate documentation if available and check section 2 6 below
35. e client is expected to write system parameters in a Lisp like syntax ie as bracketed pairs consisting of the parameter name and the corresponding Since client functions are registered by entry point i e as function pointers names for the interface functions can be assigned arbitrarily in the ANSI C application program interface The function names used in the startup example above and the prototypes below are just one candidate choice of a consistent naming scheme 27The interface functions often have more parameters than would be strictly required to process the requested task the additional information is supplied to the client to facilitate client side accounting or the display of status messages where available Obviously these surplus parameters can be safely ignored 28To avoid misinterpretation of output generated by the client it is essential that while executing a function from the incr tsdb application program interface nothing except system parameters is written to standard output Developers preparing a client for incr tsdb adaptation should make sure that additional e g status or debugging output is printed to the standard error stream instead this stream is captured at the PVM layer relayed to the server and written to a protocol file without further interpretation DRAFT OF OCTOBER 15 1999 42 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY value to this stream following is an example of
36. e g test items with a length of 20 to 25 words for the top row the number of test items per aggregate the average number of parser actions executed the average percentage of potential parser actions filtered i e not executed the average number of edges built active plus passive where applicable the average times to find the first reading and all readings in seconds average total cpu time used and share of garbage collection gc time and the average amount of memory allocated in kbytes while parsing the aggregation scheme chosen in the example indicates a strong correlation between the input sentence length and the amount of work done in the parser e g when quantified by the number of tasks executed or the total time and space requirements as should be expected writer to inspect the performance profiles regularly as for example an underspecified rule may well create large numbers of spurious edges local ambiguity without any noticeable increase in the number of readings obtained global ambiguity Similarly system develop ers that take a token grammar and its properties as given could still use the competence profiles to gauge ambiguity in dependency to the average input length for example as they are tuning the system to reduce lexical ambiguity by use of a suitable filter say For all three tabular Analyze summaries the aggregation scheme can be adjusted dynamically While aggregation by phenomenon clas
37. ected result As for browsing the data see above it may seem desirable to save processing time by restricting a test run to a subset of the test items available in a token test suite instance However since all profiles are stored as a database and made available for future reference it is typically desirable to obtain complete profiles that contain information for parsing all test items Thus all instances of the same test suite skeleton will always be mutually comparable to each other Yet under certain conditions one may want to restrict the parser to a non exhaustive search strategy by means of the Options Switches Exhaustive Search switch For PAGE at least non exhaustive parsing means that the parser stops searching for solutions when the first reading is found for test data where the grammar assigns at least one reading to most test items i e it achieves a good coverage rate the non exhaustive mode will result in a significant reduction of procesing time At the same time again obtaining a profile through non exhaustive parsing limits interpretation and comparison of the data e g there is no information on global ambiguity and the overall processing times are skewed hence non exhaustive profiles should be marked explicitly for example by the name chosen for the test suite instance and the descriptive comment associated with the test run The LKB parser as of November 1998 uses a mostly breadth first parsing st
38. ectory that is used to store test suite instances and profiles The default installation comes with a central profile repository that contains a few example data sets for common reference but the central directory will typically not allow write access i e creation of new directories and files by non privileged users Thus as soon as an incr tsdb user wants to create a new test suite instance and obtain a current profile as will be demonstrated in this sample session she has to designate a user writable directory a subdirectory tsdb in the user home directory for example for profile storage After creation of the directory e g using DRAFT OF OCTOBER 15 1999 14 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY Unxx mkdir 1 incr tsdb has to be informed of the location the Options Database Root command pops up a directory input dialogue in the podium minibuffer e g database root tsdb The minibuffer input dialogue provides emacs 1 style context sensitive completion directory completion in this case using the key hitting once completes the current input as long as there is an unambiguous common prefix for the current set of alternatives or displays the list of choices in the podium body directories are completed including a trailing see above to simplify the validation of the value entered completes the directory input and makes incr tsdb search the specified locati
39. edu aac 1lkb html and e http www dfki de 1t systems page respectively DRAFT OF OCTOBER 15 1999 INSTALLATION AND STARTUP 5 PS data tar gz test suite skeletons and sample profiles binary and object files for Solaris 2 6 Sparc binary and object files for Linux 2 2 x x86 binary and object files for OSF1 DEC Alpha precompiled files for LKB image distribution incr tsdb stand alone loading environment Figure 1 Summary of archive files comprising the incr tsdb distribution Suitable subsets have to be chosen according to the target platform operating system and type of host platform installation if any Note that archive 9 must not be installed on top of a LKB source installation can be used to extract the contents of the selected archive files into the target directory Subdirectories bin etc lib man and src and maybe others will be created if they do not already exist as part of the host platform All Installations The archives 1 through 4 are required for all types of installation Additionally at least one of 5 to 7 is needed for all installations The same instal lation can be used on multiple platforms e g in a directory tree that is shared among Solaris and Linux hosts platform specific executables and libraries are stored in separate subdirectories of the bin and 1ib installation directories LKB Source Distribution I
40. ence amp Performance Profile Complete test suite instances that have been enriched with competence and performance information for a token processing sys tem and grammar version are frequently described as competence amp performance profiles While technically profiles are just test suite instances i e databases in the current working set the specialized term emphasizes the diagnostic nature of the data within the incr tsdb approach competence amp performance profiles are the fundamental building blocks for the in depth empirical analysis and comparison of various processing systems and strategies Each incr tsdb profile is a rich accu rate and structured snapshot of relevant competence and performance properties of a token processor and grammar version DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 13 8 incr tsdb 1 podium File Browse Process Analyze Compare Detail Options Test Suite Database Status Items Parses ch art lingo jul 98 english 98 09 23 page kf hf 4612 4612 lingo nov 98 csli 98 11 15 page 1348 1348 lingo nov 98 csli 98 11 15 vm 1348 1348 lingofnov S8 vm97 98 11 18 page MOO Oo lingo nov 98 vm98 98 11 12 vm ro no 37 processing ingonov 98 4m97 98 11 18 page test run Figure 2 Screenshot of incr tsdb podium i the horizontal top area displays context dependent balloon type help ii the menu structure reflects the prototypical profiling sequence bro
41. ep triggered by the load system form during Allegro CL start up can only succeed if the Lisp is run from the Allegro CL emacs 1 interface see section 5 11 on known incr tsdb problems for details Before attempting to automate the loading of incr tsdb it is therefore recom mend to validate proper installation and loading by executing the interactive procedure described above Stand Alone incr tsdb Installation If incr tsdb is installed as a stand alone pack age rather than as an add on module for the LKB or PAGE host platforms archive file 9 is required to supply the loading environment that is otherwise provided by the host platform After unpacking all of the necessary archives Common Lisp source code has to be compiled for first time use just like with a LKB source distribution see above Additionally the Lisp system has to be informed about the location of the incr tsdb installation directory Again assuming that itsdb is the incr tsdb directory root the following forms have to be evaluated from the Lisp prompt preferably in a fresh Common Lisp universe load itsdb src general loadup compile system tsdb Reloading the defsystem facility here is only required because the LKB ready to run images al ready contain a version that assumes availability of the Lisp compiler since the image records that the defsystem facility was loaded before loadup lisp all by itself
42. erface proper From previous integration experience viz with the LKB and CHiC systems it seems most practical to aim for stepwise and iterative integration and adaptation Since only very few of the competence and performance parameters the profile contents are strictly required for basic incr tsdb functionality it is recommended to set up and validate the basic interface functionality before filling in the bulk of system parameters Abstractly the incr tsdb application program interface is comprised of four functions that correspond to the following tasks on the client side e test run initialization obtain information about the current processing environ ment i e parameters in the run relation see section 5 2 and the examples below additionally where appropriate the client can be initialized and prepared for batch processing e test item processing given a single test item at each call process the item and re turn system parameters mostly stored in the parse and result relations obtained while processing e test run completion complementary to initialization may reset client to regular processing mode or complete client side accounting as of June 1999 no additional information is returned to incr tsdb e tree reconstruction given a derivation tree see section 5 3 attempt to recon struct the corresponding phrase structure tree i e replay the derivation and return information about
43. erous colleagues at the two institutions and their scientific vicinities have contributed to the approach through invaluable discussions and productive criticism To name only a few the feedback provided by Uli Callmeier John Carroll Anne Copestake Marius Groenendijk Tibor Kiss Sabine Lehmann Rob Malouf John Nerbonne and Hans Uszkoreit has greatly influenced the current results The current incr tsdb distribution contains code developed by Tom Fettig co developer of the tsdb database and Oliver Plahn co developer of the table and graph widgets deployed in the incr tsdb podium many thanks for these contributions Part of the research underlying the incr tsdb package was funded by the German National Science Foundation DFG within the Special Research Divison 378 Resource Adaptive Cognitive Processes project B4 PERFORM by the Commision of the European Union through the TSNLP project LRE 62 089 by Anite Systems Luxembourg through a subcontract on integration with ALEP and by the German Federal Ministry of Ed ucation Science Research and Technology BMB F in the framework of the Verb Mobil project FKZ 011V7024 Additional funding was supplied by CSLI and DFKI Saarbr cken through travel support to the author DRAFT OF OCTOBER 15 1999 CONTENTS ili Contents 1 Overview 1 1 1 The Name of the Game incr tsdb 2 2 ee ee es 1 1 2 Structure of the Document 2 000022 eee 1 2 In
44. f incr tsdb is installed on top of an existing LKB source distribution no additional archive files are required In particular please note that archive 9 conflicts with the LKB source code distributed by CSLI Stanford and may only be used with binary only LKB distributions or stand alone incr tsdb installations After unpacking the incr tsdb archive files the Common Lisp source code needs to be compiled into platform specific object files this can be achieved by loading the LKB using the regular site specific procedure and then evaluating the following form from the Lisp prompt compile system tsdb The creation of object files is a first time only procedure but has to be executed for each target system for which incr tsdb is installed Obviously write access to the target directory tree is required in this step once compiled the incr tsdb installation can be shared among multiple users LKB Binary Distribution Since the ready to run LKB executables distributed from Stanford cannot contain the Allegro compiler precompiled incr tsdb object files can be obtained as archive file 8 Besides the LKB executable needs to be instructed about the location of the incr tsdb directory tree and the loading routines included as part of the DRAFT OF OCTOBER 15 1999 6 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY executable have to be redefined for the compiler less environment the underlying problem
45. f applicable are taken from the value of the Common Lisp variable grammar version skeleton is the short name of the test suite skeleton used the name given in parenthesis in the File Create list and processor identifies the current host platform e g LKB or PAGE The minibuffer input dialogue allows emacs 1 style editing of the name suggested by incr tsdb aborts the current task completes the input and starts the creation of a new test suite instance After a few seconds the new name is inserted into the list of available test suite instances in the podium body sorted by lexicographic order the status for a fresh test suite instance is rw read write the number of items as in the skeleton used i e 1348 for the current example and the number of parses 0 for an empty profile The new test suite instance is selected made active after creation The current selection is indicated by highlighting the complete entry in the podium list there can be at most one active test suite instance at any given time 4 3 Browsing the Data Before starting a time consuming test run it can be desirable to inspect the avaiable test items from the active test suite instance The Browse Vocabulary command displays a sorted list of vocabulary i e word forms used in the test items together with the frequencies of occurence The printed output goes to the window that was used to start the incr tsdb podium i e th
46. f data transferred between incr tsdb server and clients is modest but can be non trivial hence assuming a high performance client network throughput in non local networks or a highly congested ethernet may become an issue Still incr tsdb distributed mode can make it feasible to utilize remote cpus typically in addition to local resources even successful test runs across the Atlantic Ocean have already been reported DRAFT OF OCTOBER 15 1999 40 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY Starting and Stopping Once the user level PVM configuration has been completed the virtual machine is created by starting the pvmd 8 daemon on one arbitrary node of the configuration On startup pvmd 8 will consult the pvm_hosts file and attempt to start PVM daemons on all remote nodes automatically Since remote pvmd 8 startup is achieved using the rsh 1 protocol users have to make sure that the host used to start PVM has rsh 1 access to all nodes in the virtual machine e g using the system wide hosts equiv 5 or the user specific rhosts 5 mechanisms The PvM daemon writes protocol messages into the file tmp pvmd debug user where user obviously is the active account name that should be consulted in case of problems Status information on PVM can be obtained using the pvm 1 shell that connects to an existing virtual machine and supplies a set of user commands to query PVM status especially
47. has been loaded with the suitable grammar and is operational Secondly the tools introduced already for browsing and analyzing the data can be used in combination with suitable restrictions on the data to select and visualize relevant subsets Again on the granularity level of individual test items for example a grammar engineer is most likely to request a listing of input that constitutes inadequacies in gram matical competence as observed on the aggregate level of linguistic phenomena say Assuming that the test suite was at least annotated with judgements on grammatical ity the following paraphrased queries to the database correspond to lack of coverage and overgeneration respectively e lack of coverage list test items plus relevant properties that are annotated as grammatical but failed to parse e overgeneration list test items plus relevant properties that are tagged ill formed but accepted by the parser i e were assigned at least one analysis Although a demonstration of the incr tsdb query language is included towards the end of this sample session luckily the user interface provides a few common selectional conditions as hard wired choices in the Options menu To realize the overgeneration query DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 31 for example select lllformed plus Analyzed from the Options TSQL Condition menu e g using the middle mouse button in activating entries to
48. he substantial Tn fact a larger number of attributes from a competence and performance profile could be used as the aggregation or graphing x axis dimension The author explicitly welcomes comments and suggestions for extension DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 23 Aggregate Size Number of Test Items generated by Mo TIOE at 20 nov 1998 JUE 17 h c oe6coli uni sb de 9 11 13 String Length i length 8 tsdb 1 lingo nov 98 csli 98 11 20 page by i id Parser Tasks executed tasks D successful tasks 50000 40000 20000 0 generated by fincr tsdb J at 27 jan 99 16 50 ic oe coli uni sb de 100 200 300 400 500 600 700 500 9300 1000 1100 1200 1300 Item Dimension i id Close LaTex PostScript Figure 7 Barchart distribution of aggregate size by string length top and graphical distribution of parser tasks throughout test run bottom the graphs suggest that the test set is very sparsely populated with test items longer than twelve words and that parsing complexity differs immensely across the test set DRAFT OF OCTOBER 15 1999 24 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY Parsing Time m gc time first reading all readings total cpu time generated by incr tsdbi at 27 jan 99 16 29 c oe coli uni sb de 6 8 10 String Length i length e first reading all readings tot
49. ication this is expected to change really soon though DRAFT OF OCTOBER 15 1999 APPLICATION PROGRAM INTERFACE 39 The incr tsdb distribution includes PvM binaries for common platforms these bi naries were mildly customized mostly to simplify PvM startup There should be no principled obstacle however to using existing PVM installations where available That the PVM daemons run as user level processes means that no system level installation or configuration support is required at the same time it obliges all users who want to deploy incr tsdb in distributed mode to establish their personal PVM environment Fortu nately setting things up is very simple and mostly a once only task the virtual machine once established is fully independent from incr tsdb and typically remains available until explicitly by user request or implicitly system reboot 8 terminated The fol lowing paragraphs summarize the necessary user action to make the PVM environment operational for background information see the PVM man 1 pages distributed with incr tsdb and Geist et al 1994 User Level Configuration A PVM virtual machine is composed of one or more physical hosts connected to a common network Typically individual users will have a set of machines available to them the user level PVM configuration file pvm_hosts can be used to describe a group of hosts accesible to PVM that shall be joined into a virtual m
50. ity and then press three times This argumentation has strong empirical support the erroneous i length annotations in the CSLI test suite skeleton slipped through unnoticed for more than a year while the data set was in heavy use and frequently inspected at other levels of granularity Obviously this finding of the presentation will be corrected in the data distributed with incr tsdb such that it shall not be reproducable in releases starting February 1999 0VerbMobil is a German research and development project working on a machine translation prototype for spoken face to face dialogues in the domain of appointment scheduling DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 33 platform is adapted for linguistic analysis of speech recogniser output As the analysis component in this application can only be granted a limited time slice to compute at least one analysis an upper limit on the number of parser actions that can be executed is imposed as of November 1998 the limit chosen is 4000 tasks By means of the following incr tsdb query typically applied to a profile obtained from processing test data from the target domain with no limit imposed select i id i input r etasks time tcpu where result id 0 amp amp r etasks gt 4000 developers can inspect the set of test items from the training set that require more than 4000 tasks for the first reading result id 0 already and hence will be lost when imp
51. le executing almost the same number of parser tasks only about 5 less than PAGE it requires close to 30 less processing time and less than half of the space However when comparing the additional information in the bottom of figure 10 viz the total results from the individual performance profiles more striking differences mani fest themselves e because in exhaustive search mode at least LKB uses a breadth first parser the time to find a first reading is essentially the same as the overall processing time though it may seem puzzling that the first value is actually higher than the total time this is due to the fact that timing information for individual readings is only available for items that were successfully analyzed thus the average is computed DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 27 lingo nov 98 csli 98 11 20 page vs lingo nov 98 csli 99 01 29 Ikb PAGE LKB reduction Aggregate tasks time space tasks time space tasks time space o s o kb 9 os otkb i wf 1 3758 3 58 13043 3587 2 56 5863 4 6 28 5 55 0 i wf 0 2655 2 47 8983 2421 1 73 4054 8 8 30 1 54 9 Total 8487 3 26 11863 5249 2 52 5338 items etasks filter edges first total tcpu Platform ESAS PAGE 1290 3437 56 8 284 096 234 3 26 0 40 11563 generated by incr tsdb at 30 jan 1999 15 06 h c oe coli uni sb de Figure 10 Perf
52. loon help for additional key bindings Ag gregation by string length with an aggregate size of 5 was used to create the performance profile given in figure 6 Besides the tabular views the Analyze menu also allows the graphical presentation of individual profiles Again there is a large degree of flexibility controlled by the following switches e Analyze Graph By is a cascaded menu that selects the x axis for the graph to be drawn i e the dimension along which data points are plotted the choice is very similar to the Options Aggregation Parameters seen before and as of January 1999 includes string and lexical length the numbers of readings parser tasks edges et al finally graphing by test item identifier yields singleton aggregates that at least for numerically ordered test sets give a visual clue on the distribution and homogenity of some parameter s throughout a test run e Analyze Graph Values is another cascaded menu that selects the value s plotted along the y axis the current choice includes four major groups viz parser actions parser times overall times and chart edges built each of the groups contains sev eral attributes e g time for first vs all readings that can be selected or deselected individually as the Graph Values menu like a few others often requires several selections at a time it allows the use of the middle mouse button instead of the default left mouse bu
53. m Given the re cent addition of a generic C application program interface see section 6 the incr tsdb package can now be run as a stand alone application that communicates with client processes through a distributed inter process communication mechanism sec tion 6 2 As of May 1999 however the embedded setup still is the default solution for Lisp based host platforms Test Item The basis elements used in testing and diagnosis are called test items all incr tsdb test data classical test suites and corpora extracts alike are structured as a sequence of test items typically sentences or other types of phrases A test item typically is composed of a string used as input to the processor together with linguistic and non linguistic information associated with each test item so called annotations The minimal annotations per test item are i a unique test item iden tifier ii the item length in words and iii a grammaticality or wellformedness code Other types of annotations e g in the TSNLP test suites can include the syn tactic categories of test items the ssociation with one or more syntactic phenomena and a sometimes partial description of tectogrammatical structure When im porting test items from ASCII files see section 5 9 incr tsdb will automatically generate this minimal level of item annotation Test Suite Traditionally the term test suite is used for hand crafted sets of test data within
54. m the input grammar the average filter rate quoted in the performance profile is the percentage of parser tasks that were postulated but filtered prior to execution The LKB on line quick check achieves significantly better filter rates at slightly higher cost restricted type unification vs table lookup recently January 1999 the two systems have been synchronized to both use a pipeline of table lookup plus subsequent quick check and now obtain almost identical filter rates DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 29 view of two performance profiles given in the top of figure 10 reveals relevant information but cannot substitute for the more detailed individual profile summaries both have their virtues in their own right 4 7 Zoom In Detail Profile Comparison and Analysis Although all discussion of profile analysis and comparison so far was based on summaries of aggregated data exploring some of the available variety in aggregation schemes the underlying database concept allows the inspection of results at a finer degree of granu larity The Detail and Options menus the latter when used in conjunction with other commands provide several ways to zoom in and obtain in depth views on the data of which the following paragraphs present three by example Firstly the commands in the Detail menu implement the comparison between two profiles on a per item basis The approach is in many respects similar to the Un
55. menon lexical parser i lexical parser i S Types C_Agreement C_Complementation C_Diathesis Active C_Diathesis Passive C_Tense Aspect Modality C_Negation C Coordination C_Modification NP_Agreement NP_Modification NP_Coordination oa a 791329 238 250 770 332 generated by incr tsdb at 28 jan 1999 15 46 h c oe coli uni sb de Figure 9 Competence Progress Profile comparing the October 1997 and November 1998 versions of the LinGO ERG the columns repeat salient properties from the individual competence profiles viz the lexical and syntactic ambiguity measures and the overall coverage in and overgeneration out percentages and PAGE on the same grammar points to several relevant similarities and differences between the two systems e both systems indicate a strong mutual dependency between the number of parser tasks executed i e calls to the unifier and the time and space consumption thus overall system performance crucially depends on unifier throughput as should be expected e analysing wellformed input and enumerating all readings is significantly more cost intensive than rejecting ungrammatical input for both systems all three parsing complexity measures given uniformly show that processing illformed test items re quires about two thirds 67 71 of the resources used when dealing with gram matical input e in total LKB processes sentences somewhat faster whi
56. ment setf grammar version LinGO nov 98 that results in values for grammar and version as used in the example DRAFT OF OCTOBER 15 1999 e tsdb 1 lingo nov 98 csli 98 11 20 page Data S Types C_Agreement C_Complementation C_Modification C_Diathesis Active C_Diathesis Passive C_Coordination C_Tense Aspect Modality C_Negation NP_Agreement NP_Modification NP_Coordination Other 16 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY dan hpsg stanford edu dan hpsg stanford edu dan shpsg stanford edu dan hpsg stanford edu dan hpsg stanford edu dan hpsg stanford edu dan shpsg stanford edu dan hpsg stanford edu dan hpsg stanford edu dan shpsg stanford edu dan hpsg stanford edu dan hpsg stanford edu dan hpsg stanford edu nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 nov 1997 generated by ner tsdb at 2 nov 98 20 52 c ce coli uni sb de LaTex PostScript Figure 3 Display resulting from the Browse Phenomena command on an instance of the CSLI test suite the list of core syntactic phenomena ranging from sentence types over complementation agreement and modification phenomena to negation and coordination is used in classifying test items according to the phenomena they present al ill Close DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 17 id SSCs SSCS E
57. mmar development and system optimization that builds on precise empirical data and systematic experimentation as suggested by Erbach 1991 and Carroll 1994 incr tsdb has been integrated with several contemporary HPSG de velopment systems the methodology and tools were designed for sufficient flexibility and generality to facilitate interfacing and adaption to other platforms The incr tsdb pack age is made available to the general public see section 2 2 for details in the hope that it may be useful to grammar and system developers and ultimately help in the study and comparison of salient grammar or processor properties across platforms Developers are strongly encouraged to evaluate the package for connecting it to their systems section 6 1 outlines various interface and daptation strategies For advice and support please contact Stephan Oepen Computational Linguistics Saarland University Postfach 151140 66041 Saarbr cken Germany oe coli uni sb de 49 681 302 41 76 The research and implementation of incr tsdb has been carried out in close collabo ration between Saarland University and CSLI Stanford over a period of several years The DRAFT OF OCTOBER 15 1999 ii incr tsdb COMPETENCE AND PERFORMANCE LABORATORY author is greatly indebted to Daniel P Flickinger CSLI for the ever outstanding coop eration continuous inspiration and support and the friendship that has evolved from the enterprise Num
58. mparison of the substantially different filter rates obtained in the parser for PAGE the 3437 tasks that were effectively executed manifest about 43 of the total number of parser actions created i e the inverse of the filter efficiency rate while in LKB the very similar number of executed tasks 3249 presents a much smaller fraction of the overall number of tasks created in the parser viz only about 12 hence LKB has postulated more than three times as many parser actions as has PAGE e while part of the projected difference in postulated tasks can be explained by the passive nature of the LKB parser it has to recompute rule applications that in PAGE would be represented as an active edge at the cost of creating edges that may never yield a passive edge because successive daughters cannot be instantiated the vast mismatch in the numbers and the larger inventory of passive edges created as noted above point to another difference in parsing strategy in contrast to the LKB parser PAGE deploys a bidirectional head driven parsing strategy since about half of the grammar rules have fairly unrestricted leftmost or rightmost daughters that are only constrained once another daughter often but not always the linguistic head has been instantiated the unidirectional LKB parser executes those rules many more times and thus gives rise to the observed proliferation of parser actions e summing up the in total superior performance of L
59. n Common Lisp here tsdb is the central function call in the interface to the processors finally the graphical user interface and visualization components build on the Tk widget library Ousterhout 1994 and the Tcl command interpreter where incr is the Tcl equivalent of the C increment operator In short incr tsdb is a hybrid collection of individual bits and pieces and so is the name of the package fortunately there is a unique simple and universal pronounciation for it tee ess dee bee plus plus Possibly some people will find the name ugly obscure unpronounceable meaningless or really really geeky alas it is the way it is We hope they will like the software better 1 2 Structure of the Document The following sections describe i how to obtain install and start incr tsdb ii present the core functionality by walking trough a sample session and iii detail the facilities of the incr tsdb user interface as a reference manual for experienced users Many thanks to Rob Malouf of CSLI Stanford for the transliteration and detailed comments on earlier working titles for the incr tsdb package deal DRAFT OF OCTOBER 15 1999 DRAFT OF OCTOBER 15 1999 INSTALLATION AND STARTUP 3 2 Installation and Startup The following sections detail the i conditions under which incr tsdb is made available ii how to obtain iii install and iv register the package and v the
60. n becomes available to the registration server viz the time of incr tsdb usage when the message is generated and the account used the originator of the protocol message DRAFT OF OCTOBER 15 1999 4 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY COPYRIGHT HOLDER OR ANY OTHER PARTY WHO MAY MODIFY AND OR RE DISTRIBUTE THE PROGRAM AS PERMITTED ABOVE BE LIABLE TO YOU FOR DAMAGES INCLUDING ANY GENERAL SPECIAL INCIDENTAL OR CONSEQUEN TIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAIL URE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES 2 2 Obtaining incr tsdb As of October 1999 the incr tsdb package is not yet available for public download over the InterNet However the entire package all source code and data can be made available to interested and tolerant users upon request please visit the incr tsdb web site under construction at http ww coli uni sb de itsdb and contact the incr tsdb author see the PREFACE section earlier in this document to request download access The author will try to supply support and consolation wherever possible 2 3 Installation As of October 1999 incr tsdb is only available for Franz Allegro Common Lisp versions
61. ndition used as part of the window title in square brackets always remember that summary views on a profile may vary substantially for different subsets of the data Finally the Browse Custom Query command allows the input of full TSQL clauses consisting of i a selection of attributes from the data set to project and display select clause ii optionally one or more relations to use in the selection from and iii optionally a possibly complex condition imposed on the selection where To complete the guided tour of the incr tsdb package the query concept is introduced by example presently but not discussed in any formal detail Selecting Custom Query from the Browse menu pops up three consecutive input di alogues corresponding to the query clauses i iii optional clauses i e from and where can be left empty and skipped using the key again provides context sensitive completion on attribute names or relations as appropriate and and navigate in the history of prior input To give a simple example the following query is equivalent to the Browse Phenomena command listing the identifiers names authors and dates of construction of all phenomena encoded in the data set and on our sample instance of the CSLI test suite yields the display shown in figure 3 above 16 This conjunction includes the choice made by phenomenon if any in the Brow
62. ned linguistic classifications e g regarding grammaticality and linguistic phenomena presented in an item as represented by the TSNLP test suites Lehmann et al 1996 e tools to browse the available data identify suitable subsets and feed them through the analysis component of a processing system like LKB Copestake 1992 PAGE Uszkoreit et al 1994 and others e the ability to gather a multitude of precise and fine grained system performance mea sures like the number of readings obtained per test item various time and memory usage metrics ambiguity and non determinism parameters and salient properties of the result structures and store them as a competence and performance profile e graphical facilities to inspect the resulting profiles analyze system competence i e grammatical coverage and overgeneration and performance at highly variable gran ularities aggregate correlate and visualize the data and compare profiles obtained from previous grammar or system versions or other platforms 1 1 The Name of the Game incr tsdb As the incr tsdb package has some partly historic internal structure see figure 5 1 for a sketch of the system architecture so has its name The data and profiles are stored in tsdb a simple and portable relational database system Oepen et al 1997 that grew out of the TSNLP project the interfaces to LKB and PAGE and the bulk of the profiling and analysis routines are implemented i
63. on for existing profiles the status message obtaining tsdb 1 database list is displayed in the minibuffer while the file system is inspected Obviously for a newly created directory the list of available profiles will at first be empty 4 2 Creating a Test Suite Instance The File Create menu actually the menu cascade that pops up when the Create entry is selected from the File menu displays the current set of available test suite skeletons their names and size in test items Assuming a default installation with English skeletons activated the list should be something like Aged VerbMobil Data vm 96 items CSLI LinGO Test Suite csli 1348 items Development Test Suite toy 26 items TSNLP Test Suite english 4612 items VerbMobil 97 vm97 100 items VerbMobil 97 Partials vm97p 252 items VerbMobil 98 vm98 347 items Selecting one of the File Create entries the CSLI LinGO Test Suite say pops up an input dialogue in the minibuffer create lingo nov 98 cs1i 98 11 20 page that prompts for the name for the new test suite instance to be created The name suggested by incr tsdb typically will contain the following path components section 5 10 shows how to customize the system suggestion grammar version skeleton date processor DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 15 where grammar and version i
64. only allows users to run incr tsdb on one host while the processing system itself can reside on a different machine i e distribution across a local network or the InterNet at the same time it facilitates parallelization of test runs a single incr tsdb instance can communicate with multiple processors typically on multiple machines and distribute processing among the clients To deal with typical robustness issues in distribution e g network or host failure the incr tsdb distributed mode monitors client status and reschedules tasks when clients become unavailable Parallelization of test run processing in LKB and PAGE or potentially other Lisp based systems is achieved by virtue of a Lisp binding for the incr tsdb application program interface Hence arbitrary processing systems can connect to the incr tsdb distributed mode as long as they provide a functional interface that obeys the C calling conventions possibly on the basis of foreign function facilities in Lisp or Prolog systems The following sections summarize the steps required in adapting a new processing system to incr tsdb distributed mode The application program interface continues to evolve with the integration of additional processors developers are therefore encouraged to seek assistance and feedback from the incr tsdb contact address see the PREFACE section above especially if their site is based in a sunny dry and urban part of this planet
65. ons Switches Enable Tenuring and others v feed the test data one item at at a time through the parser gather a large number of processing metrics from the host platform see figure 4 and section 5 2 for details and store the results into the profile database While processing vocabulary and test items the progress meter indicates the percent age of work already completed as shown in figure 2 above upon completion of the test run the listing of test suite instances is updated to reflect the change in the number of parses in the active profile The database that now contains both the test data from the test suite skeleton plus the overall test run information and individual processing results for each test item constitutes a new competence and performance profile a large pool of structured information that is now ready for inspection Despite all reservations to profiles obtained from partial test runs expressed earlier other commands from the Process menu allow a selection of a subset of the available data to be processed viz the Positive Items Negative Items and TSQL condition commands of which the first two have the obvious effect while the latter prompts for a TSQL condition to be used in constraining the input data see section 5 8 for the precise syntax used Process Vocabulary finally makes the host platform load the necessary vocabulary without triggering an actual test run 4
66. ormance comparison between LKB and PAGE on the November 1998 ver sion of the LinGO ERG and the CSLI test suite here the contrastive summary top is aggregated according to item grammaticality wellformedness as annotated in the input data where i wf 0 means grammatical to highlight the corresponding difference in parsing complexity again the individual columns repeat salient properties from the indi vidual performance profiles and in the rightmost block indicate how they relate to each other the space reduction of 55 for example means that LKB on average requires less than half of the memory allocated in PAGE a reduction of 90 would correspond to a factor of 10 i e one order of magnitude the bottom table repeats the total numbers from the individual profiles compare to figure 6 to further illuminate the cross platform comparison DRAFT OF OCTOBER 15 1999 28 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY over a subset of the test items and should be compared to the value for i wf 1 in the table above 2 56 seconds e as PAGE uses an active chart parser while the LKB parser is purely passive the number of edges recorded cannot be compared straightforwardly 280 for PAGE is the sum of active and passive edges since on average about 40 of the total edges are active this suggests that PAGE actually builds significantly fewer passive edges e the observation on edges is supported from a co
67. osing the specified limit 4 8 Some Useful Switches Besides the Database Root command from the Options menu used in section 4 1 above to adjust the profile repository the following facilities may be useful at some point in individual experimentation with the machinery e Skeleton Root prompts for a new directory containing test suite skeletons and the updates the choice in the File Create menu while the default incr tsdb distribu tion ships with English skeletons enabled this command can be used to activate the German or French TSNLP test suites some German VerbMobil corpus data and addi tional German material made available by Stefan M ller of DFKI Saarbr cken that all are included with the distribution skeletons are organized into language specific groups such that by choosing say src tsdb skeletons deutsch relative to the root directory of the incr tsdb source tree at your site German data becomes available e Update reinitializes part or all of the incr tsdb podium state while relevant changes e g to the database root usually cause an automatic update the Update Skeleton List or Update Database List commands can be used to force reloading the necessary information and adjustment of podium status e Switches Exhaustive Search toggles the exhaustive search switch of the LKB and PAGE processors on by default deactivating exhaustive search makes the
68. r tsdb client or client task is created each time a cpu is acti vated or initialized activating a cpu here means to request from the PVM daemon responsible for the node in question that the command associated with the cpu be executed after process creation the client itself is responsible for registration with the incr tsdb server typically through execution of the slave function pre sented in sections 6 3 and 6 4 above a client process on some node in the virtual machine that the incr tsdb can communicate with by virtue of the application program interface DRAFT OF OCTOBER 15 1999 44 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY setf pvm cpus list make cpu host let dfki uni sb de class chic chic let spawn project cl chic bin chic options tsdb make cpu host let dfki uni sb de class chic chic let spawn project cl chic bin chic options tsdb make cpu host limit dfki uni sb de class chic chic limit spawn project cl chic bin chic options tsdb make cpu host top coli uni sb de class chic chic coli spawn project cl chic bin chic options tsdb make cpu host top coli uni sb de class 1kb spawn proj perform nacl bin acl options L proj perform 1kb startup create proj perform lingo jun 99 1kb script Figure 12 Sample definition of incr tsdb cpus taken from a user
69. rategy that allows no meaningful distinction between exhaustive and non exhaustive parsing Hence in the LKB system the times reported for finding the first reading and finding all readings should always be the same DRAFT OF OCTOBER 15 1999 18 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY Assuming the default incr tsdb settings and lingo nov 98 cs1i 98 11 20 page from above as the active test suite instance the command Process All Items will i prompt for a descriptive comment the purpose of this test run say or an unusual aspect of the current setup in the minibuffer this comment and some additional information about the current condition of the host platform will be stored together with the actual parsing results into the resulting profile ii delete purge all existing parses none for the present example from the active test suite instance but see the documentation of Options Switches Overwrite Test Run in section 5 4 iii make the processor load the vocabulary required for parsing the test data see Options Switches Autoload Vocabulary and print a lexicographically sorted list ing of the number of lexical items retrieved and successful lexical rule applications per input word see figure 4 iv put the processor into batch parsing mode all graphical display for parsing results is disabled and install the selected garbage collection strategy see Opti
70. rofile data i e informa tion specific to individual test suite instances is selected to be used for comparison only items that differ in the attribute s chosen are included in the display and show the conflicting values from both profiles items that are only included in of the data sets or differ in one of the decorating fields are printed separately with empty intersection values for one profile Figure 11 presents an example that goes back to the competence comparison done earlier for two versions of the LinGO ERG see figure 9 As the C_Diathesis Passive As of January 1999 the comparison on values is by equality check only therefore the choice of intersection attributes is comparatively small there is little point in comparing time or space metrics as even the very same configuration of system and grammar may result in minor differences for these fields let alone semantic formulae Again it is expected to enlarge the range of comparison functions in the near future thus comments on user requirements are especially welcome DRAFT OF OCTOBER 15 1999 30 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY lingo oct 97 csli 97 11 26 page vs lingo nov 98 csli 98 11 20 page iwf a t g old new sd AS readings readings Abrams knew it to be true that Browne hired Chiang Abrams made Browne hire Chiang Abrams was known to be interviewing Browne Abrams was known by Chiang to be interviewing B
71. rowne Abrams was known to be interviewing Browne There was known to be a bookcase in Browne s office It was known to be time for an interview It was known to be true that Abrams hired Browne Abrams was made to interview Browne Abrams was made interview Browne Obra Figure 11 Profile comparison on a per item basis for the C_Diathesis Passive phe nomenon that exhibits a mild loss of coverage significant reduction in overgeneration and overall elimination of ambiguity in figure 9 only items that conflict in at least one of the fields selected for comparison are included in this view items 234 and 268 present re duced coverage and overgeneration respectively the overall number of readings obtained has decreased for most of the examples phenomenon shows interesting differences at the aggregate level the configuration in this sample view includes the 7 wf field in the decoration restricts the data to the phenomenon in question and intersects on the number of readings obtained for the two versions Double clicking the left mouse button on the i input field in the detailed comparison table as usual makes the host platform process the test item interactively i e with all debugging output enabled according to the current system configuration Interactive processing is often useful for example to see what the actual analyses obtained from the system are This obviously presupposes that the host platform
72. s programmers Browne merely doesn t work Does there be a bookcase in Browne s office Abrams does not know who was hired by Browne Does Abrams work for Browne or work for Chiang Again only the aggregated view in combination with the inspection of data at a finer grained level of granularity reveals properties of the data set that would very likely be missed otherwise viz that e the i length values for several test items are incorrect in the test suite skeleton already apparently apostrophes in the input field break the word counting during test data import into incr tsdb and that e test items of nine word length are ideosyncratically rich in their use of auxiliaries and coordination two phenomena that largely contribute to lexical and global am biguity and accordingly parsing complexity similar ideosyncracies are typical for smaller collections of systematically constructed test data test suites in the tradi tional sense and can often be avoided when aggregating by lexical ambiguity i e the words field rather than string length The last example demonstrates how the incr tsdb approach can be used in tuning a system for a particular application and domain in the VerbMobil project the PAGE 8Remember that to execute the query the optional from and where clauses have to be skipped thus input the attribute names into the select window experiment with the completion facil
73. se submenus therefore the browse commands All Test Items or All Parses respectively now display all entries that match the specified condition Since the tsdb query processor simplifying greatly in contrast to regular SQL can infer the set of relations required to satisfy a query from the set of attributes used it is usually not necessary to specify the from clause Only where attributes are shared between relations and the corresponding values potentially differ the specification of the relation s requested will be desirable besides in some cases complex join operations the from clause can be used to optimize the query processing DRAFT OF OCTOBER 15 1999 32 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY select p id p name p author p date As a second slightly more rewarding sample query let us return to figure 8 corre lating input length and parsing time in the segment up to a sentence length of say ten words where aggregate sizes should be large enough and not sparse the graph exhibits noticeable peaks for i length values of three and nine words To see which individual test items in these two aggregates require overproportional processing times the query select i length i input i id tcpu tgc where i length 3 amp amp tcpu gt 100 i length 9 amp amp tcpu gt 200 can be executed to extract the following table reproduced partially 86 There i
74. sification if available is chosen by default the Options Aggregate By menu provides a choice of aggregate computation by several relevant properties of the data set such as for example the item grammaticality or string length the degree of lexical or phrasal ambiguity parsing complexity metrics or time or space requirements In addition the Options Aggregation Parameters dialogue allows the adjustment of the following parameters e aggregate size the width of each aggregate interval i e the number of units along the current aggregation dimension that fall into a single class default value is 1 e aggregate threshold the minimum number of elements per aggregate aggregates that have fewer members sparse data will be supressed default 1 e lower bound the lower aggregation boundary used data points with a value along the current dimension below this limit will be ignored default 0 e upper bound the upper aggregation boundary used data points above this limit will be ignored the upper bound parameter can be left empty unset to represent infinity i e no upper bound the default DRAFT OF OCTOBER 15 1999 22 incr tsdb COMPETENCE AND PERFORMANCE LABORATORY The Aggregation Parameters dialogue pops up in the minibuffer as follows size threshold lower _ 0 upper and Shift Tab move between input fields the and arrow keys increment and decrement values respectively see the bal
75. stallation and Startup 3 2 1 Distribution Policy Copyleft 0 2 000 3 2 2 Obtaining incr tsdb has eee eS a 4 23 installations s a ea an SOME eek Ge ee By Oe ei eee ee Ee 4 2 4 Registration oo ec dw a A a we we a es 7 2 5 Loading and Re Starting incr tsdb 2 ee ee 8 2 6 Troubleshooting Something Went Wrong o o 8 3 Profiling Terminology 11 4 Sample Session 13 4 1 First Time Preparation e 13 4 2 Creating a Test Suite Instance e 14 4 3 Browsing the Data 00 000 0000000004 15 4 4 Obtaining a Competence and Performance Profile 17 4 5 Profle Analysis 2 40 aca a lea ed hetero te kane se 18 4 6 Comparison to Earlier Test Runs 25 4 7 Zoom In Detail Profile Comparison and Analysis 29 4 8 Some Useful Switches eco aoa oe a be ees a we el ar Ge 33 4 9 Recommendations for Future Experimentation 34 5 Reference Manual 35 Dall iner tsdb Arce cti e Jit sagen Mee sete hc BEE gene Hh ee 35 5 2 Contents of incr tsdb Profiles o o o 35 5 3 Storage and Reconstruction of Derivations 35 pA The Menu Structure ac 0a 4 amp Shia bok Ge a a le Bo eae o 35 5 5 Visualization and Analysis of Profiles 0004 35 5 6 Comparison among Profiles o o 0 2 000 35 5 7 Data Selection and Aggregation
76. take advantage of the multi selection feature and execute any one command from Browse Test Items or Browse Parses to display the subset of items from the current profile that satisfy the condition Note that in contrast to the selection of phenomena seen before e g in the Detail menu the set of TSQL conditions chosen is applied conjunctively i e only test items that meet all active conditions are selected Once more double clicking on the i input field triggers interactive processing to ease debugging Arbitrary TSQL conditions going beyond the hard wired choices in the user interface can be composed by means of the Options New Condition command are then dynamiclly added to the TSQL Condition list and can be applied conjunctively with other conditions Yet the composition of custom TSQL conditions presupposes a detailed knowledge of the underlying database organization see Browse Database Schema the examples below and section 5 2 as only experienced incr tsdb users command it to ease experimenta tion the condition input dialogue that pops up in the minibuffer supplies context sensitive completion of attribute names pressing once completes unambiguous prefixes twice displays the list of available completions and a query history that can be traversed using the and arrow keys incr tsdb windows created while a selectional condi tion is in effect show the TSQL representation of the co
77. the output of the current view into a file of the requested format The coverage and performance views are presented in figures 5 and 6 as PostScript and TFX output respectively see the table captions for a description of the individual columns the overgeneration view is the mirror image of the coverage summary in that it uses the test items marked as ungrammatical instead of the grammatical test items as the base set In general a condensed summary of a profile as presented by the Analyze menu often already presents salient properties of a token test run and points the developer to further typically more focused and in depth analysis While the coverage and overgeneration views mostly aim to summarize properties of the grammar used i e competence and am biguity measures the performance summary has its focus on system behaviour viz on resource consumption and parser efficiency Yet it may still be desirable for a grammar DRAFT OF OCTOBER 15 1999 SAMPLE SESSION 21 nso S A 11 20 page 20 lt i length lt 25 15 lt 1 length lt 20 10 lt i length lt 15 5 lt i length lt 10 0 lt 1 length lt 5 Total 1290 3437 56 8 284 0 96 234 3 26 0 40 11863 generated by incr tsdb 1 at 26 nov 1998 19 06 h c oeQcoli uni sb de Figure 6 Performance Profile for the LinGO ERG on an instance of the CSLI test suite Columns are from left to right the aggregation criterion
78. the second profile that will be used as the source or base for comparison i e the one that is compared to can be selected either i by means of the Compare Source Database menu or ii by clicking the middle mouse button on an entry in the podium body As a metaphor for progress evaluation e g while working towards an improved version of the grammar or system the source data set is often referred to as the g old standard reference to which the current new results are compared accordingly the source for comparison is highlighted in gold in the podium body Once developers commit themselves to a new grammar or system version instance the newer data can then serve as a gold standard for future experimentation One such view of progress given in Figure 9 shows how grammatical competence of the LinGO ERG changed over the course of about one year as before aggregated according to coarse grained linguistic phenomena the competence progress profile shows where the analysis of a particular phenomenon has improved and where not The grammatical coverage has increased significantly for many phenomena where coverage has dropped slightly overgeneration and the number of analyses generated were reduced at the same time In general the comparison reassures the grammar engineer that the work on constraining the grammar more rigidly towards the intended analyses since the same grammar is recently deployed for generation purposes
79. the nature of unification failure when applicable The sections on ANSI C and Common Lisp clients below 6 3 and 6 4 respectively detail the language specific instantiations of the interface functions 6 2 Parallel Virtual Machine As noted above the Parallel Virtual Machine Geist et al 1994 message passing model is used for interprocess communication PVM establishes a virtual machine a set of cpus from a collection of networked computers a user level PVM daemon on each physical node e g a workstation or compute server establishes a transparent message passing layer that provides PVM applications with a uniform view of the virtual machine Using PVM primi tives incr tsdb can create client processes i e incr tsdb aware application systems on arbitray nodes in the virtual machine or let PVM take the distribution decisions trans mit processing requests to available clients and collect processing results competence and performance parameters 21 Although naturally profile analysis and comparison may be severely restricted on partial data As suming a processor that does not fill in any of the system specific parameters test run processing will still be possible however the bulk of incr tsdb analysis functionality will be non functional 2 As of June 1999 however reconstruction mode is not fully implemented on the incr tsdb side of the application program interface while integrating with the LiLFeS appl
80. tton to de activate entries and leave the menu visible selec tion of another group or attribute from another group deactivates all incompatible selections e Analyze Graph Parameters finally pops up an input dialogue similar to the ag gregation parameters shown above the four input fields have the same names and meanings for graph computation as for aggregation and table layout To see how the graphing component works the default values for all the switches will initially be sufficient Analyze Show Chart produces the barchart given in figure 7 top viz a distribution of aggregate sizes along the i length input string length dimension Clearly the test set the CSLI test suite in this example only contains a very small number of test items longer than twelve words above 15 we find only occasional data points Hence it seems desirable to restrict the graph view to test items below that upper bound the Analyze Graph Parameters dialogue allows the adjustment of that parameter Figure 8 shows the output of the Analyze Show Graph command for the default Parsing Times group the x axis range has been limited and additional attributes tcpu and tgc from the compatible Overall Times group were added to the list of graph values see section 5 2 for the precise semantics of the individual fields Finally the bottom of figure 7 presents the distribution of parser tasks by item identifier i e t
81. unning Registering the software will effectively suppress all message generation for all future uses Users of incr tsdb are welcome to incorporate parts or all of the data and tools into applications or programs of their own and to modify copy and further distribute these as long as this license is preserved and included in its original form It is strongly encouraged to contact the author for notifications of changes or extensions to the package and to aim for integration with the standard release and public distribution for any substantial additions made The author explicitly declines any warranty or liability for incr tsdb In particular please note that BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE THERE IS NO WARRANTY FOR THE PROGRAM TO THE EXTENT PERMITTED BY APPLICA BLE LAW EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND OR OTHER PARTIES PROVIDE THE PROGRAM AS IS WITHOUT WARRANTY OF ANY KIND EITHER EXPRESSED OR IMPLIED INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FIT NESS FOR A PARTICULAR PURPOSE THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU SHOULD THE PROGRAM PROVE DEFECTIVE YOU ASSUME THE COST OF ALL NECESSARY SERVICING REPAIR OR CORRECTION IN NO EVENT UN LESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY However please note that because of the transmission protocol used over the InterNet additional informatio
82. upgrades as they become available it is very low traffic Registration proceeds as follows i make yourself known to the author send email to the contact address containing information about the user name s and machine name s that you want to register if you want to register for an entire InterNet domain i e a wildcard machine name or a group of users i e all accounts for some host or domain please give an estimate of the expected size of either set ii receive one or multiple incr tsdb license keys for your site by email SS add the license key s in exactly the same format as they were received to the file Keys in the src tsdb subdirectory of your installation e g iii coli uni sb de 0E1234567890 stefan dfki uni sb de 0E1234567890 uc dfki uni sb de 0E1234567890 eo stanford edu 0E1234567890 eoan stanford edu 0E1234567890 malouf gerund 0E1234567890 aac anstac 0E1234567890 alternatively e g if you have no write access to the incr tsdb source tree at your site the license key can be set from the file podiumrc see section 5 10 in your home directory e g set globals copyleft key 0E1234567890 On start up the main incr tsdb interaction window will display a copyright message that reflects the status of the current copy it will either display a message like Registered Copy 0E1234567890 DRAFT OF OCTOBER 15 1999 8 incr tsdb COMPETENC
83. wsing the available data processing and analysis of individual profiles and comparison and in detail study among profiles iii the podium body lists all currently available profiles and their key properties iv the progress meter gives an estimate of the remaining work to complete the current task finally v the lower left minibuffer serves for status messages and parameter input when idle the progress meter displays a digital clock 4 Sample Session Following is a detailed step by step discussion of a sample session incr tsdb is used to i create a new test suite instance see section 3 for some key terminology ii inspect the available test data iii batch process a set of test items iv inspect the resulting profile and v compare it to results obtained from a previous grammar version The examples assume a running incr tsdb podium in a state similar to what is displayed in figure 2 and a processor either LKB or PAGE with a suitable grammar loaded The individual steps in the sequence given can be taken as a guided tour of the machinery all data sets used in the presentation are included with the distribution so that the sample tables and graphs can be reproduced and serve as a basis for individual experimentation 4 1 First Time Preparation Unless the user running incr tsdb is at the same time the owner of the source tree for the host platform and incr tsdb the package requires a dedicated dir
84. x x text utility diff 1 but scaled up for structured data sets the following set of switches allows the customization to user needs e Source Database is the same as in the Compare menu allows the selection of the source data set to which the active profile will be compared alternatively use the middle mouse button in podium body e Phenomena can be used to restrict the comparison to a subset of the linguistic phenomena assuming phenomena information is available in the profiles the menu allows multiple selections use the middle mouse button to toggle individual entries and keep the menu on display that will be interpreted as a disjunctive condition when selecting data see example below the default is to use the full data set i e all phenomena e Decoration allows to choose properties of test items i e attributes from the an notations in the test suite skeleton that will be presented in the display as deco ration for the actual profile data while the item identifier is always included the choice of additional attributes as of January 1999 is limited to the actual item string i input the grammaticality code i wf and the root category for the item i category i input is enabled by default again Decoration is a multi selection menu e Intersection finally is the central parameter in per item comparison this multi selection menu requires that at least one attribute from the p
Download Pdf Manuals
Related Search
Related Contents
D:\DOCUME~1\CPUSERS\LOCALS~1\Temp\.aptcache\KLF250 ComSitePro/MPE Revision Log (Version 8) Sample Data Sheet PowerBridge TSPBIW-6 Copyright © All rights reserved.
Failed to retrieve file