uk.ac.gla.dcs.renaissance.mg4j.tasks
Class BuildStorage
java.lang.Object
bpiwowar.experiments.AbstractTask
uk.ac.gla.dcs.renaissance.mg4j.tasks.BuildStorage
- All Implemented Interfaces:
- bpiwowar.experiments.Task
public class BuildStorage
- extends bpiwowar.experiments.AbstractTask
Nested classes/interfaces inherited from class bpiwowar.experiments.AbstractTask |
bpiwowar.experiments.AbstractTask.Information |
Methods inherited from class bpiwowar.experiments.AbstractTask |
getName, getParent, init, processTrailingArguments, run |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildStorage
public BuildStorage()
execute
public int execute()
throws Throwable
- Overrides:
execute
in class bpiwowar.experiments.AbstractTask
- Throws:
Throwable
getDocument
public static CompactDocument getDocument(int fieldIndex,
BreakIterator sentenceDetector,
it.unimi.dsi.mg4j.index.TermProcessor processor,
BuildStorage.TermDictionary dict,
it.unimi.dsi.mg4j.document.Document document)
throws IOException
- Build a compact representation from a document
- Parameters:
fieldIndex
- sentenceDetector
- text
- document
- compactDocument
-
- Returns:
-
- Throws:
IOException
Copyright © 2011. All Rights Reserved.