Package edu.ucla.sspace.ri

Examples of edu.ucla.sspace.ri.HadoopRandomIndexing


     * SemanticSpace} to the writer.
     */
    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);       
    }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.ri.HadoopRandomIndexing

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.