Terrier IR Platform
1.1.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(java.lang.String _filename1, java.lang.String _filename2)
          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.
 void setOutputFilename(java.lang.String _outputName)
          Sets the output filename of the merged lexicon file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LexiconMerger

public LexiconMerger(java.lang.String _filename1,
                     java.lang.String _filename2)
A constructor that sets the filenames of the lexicon files to merge

Parameters:
_filename1 - the first lexicon file to merge
_filename2 - the second lexicon file to merge
Method Detail

setOutputFilename

public void setOutputFilename(java.lang.String _outputName)
Sets the output filename of the merged lexicon file

Parameters:
_outputName - the filename of the merged lexicon file

mergeLexicons

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


main

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

Terrier IR Platform
1.1.1

Terrier Information Retrieval Platform 1.1.1. Copyright 2004-2007 University of Glasgow