Package edu.ucla.sspace.evaluation

Examples of edu.ucla.sspace.evaluation.WordSimilarityReport


        }

        // Run the word similarity tests.
        for (WordSimilarityEvaluation wordSimilarity :
                 wordSimilarityTests) {
            WordSimilarityReport report =
                WordSimilarityEvaluationRunner.evaluate(
                        sspace, wordSimilarity, similarity);
            verbose("Results for %s:%n%s%n", wordSimilarity, report);
            results[resultIndex++] = String.format(
                    "%4.3f", report.correlation());
        }

        // Run the word priming tests.
        for (WordPrimingTest wordPrimingTest : wordPrimingTests) {
            WordPrimingReport report = wordPrimingTest.evaluate(sspace);
            verbose("Results for %s:%n%s%n", wordPrimingTest , report);
            results[resultIndex++] = String.format("%4.3f & %4.3f & %4.3f",
                                                   report.relatedPriming(),
                                                   report.unrelatedPriming(),
                                                   report.effect());
        }

        // Run the word priming tests.
        for (NormedWordPrimingTest normedPrimingTest : normedPrimingTests) {
            NormedWordPrimingReport report = normedPrimingTest.evaluate(sspace);
            verbose("Results for %s:%n%s%n", normedPrimingTest, report);
            results[resultIndex++] = String.format(
                    "%4.3f", report.averageCorrelation());
        }

        reporter.addResults(sspace.getSpaceName(),
                            similarity.toString(), results);
    }
View Full Code Here

TOP

Related Classes of edu.ucla.sspace.evaluation.WordSimilarityReport

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.