Package edu.ucla.sspace.wordsi

Examples of edu.ucla.sspace.wordsi.AssignmentReporter.finalizeReport()


        reporter.updateAssignment("catdog", "dog", 2);
        reporter.updateAssignment("catdog", "dog", 5);
        reporter.updateAssignment("catdog", "cat", 1);
        reporter.updateAssignment("catdog", "cat", 1);
        reporter.updateAssignment("catdog", "cat", 5);
        reporter.finalizeReport();

        String computed = stream.toString();
        System.out.println(computed);
        int[] dogCounts = new int[] {0, 0, 1, 0, 0, 2};
        int[] catCounts = new int[] {0, 2, 0, 0, 0, 1};
View Full Code Here


    @Test public void testUpdateAssignment() {
        OutputStream stream = new ByteArrayOutputStream();
        AssignmentReporter reporter = new SemEvalReporter(stream);
        reporter.updateAssignment("cat", "dog.n.123", 5);
        reporter.updateAssignment("dog", "cat.v.143", 55);
        reporter.finalizeReport();

        assertEquals("dog.n dog.n.123 dog.n.5\ncat.v cat.v.143 cat.v.55\n",
                     stream.toString());
    }
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.