|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.unimi.di.mg4j.tool.PrecomputeAlignments
public class PrecomputeAlignments
Precomputes alignments of two parallel texts.
Field Summary | |
---|---|
protected QuasiSuccinctIndexWriter |
indexWriter
The index writer for the merged index. |
protected int |
numberOfDocuments
The overall number of documents. |
protected String |
outputBasename
The output basename. |
Constructor Summary | |
---|---|
PrecomputeAlignments(IOFactory ioFactory,
String outputBasename,
String aligneeBasename,
String alignerBasename,
ObjectList<? extends CharSequence> terms,
long logInterval)
Precomputes the alignments of two indices. |
Method Summary | |
---|---|
static void |
main(String[] arg)
|
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final int numberOfDocuments
protected final String outputBasename
protected QuasiSuccinctIndexWriter indexWriter
Constructor Detail |
---|
public PrecomputeAlignments(IOFactory ioFactory, String outputBasename, String aligneeBasename, String alignerBasename, ObjectList<? extends CharSequence> terms, long logInterval) throws IOException, ConfigurationException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
ioFactory
- the factory that will be used to perform I/O.outputBasename
- the basename of the combined index.aligneeBasename
- the basename of the index to be aligned.alignerBasename
- the basename of the index with which to align.terms
- a sorted list of terms whose alignments will be precomputed, or null
for all terms.logInterval
- how often we log.
IOException
ConfigurationException
URISyntaxException
ClassNotFoundException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
Method Detail |
---|
public void run() throws IOException, ConfigurationException
IOException
ConfigurationException
public static void main(String[] arg) throws com.martiansoftware.jsap.JSAPException, ConfigurationException, IOException, URISyntaxException, ClassNotFoundException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
com.martiansoftware.jsap.JSAPException
ConfigurationException
IOException
URISyntaxException
ClassNotFoundException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |