public class TRECWebCollection extends TRECCollection
<DOCHDR> http://www.city.geneva.ny.us:80/index.htm 192.108.245.124 19970121041510 text/html 2407 HTTP/1.0 200 OK Date: Tue, 21 Jan 1997 04:14:08 GMT Server: Apache/1.1.1 Content-type: text/html Content-length: 2236 Last-modified: Fri, 18 Oct 1996 17:33:56 GMT </DOCHDR>TRECWebCollection parses each HTTP header as Document property. In addition, the URL, IP address, date and length are parsed from the DOCHDR tags. In particular, the following Document properies are set, depending on the format of the DOCHDR tag:
Supported TREC Collections:
There are some variations in the format of the DOCHDR tags in the various
TREC web corpora, in particular the first line of the tag. The following corpora are supported.
WARC018Collection
.br, currentFilename, desiredEncoding, DocIDBlacklist, docnotag, DocProperties, documentClass, documentCounter, documentsInThisFile, end_docnoTag, end_docnoTagLength, end_docTag, end_docTagLength, endOfCollection, endPropertyTags, FileNumber, FilesToProcess, ignoreProperties, logger, propertyTagLengths, SkipFile, start_docnoTag, start_docnoTagLength, start_docTag, start_docTagLength, startPropertyTags, tags_CaseSensitive, ThisDocID, tokeniser
Constructor and Description |
---|
TRECWebCollection()
Constructs an instance of the TRECWebCollection.
|
TRECWebCollection(InputStream input)
Constructs an instance of the TRECWebCollection, given an InputStream.
|
TRECWebCollection(String CollectionSpecFilename,
String TagSet,
String BlacklistSpecFilename,
String ignored)
Constructs an instance of the TRECWebCollection.
|
Modifier and Type | Method and Description |
---|---|
protected void |
afterPropertyTags() |
close, endOfCollection, getDocid, getDocument, getDocumentString, getTag, hasNext, loadDocumentClass, next, nextDocument, openNextFile, readCollectionSpec, readDocumentBlacklist, remove, reset, setTags
public TRECWebCollection()
public TRECWebCollection(InputStream input)
input
- protected void afterPropertyTags() throws IOException
afterPropertyTags
in class TRECCollection
IOException
Terrier 4.0. Copyright © 2004-2014 University of Glasgow