This code takes sentence analyses provided by XLE in Prolog files (each sentence and their analyses provided in a single file), collects all the analyses of the sentences, removes duplicates (related to sentences and their c-structures) and builds an XML corpus of the sentence analyses in TigerXML format.