This package contains scripts and Prolog programs to parse sequences in grammars obtained during an inference process on the "middle" sequences. Files are: - all_middles.pl : the middle sequences to parse - split_middle.py : a script to split the all_middle.py sequences into sequences of similar lengths - run_parsing_yap.py : script to run the parsing with yap on the different sequences and grammars - run_parsing_dftd.py: script to run the parsing with our DFTD parser on the different sequences and grammars - parse_yap.pl : Prolog code for the parsing - parse_dftd.pl : Prolog code for the parsing using the DFTD parser To reproduce the experiments obtained in the paper, you will need to follow these steps: 1) Ensure you have got the rules to parse. Thes files are called res_clauses.pl and res_rules.txt. (Obtain it from package set_construction.tar.gz to download at http://www.comp.rgu.ac.uk/staff/chb/research/data_sets/ilp05/#Software) or ask them directly to the authors.) 2) Split these rules with respect to their lengths by running command split_on_clause_length.py You should obtain a set of files with names res_clauses1.pl to res_clauses7.pl res_rules1.txt to res_rules7.txt 3) Obtain the sequences to parse. To do so, run script split_middle.py You should obtain a set of files with names middle0_9.pl to middle90_99.pl 4) To run parsing with Yap, edit script run_parsing_yap.py and change the value of variables gram_dir and seq_dir to reflect respectively the place where you stored files res_* of point 2, and files middle* of point 3. Then execute command: run_parsing_yap.py 4')To run parsing with the DFTD parser: 4'.1) You need to ensure you have installed the DFTD parser (package dftdp_in_yap.tar.gz to download at http://www.comp.rgu.ac.uk/staff/chb/research/data_sets/ilp05/) 4'.2) You need to update paths: - Edit script run_parsing_yap.py and change the value of gram_dir and seq_dir to reflect respectively the place where you stored files res_* of point 2, and files middle* of point 3. - Edit Prolog file parse_dftd.pl and change, in predicate init_dftdp_structures, the path of the files of the DFTD parser to reflect where you placed the DFTD parser package (4'.1) 4'.3) Then execute command: run_parsing_dftd.py