org.terrier.structures.merging
Class LexiconMerger
java.lang.Object
org.terrier.structures.merging.LexiconMerger
public class LexiconMerger
- extends java.lang.Object
Merges many lexicons, termids and offsets are not kept.
- Author:
- vassilis
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 |
srcIndex1
protected Index srcIndex1
srcIndex2
protected Index srcIndex2
destIndex
protected Index destIndex
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 1src2
- Source index 2dest
- Destination index
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