Examples of WordChoiceReport


Examples of edu.ucla.sspace.evaluation.WordChoiceReport

                                      normedPrimingTests.size()];
        int resultIndex = 0;

        // Run the word choice tests.
        for (WordChoiceEvaluation wordChoice : wordChoiceTests) {
            WordChoiceReport report = WordChoiceEvaluationRunner.evaluate(
                        sspace, wordChoice, similarity);
            verbose("Results for %s:%n%s%n", wordChoice, report);
            results[resultIndex++] = String.format("%4.3f", report.score());
        }

        // 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
Copyright © 2018 www.massapi.com. 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.