<commit_before>import fr.inrialpes.exmo.align.impl.ObjectAlignment;
import fr.inrialpes.exmo.align.impl.URIAlignment;
import fr.inrialpes.exmo.align.impl.eval.SemPRecEvaluator;
import fr.inrialpes.exmo.align.parser.AlignmentParser;
import org.semanticweb.owl.align.Alignment;
import org.semanticweb.owl.align.AlignmentException;
import org.testng.annotations.Test;

import static org.testng.Assert.assertNotNull;

/**
 * Created with IntelliJ IDEA.
 * User: stefan
 * Date: 20.09.13
 * Time: 13:10
 * To change this template use File | Settings | File Templates.
 */
public class EvaluatorTest {

//    private ObjectAlignment objectAlignment(URIAlignment a) {
//        ObjectAlignment alignment = new ObjectAlignment();
//            alignment.init( al.getFile1(), al.getFile2() );
//
//    }

    @Test
    public void testEvaluation() throws AlignmentException {
        AlignmentParser aparser = new AlignmentParser(0);

        Alignment a1 = aparser.parse("file:/home/stefan/Code/diplom-code/ldif-geo/data/align-reegle-ref.rdf");
        Alignment a2 = aparser.parse("file:/home/stefan/Code/diplom-code/ldif-geo/matching-code.rdf");

        SemPRecEvaluator e1 = new SemPRecEvaluator(a1, a2);
        e1.eval(System.getProperties());

    }

}<commit_msg>Writing the results to stdout.<commit_after>import fr.inrialpes.exmo.align.impl.ObjectAlignment;
import fr.inrialpes.exmo.align.impl.URIAlignment;
import fr.inrialpes.exmo.align.impl.eval.SemPRecEvaluator;
import fr.inrialpes.exmo.align.parser.AlignmentParser;
import org.semanticweb.owl.align.Alignment;
import org.semanticweb.owl.align.AlignmentException;
import org.testng.annotations.Test;

import java.io.IOException;
import java.io.PrintWriter;

import static org.testng.Assert.assertNotNull;

/**
 * Created with IntelliJ IDEA.
 * User: stefan
 * Date: 20.09.13
 * Time: 13:10
 * To change this template use File | Settings | File Templates.
 */
public class EvaluatorTest {

    @Test
    public void testEvaluation() throws AlignmentException, IOException {
        AlignmentParser aparser = new AlignmentParser(0);

        Alignment a1 = aparser.parse("file:/home/stefan/Code/diplom-code/ldif-geo/data/align-reegle-ref.rdf");
        Alignment a2 = aparser.parse("file:/home/stefan/Code/diplom-code/ldif-geo/matching-code.rdf");

        SemPRecEvaluator e1 = new SemPRecEvaluator(a1, a2);
        e1.eval(System.getProperties());

        PrintWriter writer = new PrintWriter(System.out);
        e1.write(writer);
        writer.flush();
        writer.close();
    }

}
{'fraction_non_alphanumeric': 0.12097407698350353, 'fraction_numerical': 0.014532600157109192, 'mean_word_length': 3.751865671641791, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6316059', 'n_tokens_mistral': 872, 'n_tokens_neox': 823, 'n_words': 149}