Terrier IR Platform
2.2.1

uk.ac.gla.terrier.structures.merging
Class LexiconMerger

java.lang.Object
  extended by uk.ac.gla.terrier.structures.merging.LexiconMerger

public class LexiconMerger
extends java.lang.Object

Merges many lexicons, termids and offsets are not kept.

Author:
vassilis

Constructor Summary
LexiconMerger(Index src1, Index src2, Index dest)
          A constructor that sets the filenames of the lexicon files to merge
 
Method Summary
static void main(java.lang.String[] args)
           
 void mergeLexicons()
          Merges the two lexicons into one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexiconMerger

public LexiconMerger(Index src1,
                     Index src2,
                     Index dest)
A constructor that sets the filenames of the lexicon files to merge

Parameters:
src1 - Source index 1
src2 - Source index 2
dest - Destination index
Method Detail

mergeLexicons

public void mergeLexicons()
Merges the two lexicons into one. After this stage, the offsets in the lexicon are not correct. They will be updated only after creating the inverted file.


main

public static void main(java.lang.String[] args)

Terrier IR Platform
2.2.1

Terrier Information Retrieval Platform 2.2.1. Copyright 2004-2008 University of Glasgow