Terrier IR Platform
2.2.1

uk.ac.gla.terrier.indexing
Class TRECCollection

java.lang.Object
  extended by uk.ac.gla.terrier.indexing.TRECCollection
All Implemented Interfaces:
Collection, DocumentExtractor
Direct Known Subclasses:
TRECUTFCollection

public class TRECCollection
extends java.lang.Object
implements Collection, DocumentExtractor

Models a TREC test collection by implementing the interfaces Collection and DocumentExtractor. It provides sequential access to the documents in the collection and also it can return the text of a document as a String. TREC format files are opened using the default encoding unless the trec.encoding has been set to a valid supported encoding.

Properties: