protected void execute(Collection<String> inputDirs, 
                           SemanticSpaceWriter writer) throws Exception {

        HadoopRandomIndexing hri = new HadoopRandomIndexing();

        // Load the index vectors if the user has specified any
        if (argOptions.hasOption("loadVectors")) {
            String fileName = argOptions.getStringOption("loadVectors");
            LOGGER.info("loading index vectors from " + fileName);
            Map<String,TernaryVector> wordToIndexVector = 
                IndexVectorUtil.load(new File(fileName));
            hri.setWordToIndexVector(wordToIndexVector);
        }

        hri.execute(inputDirs, writer);        
    }
protected void execute ( Collection < String > inputDirs , SemanticSpaceWriter writer ) throws Exception { HadoopRandomIndexing hri = new HadoopRandomIndexing ( ) ; if ( argOptions . hasOption ( "loadVectors" ) ) { String fileName = argOptions . getStringOption ( "loadVectors" ) ; LOGGER . info ( "loading index vectors from " + fileName ) ; Map < String , TernaryVector > wordToIndexVector = IndexVectorUtil . load ( new File ( fileName ) ) ; hri . setWordToIndexVector ( wordToIndexVector ) ; } hri . execute ( inputDirs , writer ) ; }
Executes the {@link HadoopRandomIndexing} algorithm, processing all of
the provided input directories and writing the resulting {@link
SemanticSpace} to the writer.