Package edu.ucla.sspace.util

Examples of edu.ucla.sspace.util.SimpleNearestNeighborFinder


       
        LOGGER.info("printing the most similar words for the semantic partition" +
                    " starting at: " + dateString);

        NearestNeighborFinder nnf =
            new SimpleNearestNeighborFinder(semanticPartition);

        // generate the similarity lists
        for (String toExamine : interestingWords) {
            SortedMultiMap<Double,String> mostSimilar =
                nnf.getMostSimilar(toExamine, interestingWordNeighbors);

            if (mostSimilar != null) {
                File neighborFile =
                    new File(outputDir, toExamine + "-" + dateString + ".txt");
                neighborFile.createNewFile(); // iff it doesn't already exist
View Full Code Here


        public LexSubWordsi(String outFile, String sspaceFile) {
            try {
                output = new PrintWriter(outFile);
                wordsiSpace = new StaticSemanticSpace(sspaceFile);
                comparator = new SimpleNearestNeighborFinder(wordsiSpace);
            } catch (IOException ioe) {
                throw new IOError(ioe);
            }
        }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.util.SimpleNearestNeighborFinder

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.