org.terrier.structures.merging
Class LexiconMerger

java.lang.Object
  extended by org.terrier.structures.merging.LexiconMerger

public class LexiconMerger
extends java.lang.Object

Merges many lexicons, termids and offsets are not kept.

Author:
vassilis

Field Summary
protected  Index destIndex
           
protected  Index srcIndex1
           
protected  Index srcIndex2
           
 
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)
          main
 void mergeLexicons()
          Merges the two lexicons into one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcIndex1

protected Index srcIndex1

srcIndex2

protected Index srcIndex2

destIndex

protected Index destIndex
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)
                 throws java.lang.Exception
main

Parameters:
args -
Throws:
java.lang.Exception


Terrier 3.5. Copyright © 2004-2011 University of Glasgow